Skip to content

Commit

Permalink
consistent .eslintrc.js, few formatting fixes #139
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Jan 14, 2021
1 parent 659f3d6 commit 4213ff1
Show file tree
Hide file tree
Showing 43 changed files with 85 additions and 121 deletions.
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true,
"eslint.alwaysShowStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.alwaysShowStatus": true,
"eslint.workingDirectories": [
{ "directory": "./app", "changeProcessCWD": true },
{ "directory": "./api", "changeProcessCWD": true },
{ "directory": "./lambda", "changeProcessCWD": true },
{ "directory": "./saas/app", "changeProcessCWD": true },
{ "directory": "./saas/api", "changeProcessCWD": true },
{ "directory": "./saas/lambda", "changeProcessCWD": true },
{ "directory": "./book/1-end/app", "changeProcessCWD": true },
{ "directory": "./book/2-begin/app", "changeProcessCWD": true },
{ "directory": "./book/2-end/app", "changeProcessCWD": true },
Expand Down
2 changes: 1 addition & 1 deletion book/1-end/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
8 changes: 3 additions & 5 deletions book/10-begin/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -13,7 +14,7 @@ module.exports = {
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
semi: true,
},
],
'@typescript-eslint/no-unused-vars': 'off',
Expand All @@ -22,7 +23,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier"
]
}
2 changes: 1 addition & 1 deletion book/10-begin/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
4 changes: 1 addition & 3 deletions book/10-end/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
"es6": true,
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -22,7 +23,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier",
]
}
2 changes: 1 addition & 1 deletion book/10-end/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
2 changes: 1 addition & 1 deletion book/2-begin/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
2 changes: 1 addition & 1 deletion book/2-end/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
2 changes: 1 addition & 1 deletion book/3-begin/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
9 changes: 4 additions & 5 deletions book/3-end/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -13,15 +14,13 @@ module.exports = {
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
semi: true,
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier"
]
}
2 changes: 1 addition & 1 deletion book/3-end/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
9 changes: 4 additions & 5 deletions book/4-begin/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -13,15 +14,13 @@ module.exports = {
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
semi: true,
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier"
]
}
2 changes: 1 addition & 1 deletion book/4-begin/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
9 changes: 4 additions & 5 deletions book/4-end/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -13,15 +14,13 @@ module.exports = {
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
semi: true,
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier"
]
}
2 changes: 1 addition & 1 deletion book/4-end/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
9 changes: 4 additions & 5 deletions book/5-begin/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -13,15 +14,13 @@ module.exports = {
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
semi: true,
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier"
]
}
2 changes: 1 addition & 1 deletion book/5-begin/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
9 changes: 4 additions & 5 deletions book/5-end/api/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module.exports = {
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
env: {
"es6": true,
"node": true
"node": true,
},
plugins: ["prettier"],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -13,15 +14,13 @@ module.exports = {
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
semi: true,
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: [
"prettier"
]
}
2 changes: 1 addition & 1 deletion book/5-end/app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
es6: true,
node: true,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': [
'error',
Expand All @@ -27,5 +28,4 @@ module.exports = {
'prefer-arrow-callback': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
plugins: ['prettier', 'react'],
};
Loading

0 comments on commit 4213ff1

Please sign in to comment.