-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
98 lines (98 loc) · 2.52 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"eslint-config-prettier",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"prettier",
"eslint-plugin-import-helpers"
],
"rules": {
"prettier/prettier": ["error", {
"printWidth": 90
}],
"semi": [2, "never"],
"dot-notation": 0,
"consistent-return": "off",
"no-use-before-define": "off",
"no-undef": "off",
"no-plusplus": "off",
"no-else-return": "off",
"no-return-await": "off",
"no-param-reassign": [2, { "props": false }],
"no-unused-vars": ["error", { "args": "none", "caughtErrors": "none" }],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"react/jsx-filename-extension": [ "warn", { "extensions": [".tsx"] }],
"react/require-default-props": 0,
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none", "caughtErrors": "none" }],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/control-has-associated-label": "error",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
"module",
"/^@assets/",
"/^@routes/",
"/^@utils/",
"/^@types/",
"/^@services/",
"/^@contexts/",
"/^@hooks/",
"/^@components/",
"/^@pages/",
["parent", "sibling", "index"],
"/^@styles/",
"/^~/"
],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
]
}
}