diff --git a/.eslintrc.yml b/.eslintrc.yml index af121158..6daadbf4 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -9,3 +9,6 @@ globals: rules: react/no-unknown-property: ['error', { ignore: ['ouiaId'] }] rulesdir/forbid-pf-relative-imports: off + no-only-tests/no-only-tests: 'error' +plugins: + - "no-only-tests" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e69cd8a8..aef11582 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,6 +47,7 @@ "cypress": "^13.6.6", "eslint": "^8.57.0", "eslint-plugin-cypress": "^2.15.1", + "eslint-plugin-no-only-tests": "^3.1.0", "identity-obj-proxy": "3.0.0", "npm-run-all": "4.1.5", "prop-types": "15.8.1", @@ -7463,6 +7464,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/eslint-plugin-no-only-tests": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", + "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", + "dev": true, + "engines": { + "node": ">=5.0.0" + } + }, "node_modules/eslint-plugin-prettier": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", @@ -22787,6 +22797,12 @@ } } }, + "eslint-plugin-no-only-tests": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", + "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", + "dev": true + }, "eslint-plugin-prettier": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", diff --git a/package.json b/package.json index 47d121c9..4aca64c6 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "cypress": "^13.6.6", "eslint": "^8.57.0", "eslint-plugin-cypress": "^2.15.1", + "eslint-plugin-no-only-tests": "^3.1.0", "identity-obj-proxy": "3.0.0", "npm-run-all": "4.1.5", "prop-types": "15.8.1",