-
Notifications
You must be signed in to change notification settings - Fork 438
/
.eslintrc
51 lines (51 loc) · 1.35 KB
/
.eslintrc
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
{
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks", "import", "jsx-a11y"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"env": {
"es6": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"@typescript-eslint/explicit-module-boundary-types": 0,
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react/jsx-first-prop-new-line": 0,
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"react/destructuring-assignment": 0,
"react/no-multi-comp": 0,
"react/prop-types": 0,
"jsx-a11y/href-no-hash": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-underscore-dangle": 0,
"prefer-template": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["demo/**"]
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
}