Skip to content

Commit a98152b

Browse files
committed
run eslinter
1 parent d1a7609 commit a98152b

File tree

6 files changed

+48
-41
lines changed

6 files changed

+48
-41
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
src/**/*.json
4+
src/**/*.zip
5+
src/assets
6+
src/tests
Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
{
2-
"name": "bookslibrary",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "src/index.ts",
6-
"scripts": {
7-
"build": "tsc",
8-
"start": "tsc && ts-node --files ./src/index.ts"
9-
},
10-
"author": "akash jadhav",
11-
"license": "ISC",
12-
"devDependencies": {
13-
"@types/cors": "^2.8.12",
14-
"@types/express": "^4.17.13",
15-
"@types/express-fileupload": "^1.2.2",
16-
"@typescript-eslint/eslint-plugin": "^5.13.0",
17-
"@typescript-eslint/parser": "^5.13.0",
18-
"eslint": "^8.10.0",
19-
"eslint-config-google": "^0.14.0",
20-
"prettier": "2.5.1",
21-
"typescript": "^4.6.2"
22-
},
23-
"dependencies": {
24-
"cors": "^2.8.5",
25-
"dotenv": "^16.0.0",
26-
"express": "^4.17.3",
27-
"express-fileupload": "^1.3.1",
28-
"reflect-metadata": "^0.1.13"
29-
}
2+
"name": "bookslibrary",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "src/index.ts",
6+
"scripts": {
7+
"build": "tsc",
8+
"start": "tsc && ts-node --files ./src/index.ts",
9+
"lint:fix": "eslint ./src/** --fix"
10+
},
11+
"author": "akash jadhav",
12+
"license": "ISC",
13+
"devDependencies": {
14+
"@types/cors": "^2.8.12",
15+
"@types/express": "^4.17.13",
16+
"@types/express-fileupload": "^1.2.2",
17+
"@typescript-eslint/eslint-plugin": "^5.13.0",
18+
"@typescript-eslint/parser": "^5.13.0",
19+
"eslint": "^8.10.0",
20+
"eslint-config-google": "^0.14.0",
21+
"prettier": "2.5.1",
22+
"typescript": "^4.6.2"
23+
},
24+
"dependencies": {
25+
"cors": "^2.8.5",
26+
"dotenv": "^16.0.0",
27+
"express": "^4.17.3",
28+
"express-fileupload": "^1.3.1",
29+
"reflect-metadata": "^0.1.13"
30+
}
3031
}

session 6/BooksLibrary/src/api/routes/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Router {
1414
//Handling the base route
1515
this._app.get('/api/v1/', (req, res) => {
1616
res.send({
17-
message: `API [Version ${process.env.API_VERSION}]`,
17+
message : `API [Version ${process.env.API_VERSION}]`,
1818
});
1919
});
2020
resolve(true);

session 6/BooksLibrary/src/app.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ export default class Application {
6565

6666
this._app.use(
6767
fileUpload({
68-
limits: { fileSize: MAX_UPLOAD_FILE_SIZE },
69-
preserveExtension: true,
70-
createParentPath: true,
71-
parseNested: true,
72-
useTempFiles: true,
73-
tempFileDir: '/tmp/uploads/',
68+
limits : { fileSize: MAX_UPLOAD_FILE_SIZE },
69+
preserveExtension : true,
70+
createParentPath : true,
71+
parseNested : true,
72+
useTempFiles : true,
73+
tempFileDir : '/tmp/uploads/',
7474
})
7575
);
7676
resolve(true);

session 6/BooksLibrary/src/common/logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export class Logger {
1919
public error = (message: string, code: number, details: unknown): void => {
2020
const dateTime = new Date().toISOString();
2121
const err = {
22-
message: message,
23-
code: code,
24-
details: details,
22+
message : message,
23+
code : code,
24+
details : details,
2525
};
2626
const temp_str = dateTime + '> ' + JSON.stringify(err, null, ' ');
2727
console.log(' ');

session 6/BooksLibrary/src/config/configuration.manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export class ConfigurationManager {
99

1010
public static loadConfigurations = (): void => {
1111
ConfigurationManager._config = {
12-
BaseUrl: process.env.BASE_URL,
13-
SystemIdentifier: '',
14-
MaxUploadFileSize: 0,
12+
BaseUrl : process.env.BASE_URL,
13+
SystemIdentifier : '',
14+
MaxUploadFileSize : 0,
1515
};
1616
};
1717
}

0 commit comments

Comments
 (0)