-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
95 lines (94 loc) 路 2.63 KB
/
Copy path.eslintrc.json
File metadata and controls
95 lines (94 loc) 路 2.63 KB
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
88
89
90
91
92
93
94
95
{
"root": true,
"parser": "@babel/eslint-parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"airbnb",
"prettier",
"plugin:cypress/recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"requireConfigFile": false,
"babelOptions": { "configFile": "./.babelrc_" }
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {},
"alias": {
"map": [
["components", "./src/components"],
["constants", "./src/constants"],
["utils", "./src/utils"]
]
}
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"rules": {
"react/prop-types": "off",
"react/forbid-prop-types": 0,
"react/require-default-props": "off",
"react/no-unescaped-entities": "off",
"react/jsx-props-no-spreading": "off",
"react/button-has-type": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-one-expression-per-line": "off",
"object-curly-newline": "off",
"implicit-arrow-linebreak": "off",
"react/no-danger": "off",
"react-hooks/exhaustive-deps": "off",
"react/jsx-filename-extension": [1, { "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",
"no-console": ["warn", { "allow": ["error"] }],
"import/no-unresolved": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"plugins": ["cypress"],
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"no-undef": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}