Skip to content

Commit

Permalink
Chore/bump plugins (#10)
Browse files Browse the repository at this point in the history
* chore: bump plugins

* fix: rename jest rules

* chore: bump version to 1.4.1

* chore: add audit to test_pr workflow

* chore: correct command
  • Loading branch information
jkoenig134 authored Oct 19, 2021
1 parent b951bef commit 9352142
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 140 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
- run: npm ci
- run: npm i eslint typescript
- run: npm test
- run: npx better-npm-audit audit
9 changes: 4 additions & 5 deletions jest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
rules: {
"jest/consistent-test-it": ["error", { fn: "test", withinDescribe: "test" }],
"jest/expect-expect": "error",
"jest/valid-title": ["error", { "mustMatch": { "describe": "^[A-Z]", "it": "^[a-z]", "test": "^[a-z]" } }],
"jest/valid-title": ["error", { mustMatch: { describe: "^[A-Z]", it: "^[a-z]", test: "^[a-z]" } }],
"jest/max-nested-describe": ["error", { max: 2 }],
"jest/no-alias-methods": "error",
"jest/no-commented-out-tests": "error",
Expand All @@ -27,14 +27,13 @@ module.exports = {
"jest/prefer-hooks-on-top": "error",
"jest/prefer-spy-on": "error",
"jest/prefer-strict-equal": "error",
"jest/prefer-to-be-null": "error",
"jest/prefer-to-be-undefined": "error",
"jest/prefer-to-be": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "error",
"jest/prefer-todo": "error",
"jest/require-to-throw-message": "error",
"jest/valid-describe": "error",
"jest/valid-describe-callback": "error",
"jest/valid-expect": ["error", { alwaysAwait: true, minArgs: 1, maxArgs: 2 }],
"jest/valid-expect-in-promise": "error",
"jest/valid-expect-in-promise": "error"
}
}
Loading

0 comments on commit 9352142

Please sign in to comment.