-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
54 lines (54 loc) · 1.38 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
{
"extends": ["next/core-web-vitals", "airbnb", "plugin:prettier/recommended"],
"ignorePatterns": ["build", "node_modules/*", ".next"],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"settings": {
"react": {
"version": "detect"
}
},
"env":{
"jest": true
},
"globals": {
"React": false
},
"rules": {
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"react/require-default-props": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/anchor-is-valid": 0,
"no-underscore-dangle": 0,
"no-console": 0,
"no-alert": 0,
"no-unused-vars": 0,
"react/jsx-no-useless-fragment": 0,
"class-methods-use-this": 0,
"@typescript-eslint/no-unused-vars": "error",
"jsx-a11y/label-has-associated-control": [
2,
{
"some": ["nesting", "id"]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}