question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add require-yield to eslint:recommended

See original GitHub issue

The 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 have require-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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
onlyweicommented, Jul 11, 2016

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/

1reaction
mysticateacommented, Jun 28, 2016

There seem to be enough 👍s 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found