Create `prefer-to-*` rules for `jest-extended`
See original GitHub issueThere are a bunch of specific rules in https://github.com/jest-community/jest-extended which can be preferred.
I suggest we have rules suggesting their use. So e.g toBeFalse()
over toBe(false)
etc.
Should be clear in the docs that they are only if you use jest-extended
.
/cc @mattphillips
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
eslint-plugin-jest-extended - GitHub
Recommended. This plugin does not export a recommended configuration, as the rules provided by this plugin are about enforcing usage of preferred matchers...
Read more >jest-extended - npm
Start using jest-extended in your project by running `npm i jest-extended`. ... to Jest's default ones making it easy to test everything ...
Read more >How to use ESLint with Jest - Stack Overflow
Here is a workaround (from another answer on here, vote it up!) for the "extend in overrides" limitation of eslint config :
Read more >Eslint-plugin-jest NPM
This plugin also exports a configuration named style , which adds some stylistic rules, such as prefer-to-be-null , which enforces usage of toBeNull...
Read more >Configuring Jest
You can retrieve Jest's defaults from jest-config to extend them if ... In order to make the negated glob work in this example...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Lerna setup isn’t too bad. I also noticed that lerna has built-in conventional commit support now, so we could probably automate a bunch of stuff around it (and maybe bring those learnings back into jest core)
I’m going to resolve this since we’ve now got
eslint-plugin-jest-extended
published 🎉