Skip to content

Commit

Permalink
Eslint: re-enable 'jest/valid-title' rule
Browse files Browse the repository at this point in the history
See: jest-community/eslint-plugin-jest#470 (comment)

adeira-source-id: 594a91ef3798662ca61379abbba0ef7b6d04117b
  • Loading branch information
mrtnzlml authored and adeira-github-bot committed Oct 27, 2020
1 parent 590afb8 commit c0b88fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion __tests__/__snapshots__/index.test.js.snap
Expand Up @@ -297,7 +297,7 @@ Object {
"jest/valid-describe": 2,
"jest/valid-expect": 2,
"jest/valid-expect-in-promise": 2,
"jest/valid-title": 0,
"jest/valid-title": 1,
"jsx-a11y/accessible-emoji": 2,
"jsx-a11y/alt-text": 2,
"jsx-a11y/anchor-has-content": 0,
Expand Down Expand Up @@ -913,6 +913,11 @@ Snapshot Diff:
- "jest/prefer-hooks-on-top": 1,
+ "jest/prefer-hooks-on-top": 2,
"jest/prefer-inline-snapshots": 0,
@@ --- --- @@
"jest/valid-expect-in-promise": 2,
- "jest/valid-title": 1,
+ "jest/valid-title": 2,
"jsx-a11y/accessible-emoji": 2,
@@ --- --- @@
"no-implied-eval": 2,
- "no-import-assign": 1,
Expand Down
2 changes: 1 addition & 1 deletion ourRules.js
Expand Up @@ -319,7 +319,7 @@ module.exports = {
'jest/valid-describe': ERROR,
'jest/valid-expect': ERROR,
'jest/valid-expect-in-promise': ERROR,
'jest/valid-title': OFF, // See: https://github.com/jest-community/eslint-plugin-jest/issues/470
'jest/valid-title': NEXT_VERSION_ERROR,

// prefer-object-spread (https://github.com/bryanrsmith/eslint-plugin-prefer-object-spread)
'prefer-object-spread/prefer-object-spread': WARN,
Expand Down

0 comments on commit c0b88fc

Please sign in to comment.