-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
53 lines (53 loc) · 1.42 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"ignorePatterns": ["*.js", "*.config.js", "*.d.ts"],
"plugins": ["react", "@typescript-eslint", "prettier"],
"rules": {
"linebreak-style": ["error", "windows"],
"object-curly-newline": ["error", { "ImportDeclaration": { "multiline": true } }],
"max-len": ["error", { "code": 120, "tabWidth": 2 }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/prefer-default-export": "off",
"react/require-default-props": "off",
"no-void": "off",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/no-use-before-define": "warn",
"import/no-cycle": "warn",
"no-param-reassign": "warn",
"react-hooks/exhaustive-deps": "error"
},
"overrides": [
{
"files": ["src/store/**"],
"rules": {
"no-param-reassign": "off",
"import/no-cycle": "off"
}
}
],
"settings": {
"import/resolver": "webpack"
}
}