Skip to content

Commit

Permalink
fix(eslint): jest rules no longer fail if jest is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Aug 8, 2024
1 parent 6a1a125 commit 9da0c0b
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 171 deletions.
5 changes: 5 additions & 0 deletions cfg/eslint-jest-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ module.exports = {
'jest/prefer-to-be': 2,
'jest/prefer-to-contain': 2,
'jest/consistent-test-it': [2, { fn: 'test', withinDescribe: 'test' }],
'jest/expect-expect': 0,
'jest/no-commented-out-tests': 0,
'jest/no-export': 2,
'jest/no-conditional-expect': 0,
'jest/no-disabled-tests': 0,
},
}
5 changes: 0 additions & 5 deletions cfg/eslint-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,6 @@ module.exports = {
'no-await-in-loop': 0, // it's actually often ok
'no-extend-native': 2,
'guard-for-in': 2,
'jest/expect-expect': 0,
'jest/no-commented-out-tests': 0,
'jest/no-export': 2,
'jest/no-conditional-expect': 0,
'jest/no-disabled-tests': 0,
'@typescript-eslint/no-namespace': [
2,
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^28.0.0",
"eslint-plugin-jsdoc": "^48.0.1",
"eslint-plugin-jsdoc": "^50.0.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/test/cfg/eslint.config.dump.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"unused-imports",
"simple-import-sort:eslint-plugin-simple-import-sort@12.1.1",
"jsdoc",
"jest:eslint-plugin-jest@28.6.0"
"jest:eslint-plugin-jest@28.7.0"
],
"processor": "vue/vue",
"rules": {
Expand Down
Loading

0 comments on commit 9da0c0b

Please sign in to comment.