-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
47 lines (47 loc) · 1.33 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": ["airbnb-base", "prettier"],
"overrides": [],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-invalid-regexp": "error",
"no-this-before-super": "error",
"no-unexpected-multiline": "warn",
"no-unused-vars": "error",
"no-use-before-define": "error",
"accessor-pairs": "error",
"arrow-body-style": ["error", "as-needed"],
"camelcase": ["error", { "ignoreImports": true }],
"func-name-matching": "error",
"no-confusing-arrow": "warn",
"no-empty": "warn",
"no-empty-function": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-return": "warn",
"no-var": "error",
"prefer-arrow-callback": "warn",
"require-await": "warn",
"consistent-return": "warn",
"no-trailing-spaces": [
"error",
{ "skipBlankLines": true, "ignoreComments": true }
],
"import/extensions": "off",
"no-console": "off",
"import/no-cycle": "off",
"no-nested-ternary": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"array-callback-return": "off"
}
}