-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
87 lines (87 loc) · 2.92 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
82
83
84
85
86
87
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"jest/globals": true
},
"extends": ["plugin:react/recommended", "plugin:react-hooks/recommended", "airbnb"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest"
},
"globals": {
"BodyInit": false
},
"plugins": ["react", "jest", "@typescript-eslint", "cypress"],
"rules": {
"eqeqeq": "off",
"no-var": "off",
"no-proto": "off",
"camelcase": "off",
"wrap-iife": "off",
"no-shadow": "off",
"no-console": "off",
"prefer-const": "off",
"no-plusplus": "off",
"import/order": "off",
"comma-dangle": "off",
"dot-notation": "off",
"no-unused-vars": "off",
"no-return-await": "off",
"linebreak-style": "off",
"react/prop-types": "off",
"react/jsx-no-bind": "off",
"consistent-return": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"no-confusing-arrow": "off",
"operator-linebreak": "off",
"react/jsx-fragments": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": "off",
"no-restricted-syntax": "off",
"no-prototype-builtins": "off",
"import/no-unresolved": "off",
"object-curly-newline": "off",
"function-paren-newline": "off",
"prefer-arrow-callback": "off",
"react/no-array-index-key": "off",
"no-unused-expressions": "off",
"implicit-arrow-linebreak": "off",
"react/jsx-wrap-multilines": "off",
"react/react-in-jsx-scope": "off",
"space-before-function-paren": "off",
"jsx-a11y/media-has-caption": "off",
"jest/no-conditional-expect": "off",
"react/require-default-props": "off",
"no-template-curly-in-string": "off",
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react/jsx-no-useless-fragment": "off",
"react/destructuring-assignment": "off",
"import/no-extraneous-dependencies": "off",
"react/jsx-one-expression-per-line": "off",
"@typescript-eslint/no-unused-vars": "error",
"jsx-a11y/no-noninteractive-tabindex": "off",
"react/function-component-definition": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"max-len": ["error", { "code": 120, "tabWidth": 2 }],
"import/extensions": ["off", "always", { "ignorePackages": true }],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-force": "warn",
"cypress/no-async-tests": "error",
"cypress/no-pause": "error"
}
}