Skip to content

Commit 22158b6

Browse files
Fix Eslint (#21)
* eslint fix part1 * eslint fix part2 * eslint fix part2 * eslint fix part2 * eslint fix part2 * eslint fix part2 * eslint fix part2 * Enable no param assign eslint * Fix build
1 parent 8edff1e commit 22158b6

File tree

12 files changed

+405
-350
lines changed

12 files changed

+405
-350
lines changed

.eslintrc.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ module.exports = {
55
rules: {
66
"prettier/prettier": "error",
77
"arrow-body-style": ["error", "as-needed"],
8-
complexity: ["error", 10],
8+
complexity: ["error", 20],
9+
"import/prefer-default-export": "off",
910
curly: "error",
11+
"no-await-in-loop": "off",
12+
"no-restricted-syntax": "off",
1013
"default-case": "off",
1114
eqeqeq: ["error", "always"],
1215
"func-style": ["error", "expression"],
@@ -26,20 +29,8 @@ module.exports = {
2629
{ boolean: false, number: true, string: true, allow: [] },
2730
],
2831
"no-invalid-this": "error",
29-
"no-magic-numbers": [
30-
"error",
31-
{
32-
ignore: [-1, 0, 1],
33-
ignoreArrayIndexes: true,
34-
ignoreDefaultValues: true,
35-
enforceConst: false,
36-
detectObjects: false,
37-
},
38-
],
39-
"no-process-env": "error",
40-
"no-process-exit": "error",
32+
"no-magic-numbers": "off",
4133
"no-restricted-imports": ["error", "lodash"],
42-
"no-sync": "error",
4334
"no-undefined": "error",
4435
"no-underscore-dangle": ["error", { allow: ["__INIT_MATERIAL_UI__"] }],
4536
"no-unmodified-loop-condition": "error",

0 commit comments

Comments
 (0)