mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-01-20 10:31:00 +01:00
added cypress eslint config
This commit is contained in:
parent
294e054524
commit
7d9c7037bc
12
.eslintrc
12
.eslintrc
@ -4,7 +4,7 @@
|
|||||||
"jest": true,
|
"jest": true,
|
||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
"plugins": ["import"],
|
"plugins": ["import", "cypress"],
|
||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"prettier",
|
"prettier",
|
||||||
@ -66,6 +66,14 @@
|
|||||||
"prefer-arrow/prefer-arrow-functions": "off",
|
"prefer-arrow/prefer-arrow-functions": "off",
|
||||||
"prefer-const": "error",
|
"prefer-const": "error",
|
||||||
"radix": "off",
|
"radix": "off",
|
||||||
"space-in-parens": ["off", "never"]
|
"space-in-parens": ["off", "never"],
|
||||||
|
// cypress
|
||||||
|
"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",
|
||||||
|
"cypress/require-data-selectors": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user