Skip to content

Commit

Permalink
feat: add no test folder rule
Browse files Browse the repository at this point in the history
  • Loading branch information
solilokiam committed Oct 20, 2022
1 parent 4cd34c0 commit dffbfcb
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
},
ecmaVersion: 'latest',
},
plugins: ['react', '@typescript-eslint', 'jest'],
plugins: ['react', '@typescript-eslint', 'jest', 'check-file',],
settings: {
react: {
version: 'detect',
Expand All @@ -28,5 +28,12 @@ module.exports = {
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
"check-file/folder-match-with-fex": [
"error",
{
"*.test.{js,jsx,ts,tsx}":"!**/__tests__/",
"*.test.{js,jsx,ts,tsx}":"!**/__test__/",
},
]
},
};
40 changes: 40 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"eslint": ">= 8",
"eslint-plugin-check-file": "^1.2.3",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-react": "^7.31.10"
},
Expand Down

0 comments on commit dffbfcb

Please sign in to comment.