zyi8gg
Last Updated: May 19, 2018
·
1.657K
· fluxsauce
E5529d996db3f33b95a95a28e7a1b923  1

ESLint Configuration for Mocha and Chai

Nobody likes false positives! The following configuration works with ESLint 4 with Chai's BDD style should and expect interfaces.

module.exports = {
  "env": {
    "mocha": true
  },
  "rules": {
    "no-unused-vars": [
      "error",
      {
        "varsIgnorePattern": "should|expect"
      }
    ]
  }
}
Say Thanks
Respond

3 Responses
Add your response

29438

mnmn

6 months ago ·
29730
12 1510738735134

I see no issues with this as long as you don't check it in or deploy to production like this. For local/debug development, this can be quite useful. If you need a reminder, you could add a commented line with a reminder (like "TODO: remove toggle") and do a Find before checking in.

Download videos from everywhere: instagram video downloader: https://downagram.com/

3 months ago ·
29855

Hello play minesweeper board game without any charge from here https://myminesweeper.com without any payment and download.

25 days ago ·