Skip to content

Commit fb54759

Browse files
ranyitzSimenB
authored andcommittedMar 10, 2018
feat(rules): add 'no-jest-import' rule to the recommended config (#99)
Fixes #98
1 parent 2404f42 commit fb54759

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ for more information about extending configuration files.
8686
| [no-focused-tests](docs/rules/no-focused-tests.md) | Disallow focused tests | ![recommended](https://img.shields.io/badge/-recommended-lightgrey.svg) | |
8787
| [no-hooks](docs/rules/no-hooks.md) | Disallow setup and teardown hooks | | |
8888
| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ![recommended](https://img.shields.io/badge/-recommended-lightgrey.svg) | |
89+
| [no-jest-import](docs/rules/no-jest-import.md) | Disallow importing `jest` | ![recommended](https://img.shields.io/badge/-recommended-lightgrey.svg) | |
8990
| [no-large-snapshots](docs/rules/no-large-snapshots.md) | Disallow large snapshots | | |
9091
| [no-test-prefixes](docs/rules/no-test-prefixes.md) | Disallow using `f` & `x` prefixes to define focused/skipped tests | | ![fixable](https://img.shields.io/badge/-fixable-green.svg) |
9192
| [prefer-to-have-length](docs/rules/prefer-to-have-length.md) | Suggest using `toHaveLength()` | ![recommended](https://img.shields.io/badge/-recommended-lightgrey.svg) | ![fixable](https://img.shields.io/badge/-fixable-green.svg) |

‎index.js

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = {
3030
'jest/no-disabled-tests': 'warn',
3131
'jest/no-focused-tests': 'error',
3232
'jest/no-identical-title': 'error',
33+
'jest/no-jest-import': 'warn',
3334
'jest/prefer-to-have-length': 'warn',
3435
'jest/valid-expect': 'error',
3536
},

0 commit comments

Comments
 (0)
Please sign in to comment.