Skip to content

Commit

Permalink
feat(basic): add rules to prevent .only in tests (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
KylinDC committed Oct 31, 2022
1 parent 501ff74 commit da59484
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/basic/index.js
Expand Up @@ -35,6 +35,7 @@ module.exports = {
'html',
'unicorn',
'antfu',
'no-only-tests',
],
settings: {
'import/resolver': {
Expand Down Expand Up @@ -155,6 +156,7 @@ module.exports = {
files: ['*.test.ts', '*.test.js', '*.spec.ts', '*.spec.js'],
rules: {
'no-unused-expressions': 'off',
'no-only-tests/no-only-tests': 'error',
},
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/basic/package.json
Expand Up @@ -26,6 +26,7 @@
"eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^43.0.2",
"eslint-plugin-yml": "^1.1.0",
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da59484

Please sign in to comment.