zyi8gg
Last Updated: January 28, 2019
·
4.442K
· fluxsauce

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"
      }
    ]
  }
}

5 Responses
Add your response

29438

mnmn

over 1 year ago ·
30709

good post.

5 months ago ·
30855

The SF guys there have been genuinely quite respectable to me but they sat through my trial and even though they could not say it I suppose they noticed the https://www.assignmentspot.co.uk/

4 months ago ·
31282

Can someone teach me the easiest logic.. Our professor of https://24hwritemyessays.com ask us to write a program

3 months ago ·