Skip to content

Commit

Permalink
chore(deps)!: update dependency eslint to v8 (#173)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: upgrade to `eslint` v8.0.0.

Plugin dependency versions:
- `@typescript-eslint/eslint-plugin` ^5.0.0
- `@typescript-eslint/parser` ^5.0.0
- `eslint-plugin-jest` ^25.2.0
- `eslint-plugin-jsx-a11y` ^6.4.0
- `eslint-plugin-react` ^7.26.0
- `eslint-plugin-react-hooks` ^4.2.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jonathan Zempel <jzempel@gmail.com>
  • Loading branch information
3 people committed Oct 16, 2021
1 parent daf7799 commit c22840b
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 261 deletions.
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -23,15 +23,15 @@
},
"peerDependencies": {
"babel-eslint": "^10.0.0",
"eslint": "^7.15.0",
"eslint": "^8.0.0",
"eslint-plugin-node": "^11.1.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"@typescript-eslint/eslint-plugin": "5.0.0",
"@typescript-eslint/parser": "5.0.0",
"babel-eslint": "10.1.0",
"eslint": "7.32.0",
"eslint-plugin-jest": "24.7.0",
"eslint": "8.0.1",
"eslint-plugin-jest": "25.2.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-notice": "0.9.10",
Expand Down
6 changes: 3 additions & 3 deletions plugins/jest.js
Expand Up @@ -13,8 +13,6 @@ module.exports = {
'jest/consistent-test-it': 0,
// enforce assertion to be made in a test body
'jest/expect-expect': 2,
// enforce lowercase test names
'jest/lowercase-name': [1, { ignore: ['describe'] }],
// disallow alias methods
'jest/no-alias-methods': 2,
// disallow commented out tests
Expand Down Expand Up @@ -65,6 +63,8 @@ module.exports = {
'jest/prefer-expect-resolves': 2,
// suggest having hooks before any test cases
'jest/prefer-hooks-on-top': 0,
// enforce lowercase test names
'jest/prefer-lowercase-title': [1, { ignore: ['describe'] }],
// suggest using `jest.spyOn()`
'jest/prefer-spy-on': 0,
// suggest using `toStrictEqual()`
Expand All @@ -84,7 +84,7 @@ module.exports = {
// require test cases and hooks to be inside a `describe` block
'jest/require-top-level-describe': 2,
// enforce valid `describe()` callback
'jest/valid-describe': 2,
'jest/valid-describe-callback': 2,
// enforce valid `expect()` usage
'jest/valid-expect': 2,
// enforce having return statement when testing with promises
Expand Down

0 comments on commit c22840b

Please sign in to comment.