-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
43 lines (43 loc) · 1.06 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
{
"rules": {
"import/no-extraneous-dependencies": "off",
"react/react-in-jsx-scope": "off",
"import/no-dynamic-require": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"global-require": "off",
"prettier/prettier": "error"
},
"extends": [
"eslint:recommended", // use recommended configs
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"project": "./tsconfig.json",
"tsconfigRootDir": ".",
"createDefaultProgram": true
},
"settings": {
"import/resolver": {
"typescript": {}
},
"react": {
"version": "detect" // detect react version
}
},
"plugins": [
"react",
"@typescript-eslint",
"prettier"
]
}