chore
This commit is contained in:
18
.eslintrc
18
.eslintrc
@ -3,12 +3,12 @@
|
||||
"env": {
|
||||
"node": true,
|
||||
"browser": true,
|
||||
"es6": true
|
||||
"es6": true,
|
||||
},
|
||||
"extends": ["eslint:recommended", "prettier"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": "latest"
|
||||
"ecmaVersion": "latest",
|
||||
},
|
||||
"rules": {
|
||||
"no-restricted-imports": [
|
||||
@ -24,14 +24,14 @@
|
||||
"object.hasown",
|
||||
"object.values",
|
||||
"string.prototype.matchall",
|
||||
"has"
|
||||
]
|
||||
}
|
||||
"has",
|
||||
],
|
||||
},
|
||||
],
|
||||
"arrow-body-style": ["error", "as-needed"],
|
||||
"class-methods-use-this": [
|
||||
"warn",
|
||||
{ "exceptMethods": ["toString", "shouldComponentUpdate"] }
|
||||
{ "exceptMethods": ["toString", "shouldComponentUpdate"] },
|
||||
],
|
||||
"complexity": ["warn", { "max": 100 }],
|
||||
"curly": ["error", "multi-line", "consistent"],
|
||||
@ -50,13 +50,13 @@
|
||||
"prefer-const": ["error", { "destructuring": "all" }],
|
||||
"prefer-destructuring": [
|
||||
"warn",
|
||||
{ "AssignmentExpression": { "array": false, "object": false } }
|
||||
{ "AssignmentExpression": { "array": false, "object": false } },
|
||||
],
|
||||
"prefer-rest-params": "warn",
|
||||
"prefer-spread": "warn",
|
||||
"quote-props": ["error", "as-needed"],
|
||||
"spaced-comment": ["error", "always", { "markers": ["/"] }],
|
||||
"sort-imports": ["warn", { "ignoreDeclarationSort": true }],
|
||||
"yoda": ["error", "never", { "exceptRange": true }]
|
||||
}
|
||||
"yoda": ["error", "never", { "exceptRange": true }],
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user