-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
46 lines (46 loc) · 1.41 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
{
"root": true,
"env": {
"node": true,
"es6": true
},
"parserOptions": { "ecmaVersion": 2021 },
"ignorePatterns": ["node_modules/*", ".build/*", "!.prettierrc.js"],
"extends": ["eslint:recommended"],
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"settings": { "react": { "version": "detect" } },
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended"
],
"rules": {
"semi": ["warn", "always"],
"react/prop-types": "off",
"quotes": ["warn", "double"],
"react/display-name": ["off"],
"no-case-declarations": "off",
"jsx-a11y/anchor-is-valid": "off",
"@typescript-eslint/ban-ts-comment": "off",
"jsx-a11y/click-events-have-key-events": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"jsx-a11y/no-static-element-interactions": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-function-return-type": ["off"],
"prettier/prettier": ["error", {}, { "usePrettierrc": true }]
}
}
]
}