diff --git a/.eslintrc b/.eslintrc index c872ed4d97..d9c5599b01 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,7 +4,8 @@ "$fetch": true }, "plugins": [ - "jsdoc" + "jsdoc", + "no-only-tests" ], "extends": [ "plugin:jsdoc/recommended", @@ -18,6 +19,7 @@ "ignoreDeclarationSort": true } ], + "no-only-tests/no-only-tests": "error", "unicorn/prefer-node-protocol": "error", "no-console": "off", "vue/multi-word-component-names": "off", diff --git a/package.json b/package.json index 4fd392aa7f..d3b2927a13 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jsdoc": "^41.1.2", + "eslint-plugin-no-only-tests": "^3.1.0", "execa": "^7.1.1", "fs-extra": "^11.1.1", "globby": "^13.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4f107c1f29..b54d00f1d0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,6 +61,9 @@ importers: eslint-plugin-jsdoc: specifier: ^41.1.2 version: 41.1.2(eslint@8.39.0) + eslint-plugin-no-only-tests: + specifier: ^3.1.0 + version: 3.1.0 execa: specifier: ^7.1.1 version: 7.1.1 @@ -4393,6 +4396,11 @@ packages: semver: 7.5.0 dev: true + /eslint-plugin-no-only-tests@3.1.0: + resolution: {integrity: sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==} + engines: {node: '>=5.0.0'} + dev: true + /eslint-plugin-node@11.1.0(eslint@8.39.0): resolution: {integrity: sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==} engines: {node: '>=8.10.0'}