-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
72 lines (72 loc) · 1.57 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": "./tsconfig.eslint.json" },
"plugins": ["@typescript-eslint", "jest-dom", "testing-library"],
"extends": [
"airbnb-typescript",
"plugin:react/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react",
"plugin:import/recommended",
"prettier"
],
"env": { "es6": true, "browser": true, "node": true },
"settings": { "react": { "version": "detect" } },
"rules": {
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"eol-last": ["error", "always"],
"react/react-in-jsx-scope": "off",
"no-restricted-globals": "off",
"no-unreachable": "error",
"object-curly-newline": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"max-len": [
1,
120,
2,
{
"ignorePattern": "^import|export\\s.+\\sfrom\\s.+;$",
"ignoreUrls": true
}
],
"@typescript-eslint/no-use-before-define": [
"warn",
{
"functions": false,
"typedefs": false
}
],
"react/jsx-key": ["error", { "checkFragmentShorthand": true }],
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-explicit-any": "error",
"react/require-default-props": "off"
},
"overrides": [
{
"rules": {
"import/no-default-export": "off",
"import/no-extraneous-dependencies": "off"
},
"files": ["vite.config.ts"]
}
]
}