Skip to content

Commit

Permalink
build: eslint mocha rules
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Dec 30, 2024
1 parent 33f4c1c commit 7bd458a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ export default [
js.configs.recommended,
mocha.configs.flat.recommended,
prettier,
{
rules: {
// Setup for test cases in mocha should be done in before, beforeEach,
// or it blocks. Unfortunately there is nothing stopping you from doing
// setup directly inside a describe block.
"mocha/no-setup-in-describe": "off",
},
},
];

0 comments on commit 7bd458a

Please sign in to comment.