Skip to content

Commit 46b8f1b

Browse files
committed
chore: Add no-only-tests eslint rule
1 parent a18a874 commit 46b8f1b

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"plugin:import/errors",
2020
"plugin:import/warnings"
2121
],
22-
"plugins": ["@typescript-eslint", "prettier", "folders", "unicorn"],
22+
"plugins": ["@typescript-eslint", "prettier", "folders", "unicorn", "no-only-tests"],
2323
"rules": {
2424
// kebab-case
2525
"folders/match-regex": [2, "^[a-z-]+$", "/src/"],
@@ -71,6 +71,7 @@
7171
"new-cap": ["error", { "capIsNew": false }],
7272
"no-restricted-globals": 0,
7373
"no-var-requires": 0,
74+
"no-only-tests/no-only-tests": "error",
7475
"prefer-object-spread": "error",
7576
"prefer-destructuring": 0,
7677
"strict": 0,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@
288288
"eslint-config-prettier": "^8.5.0",
289289
"eslint-plugin-folders": "^1.0.3",
290290
"eslint-plugin-import": "^2.26.0",
291+
"eslint-plugin-no-only-tests": "^3.1.0",
291292
"eslint-plugin-prettier": "^4.2.1",
292293
"eslint-plugin-unicorn": "^40.1.0",
293294
"glob": "^8.0.3",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,6 +3265,11 @@ eslint-plugin-import@^2.26.0:
32653265
resolve "^1.22.0"
32663266
tsconfig-paths "^3.14.1"
32673267

3268+
eslint-plugin-no-only-tests@^3.1.0:
3269+
version "3.1.0"
3270+
resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz#f38e4935c6c6c4842bf158b64aaa20c366fe171b"
3271+
integrity sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==
3272+
32683273
eslint-plugin-prettier@^4.2.1:
32693274
version "4.2.1"
32703275
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b"

0 commit comments

Comments
 (0)