-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc.json
57 lines (57 loc) · 1.41 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
{
"extends": [
"airbnb",
"airbnb-typescript",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react-perf/recommended",
"plugin:prettier/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "react-hooks", "react-perf", "import"],
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-unresolved": "error",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/destructuring-assignment": "off",
"import/prefer-default-export": "off",
"@next/next/no-img-element": "off",
"react/require-default-props": "off",
"no-nested-ternary": "off",
"prettier/prettier": "error",
"no-else-return": "warn",
"no-restricted-syntax": "off",
"no-continue": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"no-underscore-dangle": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
}
},
"globals": {
"JSX": "readonly"
}
}