Skip to content

Commit 54251a0

Browse files
committed
chore: adds more formatting
1 parent 1741f18 commit 54251a0

File tree

4 files changed

+85
-5
lines changed

4 files changed

+85
-5
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true
9+
quote_type = single

lesson_26/api/javascript/api_app/.eslintrc.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
tsconfigRootDir: __dirname,
66
sourceType: 'module',
77
},
8-
plugins: ['@typescript-eslint/eslint-plugin'],
8+
plugins: ['@typescript-eslint/eslint-plugin', '@stylistic/eslint-plugin'],
99
extends: [
1010
'plugin:@typescript-eslint/recommended',
1111
'plugin:prettier/recommended',
@@ -17,9 +17,14 @@ module.exports = {
1717
},
1818
ignorePatterns: ['.eslintrc.js'],
1919
rules: {
20-
'@typescript-eslint/interface-name-prefix': 'off',
21-
'@typescript-eslint/explicit-function-return-type': 'off',
22-
'@typescript-eslint/explicit-module-boundary-types': 'off',
23-
'@typescript-eslint/no-explicit-any': 'off',
20+
'@typescript-eslint/interface-name-prefix': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'error',
23+
'@typescript-eslint/no-extraneous-class': 'off',
24+
'@stylistic/quotes': [
25+
'error',
26+
'single',
27+
{ avoidEscape: true, allowTemplateLiterals: false },
28+
],
2429
},
2530
};

lesson_26/api/javascript/api_app/package-lock.json

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lesson_26/api/javascript/api_app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@nestjs/cli": "^10.0.0",
3131
"@nestjs/schematics": "^10.0.0",
3232
"@nestjs/testing": "^10.0.0",
33+
"@stylistic/eslint-plugin": "^2.11.0",
3334
"@types/express": "^5.0.0",
3435
"@types/jest": "^29.5.2",
3536
"@types/node": "^20.3.1",

0 commit comments

Comments
 (0)