Skip to content

Commit 4213ff1

Browse files
committed
consistent .eslintrc.js, few formatting fixes #139
1 parent 659f3d6 commit 4213ff1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+85
-121
lines changed

.vscode/settings.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
},
1717
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
1818
"editor.formatOnSave": true,
19-
"eslint.alwaysShowStatus": true,
2019
"editor.codeActionsOnSave": {
2120
"source.fixAll.eslint": true
2221
},
22+
"eslint.alwaysShowStatus": true,
2323
"eslint.workingDirectories": [
24-
{ "directory": "./app", "changeProcessCWD": true },
25-
{ "directory": "./api", "changeProcessCWD": true },
26-
{ "directory": "./lambda", "changeProcessCWD": true },
24+
{ "directory": "./saas/app", "changeProcessCWD": true },
25+
{ "directory": "./saas/api", "changeProcessCWD": true },
26+
{ "directory": "./saas/lambda", "changeProcessCWD": true },
2727
{ "directory": "./book/1-end/app", "changeProcessCWD": true },
2828
{ "directory": "./book/2-begin/app", "changeProcessCWD": true },
2929
{ "directory": "./book/2-end/app", "changeProcessCWD": true },

book/1-end/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/10-begin/api/.eslintrc.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
44
env: {
55
"es6": true,
6-
"node": true
6+
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -13,7 +14,7 @@ module.exports = {
1314
trailingComma: 'all',
1415
arrowParens: 'always',
1516
printWidth: 100,
16-
semi: true
17+
semi: true,
1718
},
1819
],
1920
'@typescript-eslint/no-unused-vars': 'off',
@@ -22,7 +23,4 @@ module.exports = {
2223
'prefer-arrow-callback': 'error',
2324
'@typescript-eslint/explicit-module-boundary-types': 'off',
2425
},
25-
plugins: [
26-
"prettier"
27-
]
2826
}

book/10-begin/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/10-end/api/.eslintrc.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
"es6": true,
66
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -22,7 +23,4 @@ module.exports = {
2223
'prefer-arrow-callback': 'error',
2324
'@typescript-eslint/explicit-module-boundary-types': 'off',
2425
},
25-
plugins: [
26-
"prettier",
27-
]
2826
}

book/10-end/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/2-begin/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/2-end/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/3-begin/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/3-end/api/.eslintrc.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
44
env: {
55
"es6": true,
6-
"node": true
6+
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -13,15 +14,13 @@ module.exports = {
1314
trailingComma: 'all',
1415
arrowParens: 'always',
1516
printWidth: 100,
16-
semi: true
17+
semi: true,
1718
},
1819
],
1920
'@typescript-eslint/no-unused-vars': 'off',
2021
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
2123
'prefer-arrow-callback': 'error',
2224
'@typescript-eslint/explicit-module-boundary-types': 'off',
2325
},
24-
plugins: [
25-
"prettier"
26-
]
2726
}

book/3-end/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/4-begin/api/.eslintrc.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
44
env: {
55
"es6": true,
6-
"node": true
6+
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -13,15 +14,13 @@ module.exports = {
1314
trailingComma: 'all',
1415
arrowParens: 'always',
1516
printWidth: 100,
16-
semi: true
17+
semi: true,
1718
},
1819
],
1920
'@typescript-eslint/no-unused-vars': 'off',
2021
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
2123
'prefer-arrow-callback': 'error',
2224
'@typescript-eslint/explicit-module-boundary-types': 'off',
2325
},
24-
plugins: [
25-
"prettier"
26-
]
2726
}

book/4-begin/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/4-end/api/.eslintrc.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
44
env: {
55
"es6": true,
6-
"node": true
6+
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -13,15 +14,13 @@ module.exports = {
1314
trailingComma: 'all',
1415
arrowParens: 'always',
1516
printWidth: 100,
16-
semi: true
17+
semi: true,
1718
},
1819
],
1920
'@typescript-eslint/no-unused-vars': 'off',
2021
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
2123
'prefer-arrow-callback': 'error',
2224
'@typescript-eslint/explicit-module-boundary-types': 'off',
2325
},
24-
plugins: [
25-
"prettier"
26-
]
2726
}

book/4-end/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/5-begin/api/.eslintrc.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
44
env: {
55
"es6": true,
6-
"node": true
6+
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -13,15 +14,13 @@ module.exports = {
1314
trailingComma: 'all',
1415
arrowParens: 'always',
1516
printWidth: 100,
16-
semi: true
17+
semi: true,
1718
},
1819
],
1920
'@typescript-eslint/no-unused-vars': 'off',
2021
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
2123
'prefer-arrow-callback': 'error',
2224
'@typescript-eslint/explicit-module-boundary-types': 'off',
2325
},
24-
plugins: [
25-
"prettier"
26-
]
2726
}

book/5-begin/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

book/5-end/api/.eslintrc.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ module.exports = {
33
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
44
env: {
55
"es6": true,
6-
"node": true
6+
"node": true,
77
},
8+
plugins: ["prettier"],
89
rules: {
910
'prettier/prettier': [
1011
'error',
@@ -13,15 +14,13 @@ module.exports = {
1314
trailingComma: 'all',
1415
arrowParens: 'always',
1516
printWidth: 100,
16-
semi: true
17+
semi: true,
1718
},
1819
],
1920
'@typescript-eslint/no-unused-vars': 'off',
2021
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
2123
'prefer-arrow-callback': 'error',
2224
'@typescript-eslint/explicit-module-boundary-types': 'off',
2325
},
24-
plugins: [
25-
"prettier"
26-
]
2726
}

book/5-end/app/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
es6: true,
99
node: true,
1010
},
11+
plugins: ['prettier', 'react'],
1112
rules: {
1213
'prettier/prettier': [
1314
'error',
@@ -27,5 +28,4 @@ module.exports = {
2728
'prefer-arrow-callback': 'error',
2829
'@typescript-eslint/explicit-module-boundary-types': 'off',
2930
},
30-
plugins: ['prettier', 'react'],
3131
};

0 commit comments

Comments
 (0)