-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
56 lines (56 loc) · 1.24 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript",
"plugin:import/typescript",
"prettier"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json",
"extraFileExtensions": [".md", ".json"]
},
"plugins": [
"react",
"react-hooks",
"@typescript-eslint",
"prettier",
"import"
],
"rules": {
"semi": [2, "always"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/triple-slash-reference": "off",
"import/extensions": [
"error",
{
"ignorePackages": true,
"ts": "never",
"tsx": "never",
"js": "never",
"jsx": "never"
}
],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/no-unknown-property": ["error", { "ignore": ["css"] }]
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["vite.config.ts"],
"root": true
}