Skip to content

Commit

Permalink
feat(jest): add eslint-plugin-jest-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 25, 2020
1 parent ce68d08 commit c87a4f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jest.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/** @type {import('eslint').Linter.Config} */
const config = {
plugins: ['eslint-plugin-jest'],
plugins: ['jest', 'jest-formatting'],
extends: [
'plugin:eslint-plugin-jest/recommended',
'plugin:eslint-plugin-jest/style'
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:jest-formatting/recommended'
],
rules: {
'jest/consistent-test-it': 'error',
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-jest-formatting": "^1.2.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.0",
Expand Down

0 comments on commit c87a4f8

Please sign in to comment.