Please document no-restricted-syntax
See original GitHub issueAfter moving to eslint-config-airbnb-base
from eslint-config-airbnb
I am now getting warnings related to the no-restricted-syntax
rule (specified here), but no documentation backing this up exists in README.md.
Can the documentation be updated explaining the reasoning behind the choices in this rule?
In my particular case this was triggered on a for...in
loop, so I’m guessing that having ForInStatement
in the list of forbidden nodes would fall into the Iterators and Generators section.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:10
Top Results From Across the Web
no-restricted-syntax - 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 can I turn off ESLint's no-restricted-syntax rule just for ...
Check existing config. Based on the current master branch, eslint-config-airbnb currently disables four syntax forms:.
Read more >Allow changes to parts of a protected document
Use Restrict Editing to protect parts that can or can't be changed, who can make changes, find areas you can edit, or unlock...
Read more >eslint-plugin-jsdoc - npm
For no-missing-syntax and no-restricted-syntax , there is also a message property which allows customization of the message to be shown when ...
Read more >RFC 6749: The OAuth 2.0 Authorization Framework
Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this ...
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
@danez
Object.keys(obj).forEach(key => { obj[key] })
- same works withObject.entries
andObject.values
, and with all the array iteration methods. There’s never a need to use a loop.Since async/await is stage 3 and there’s no way to async/await with higher-order functions like
forEach
, this is too restrictive for me.