Show if rule is enabled by eslint:recommended on rule page
See original GitHub issueWebsite change so I skipped the eslint version questions.
What did you do? Please include the actual source code causing the issue. Land on a rule page from a search engine.
What did you expect to happen? See if the rule is enabled in “eslint:recommended”.
What actually happened? Please include the actual, raw output from ESLint. No indication of the rule being enabled.
The indication is already on http://eslint.org/docs/rules/ so it would be nice to also have it on rule pages.
It would also be useful to see if eslint --fix
can fix this. I can open another issue for this though.
Issue Analytics
- State:
- Created 7 years ago
- Comments:40 (39 by maintainers)
Top Results From Across the Web
Rules - ESLint - Pluggable JavaScript Linter
Rules in ESLint are grouped by type to help you understand their purpose. Each rule has emojis denoting: ✓ Recommended. The "extends": "eslint:recommended" ......
Read more >Rules - ESLint - Pluggable JavaScript Linter
Rules are the core building block of ESLint. A rule validates if your code meets a certain expectation, and what to do if...
Read more >Working with Rules - ESLint - Pluggable JavaScript Linter
recommended (boolean) is whether the "extends": "eslint:recommended" property in a configuration file enables the rule.
Read more >Configuration Files - ESLint - Pluggable JavaScript Linter
Using "eslint:recommended" in the extends property enables a subset of core rules that report common problems (these rules are identified with a checkmark...
Read more >Configuring ESLint - ESLint - Pluggable JavaScript Linter
Rules - which rules are enabled and at what error level. Plugins - which third-party plugins define additional rules, environments, configs, etc. for...
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
@wkurniawan07 That’s correct. The change should be done in this repository. I’m 👍 for adding both fixable and recommended to docs generation if that can be done easily. I think it should be possible since we always add “fixable” to the third line in the file.
@platinumazure as I mentioned, we can get the date time from the git log whenever we want. I’d prefer not relying on human-provided dates, which can easily be mistyped or otherwise incorrect.
@pedrottimark if a rule was removed, then i think we shouldn’t show anything about it being recommended.