Skip to content

Commit

Permalink
fix: missing eslint plugin jest
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Mar 11, 2022
1 parent 8ffd9e4 commit b6b9405
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
'plugin:@hannoeru/typescript',
'plugin:@hannoeru/react',
'plugin:@hannoeru/vue',
'plugin:@hannoeru/jest',
'plugin:@hannoeru/json',
'plugin:@hannoeru/yml',
],
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-jsonc": "^2.2.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-n": "^15.0.1",
Expand All @@ -50,8 +52,6 @@
"@babel/types": "^7.17.0",
"@typescript-eslint/utils": "^5.14.0",
"eslint": "^8.10.0",
"eslint-plugin-jest-formatting": "^3.1.0",
"react": "^17.0.2",
"typescript": "^4.6.2",
"unbuild": "^0.7.0"
}
Expand Down
5 changes: 5 additions & 0 deletions packages/eslint-plugin/src/configs/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export default defineConfig({
'plugin:jest/recommended',
'plugin:jest-formatting/recommended',
],
settings: {
jest: {
version: 26,
},
},
rules: {
'jest/prefer-lowercase-title': ['error', { ignore: ['describe'] }],
'jest/no-restricted-matchers': [
Expand Down
39 changes: 27 additions & 12 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 b6b9405

Please sign in to comment.