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.

Update README to include eslint environment

See original GitHub issue

eslint 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:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrchesscommented, Feb 8, 2017

+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.

1reaction
lo1tumacommented, Dec 17, 2016

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 in eslint-plugin-jasmine was not about that the plugin doesn’t work, it was about problems reported by the eslint core rule no-undef.

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

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