Update README to include eslint environment
See original GitHub issueeslint does not use the plugin if mocha is not mentioned in the environment. Please update the readme to include that in config:
{
"env": {
"mocha": true
},
"plugins": [
"mocha"
],
"rules": {
"mocha/no-exclusive-tests": "error"
}
}
Similar issue occured in the eslint-plugin-jasmine and environment declaration fixed it.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 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 >JavaScript Standard Style
The easiest way to use JavaScript Standard Style is to install it globally as a Node command ... To check code inside Markdown...
Read more >eslint-plugin-markdown - npm
Add the plugin to your .eslintrc and use the processor option in an overrides entry to enable the plugin's markdown/markdown processor on ...
Read more >How to Add ESLint to an Angular Application - freeCodeCamp
Then we'll add ESLint [https://eslint.org/] which analyzes the ... --routing true --style scss CREATE angular-eslint/README.md (1067 bytes) ...
Read more >ESLint v2.0.0-rc.1 released - ESLint中文文档
Several rules have been updated to make use of code path analysis, ... In 2.0.0, the built-in environment only includes the standard ES5...
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
+1. I’m new to eslint and it took me forever how to locate that “env” was the issue on why “describe” was not getting read correctly.
Setting the
mocha
env is not required in order to use this plugin. Please have a look at the eslint documentation about environments. Also the mentioned issue ineslint-plugin-jasmine
was not about that the plugin doesn’t work, it was about problems reported by the eslint core ruleno-undef
.