Add require-yield to eslint:recommended
See original GitHub issueThe require-yield
rule ensures that all generators use yield
. Since this rule only applies when generators are used, there’s no harm in turning it on for everyone (if you don’t use generators, you’ll never see a problem…if you do, then this is a good thing to warn). This would involve:
- Update
eslint.json
to haverequire-yield
as"error"
- Update 3.0.0 migration guide to mention
require-yield
- Update rules index (
rules/README.md
) - Update rule metadata in
require-yield.js
- Update rule documentation in
require-yield.md
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Configuring ESLint - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >How to use ESLint with TypeScript | Khalil Stemmler
ESLint is a JavaScript linter that you can use to lint either TypeScript or JavaScript code. In this post, we'll walk through how...
Read more >eslint-plugin-node/README.md at master - GitHub
npm install --save-dev eslint eslint-plugin-node. Requires Node.js >=8.10.0; Requires ESLint >=5.16.0. Note: It recommends a use of the "engines" field of ...
Read more >ESLint Plugin TypeScript
Add @typescript-eslint/parser to the parser field and ... of the rules in the main recommended config require type-checking in order to run.
Read more >Migrating and configuring Eslint with Angular 11
Now on the .eslintrc.json file, we just need to add the plugins to our "extends" field: "extends": [ "plugin:@angular-eslint/recommended", ...
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
Is there any further discussion as to why this is now recommended? I believe this inconveniences users of koa and co. Especially in koa’s recommended “Hello World” example: http://koajs.com/
There seem to be enough 👍s 😄