-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
81 lines (81 loc) · 2.08 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
73
74
75
76
77
78
79
80
81
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"next",
"next/core-web-vitals",
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:eslint-comments/recommended",
"plugin:jest/recommended",
"plugin:promise/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "cypress", "eslint-comments", "jest", "promise", "import", "prettier"],
"rules": {
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"global-require": "off",
"no-var-requires": "off",
"import/no-extraneous-dependencies": "off",
"jest/expect-expect": [
"warn",
{
"assertFunctionNames": ["expect", "fc.assert", "cy.**"]
}
],
"prettier/prettier": "error",
"import/prefer-default-export": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"react/no-unused-prop-types": 0,
"react/require-default-props": 0,
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/self-closing-comp": [
"warn",
{
"component": true,
"html": true
}
],
"react/react-in-jsx-scope": "off",
"no-use-before-define": "off",
"prefer-const": "warn"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", "__tests__/*.tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
}
}
}