-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
78 lines (78 loc) · 2.16 KB
/
.eslintrc.json
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"plugins": ["lodash"],
"extends": [
"airbnb",
"airbnb-typescript",
"next",
"next/core-web-vitals",
"plugin:lodash/recommended",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": ["**/*.js", "**/*.jsx", "**/*.mjs"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"prefer-template": "off",
"react/jsx-no-useless-fragment": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/return-await": "off",
"arrow-body-style": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"no-plusplus": "off",
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "**/*.+(css|scss|less)",
"patternOptions": { "dot": true, "nocomment": true },
"group": "unknown",
"position": "after"
},
{
"pattern": "{.,..}/**/*.+(css|scss|less)",
"patternOptions": { "dot": true, "nocomment": true },
"group": "unknown",
"position": "after"
}
]
}
],
"import/prefer-default-export": "off",
"lodash/chaining": "off",
"lodash/import-scope": [2, "method"],
"lodash/matches-prop-shorthand": "off",
"lodash/prefer-constant": "off",
"lodash/prefer-lodash-method": "off",
"lodash/prefer-lodash-typecheck": "off",
"lodash/prefer-noop": "off",
"lodash/prop-shorthand": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-restricted-exports": "off",
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-underscore-dangle": "off",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "function" }
],
"prefer-regex-literals": "off",
"react/require-default-props": "off",
"react-hooks/exhaustive-deps": [
"error",
{
"additionalHooks": "useDebouncedCallback"
}
]
}
}