-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.59 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
{
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {}
}
},
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard-with-typescript",
"plugin:react/recommended",
"prettier",
"plugin:import/typescript"
],
"parserOptions": {
"project": "./tsconfig-eslint.json"
},
"plugins": ["react", "import", "eslint-plugin-import-helpers"],
"rules": {
"no-console": "error",
"import/extensions": [
"error",
"never",
{
"svg": "always",
"styles": "always",
"png": "always"
}
],
"import/export": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-imports": "off",
"quotes": ["error", "double"],
"semi": ["error", "always"],
"comma-dangle": ["error", "only-multiline"],
"max-lines-per-function": ["error", { "max": 120 }],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
"no-restricted-imports": [2, { "patterns": ["../*"] }],
"no-restricted-modules": [2, { "patterns": ["../*"] }],
"import/order": [
"error",
{
"newlines-between": "always",
"groups": ["builtin", "external", "internal", "sibling", "unknown"],
"pathGroups": [
{ "pattern": "~/**", "group": "internal" },
{ "pattern": "#/**", "group": "sibling" }
]
}
]
}
}