Skip to content

Commit

Permalink
Configure eslint-plugin-mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Mar 12, 2021
1 parent 5a2eb0b commit 7080861
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions index.js
Expand Up @@ -328,10 +328,36 @@ module.exports = {

overrides: [
{
files: ["*.test.*"],
rules: {
"jsdoc/require-jsdoc": "off"
}
files: ["*.test.*", "*-test.js"],
env: {
"mocha": true
},
extends: ["plugin:mocha/recommended"],
rules: {
"jsdoc/require-jsdoc": "off",
"mocha/handle-done-callback": "error",
"mocha/max-top-level-suites": "off",
"mocha/no-async-describe": "error",
"mocha/no-exclusive-tests": "error",
"mocha/no-exports": "error",
"mocha/no-global-tests": "error",
"mocha/no-hooks": "off",
"mocha/no-hooks-for-single-case": "off",
"mocha/no-identical-title": "error",
"mocha/no-mocha-arrows": "error",
"mocha/no-nested-tests": "error",
"mocha/no-pending-tests": "error",
"mocha/no-return-and-callback": "error",
"mocha/no-return-from-async": "error",
"mocha/no-setup-in-describe": "error",
"mocha/no-sibling-hooks": "error",
"mocha/no-skipped-tests": "warn",
"mocha/no-synchronous-tests": "off",
"mocha/no-top-level-hooks": "error",
"mocha/prefer-arrow-callback": "off",
"mocha/valid-suite-description": "off",
"mocha/valid-test-description": "off"
}
}
]
}

0 comments on commit 7080861

Please sign in to comment.