Skip to content

Commit 0938d47

Browse files
chore: Add linter for no 'only' tests (#3285)
1 parent 500ee9b commit 0938d47

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
'no-unsanitized',
2525
'header',
2626
'simple-import-sort',
27+
'no-only-tests',
2728
],
2829
rules: {
2930
'@typescript-eslint/no-empty-function': 'off',
@@ -89,6 +90,7 @@ module.exports = {
8990
],
9091
'no-warning-comments': 'warn',
9192
'simple-import-sort/imports': 'error',
93+
'no-only-tests/no-only-tests': 'error',
9294
},
9395
settings: {
9496
react: {

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"eslint": "^8.28.0",
9595
"eslint-config-prettier": "^9.1.0",
9696
"eslint-plugin-header": "^3.1.1",
97+
"eslint-plugin-no-only-tests": "^3.3.0",
9798
"eslint-plugin-no-unsanitized": "^4.0.2",
9899
"eslint-plugin-prettier": "^5.1.3",
99100
"eslint-plugin-react": "^7.31.11",

0 commit comments

Comments
 (0)