diff --git a/.eslintrc.json b/.eslintrc.json index 274e73d453..210af778d3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -7,7 +7,7 @@ "jsx": true // Allows for the parsing of JSX } }, - "plugins": ["@typescript-eslint", "cypress", "ternary"], + "plugins": ["@typescript-eslint", "cypress", "no-only-tests", "ternary"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", @@ -24,6 +24,7 @@ }, "rules": { "comma-spacing": ["error", { "before": false, "after": true }], + "cypress/no-pause": "error", "indent": ["error", 2], "linebreak-style": ["error", "unix"], "quotes": ["error", "double"], @@ -46,6 +47,7 @@ "space-infix-ops": "error", "no-trailing-spaces": ["error", { "ignoreComments": true }], "comma-dangle": ["error", "never"], + "no-only-tests/no-only-tests": "error", "object-curly-spacing": ["error", "always"], "space-in-parens": ["error", "never"], "ternary/no-unreachable": "off", diff --git a/package.json b/package.json index b70fe61bd4..a62f07950c 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "chalk": "^4.1.0", "eslint": "^6.8.0", "eslint-plugin-cypress": "^2.11.3", + "eslint-plugin-no-only-tests": "^2.6.0", "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-ternary": "^1.0.4", diff --git a/yarn.lock b/yarn.lock index 525718de11..8a8be66580 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11821,9 +11821,9 @@ eslint-module-utils@^2.4.1: pkg-dir "^2.0.0" eslint-plugin-cypress@^2.11.3: - version "2.11.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.3.tgz#54ee4067aa8192aa62810cd35080eb577e191ab7" - integrity sha512-hOoAid+XNFtpvOzZSNWP5LDrQBEJwbZwjib4XJ1KcRYKjeVj0mAmPmucG4Egli4j/aruv+Ow/acacoloWWCl9Q== + version "2.12.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.12.1.tgz#9aeee700708ca8c058e00cdafe215199918c2632" + integrity sha512-c2W/uPADl5kospNDihgiLc7n87t5XhUbFDoTl6CfVkmG+kDAb5Ux10V9PoLPu9N+r7znpc+iQlcmAqT1A/89HA== dependencies: globals "^11.12.0" @@ -11867,6 +11867,11 @@ eslint-plugin-jsx-a11y@6.2.3: has "^1.0.3" jsx-ast-utils "^2.2.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-react-hooks@^1.6.1: version "1.7.0" resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"