chore: disallow .only in tests

This commit is contained in:
Daniel Roe 2023-05-05 13:53:49 +01:00
parent 24c30eb976
commit ad97cb45ae
3 changed files with 12 additions and 1 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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'}