chore(eslint): add rule for Cypress only

pull/5932/head
k3yi0 2022-06-08 12:08:38 +02:00
parent 9323f81c85
commit f30caedae3
2 changed files with 9 additions and 2 deletions

View File

@ -8,7 +8,8 @@
"react",
"prettier",
"@babel",
"jest"
"jest",
"no-only-tests"
],
"settings": {
"react": {
@ -355,7 +356,8 @@
],
"@typescript-eslint/type-annotation-spacing": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/unified-signatures": "error"
"@typescript-eslint/unified-signatures": "error",
"no-only-tests/no-only-tests": "error"
},
"overrides": [
{

View File

@ -4957,6 +4957,11 @@ eslint-plugin-jest@^24.1.8:
dependencies:
"@typescript-eslint/experimental-utils" "^4.0.1"
eslint-plugin-no-only-tests@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz#19f6c9620bda02b9b9221b436c5f070e42628d76"
integrity sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==
eslint-plugin-prefer-arrow@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz#e7fbb3fa4cd84ff1015b9c51ad86550e55041041"