-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.eslintrc
48 lines (48 loc) · 1.06 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"rules": {
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"indent": ["error", 2],
"curly": [2],
"quotes": [1, "double"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"comma-dangle": [0],
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-console": [0],
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-force": "warn"
},
"globals": {
"Generator": true
},
"env": {
"es6": true,
"browser": true,
"node": true,
"cypress/globals": true
},
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": true,
"ecmaFeatures": {
"modules": true,
"jsx": true,
"experimentalObjectRestSpread": true
},
},
"extends": [
"eslint:recommended",
"plugin:cypress/recommended"
],
"plugins": [
"react",
"prettier",
"cypress"
]
}