Skip to content

Commit

Permalink
add mocha eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Sep 25, 2021
1 parent 34f3f64 commit 9517936
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
},
"overrides": [{
"files": ["test/**/*.js"],
"plugins": [
"mocha"
],
"extends": [
"plugin:mocha/recommended"
],
"env": {
"mocha": true
},
Expand All @@ -25,7 +31,8 @@
"import/no-extraneous-dependencies": [0],
"prefer-arrow-callback": [0],
"arrow-body-style": [0],
"no-unused-expressions": [0]
"no-unused-expressions": [0],
"mocha/no-exclusive-tests": "error"
}
}]
}
89 changes: 85 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-mocha": "^9.0.0",
"mocha": "^7.0.0",
"nyc": "^15.0.0",
"release-it": "^14.4.1",
Expand Down

0 comments on commit 9517936

Please sign in to comment.