Skip to content

Commit 7f6c652

Browse files
Add jest & mocha eslint plugins
Issue: GDL-10
1 parent 666b904 commit 7f6c652

File tree

3 files changed

+323
-118
lines changed

3 files changed

+323
-118
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
const globals = require('globals');
2+
const pluginJest = require('eslint-plugin-jest');
3+
const pluginMocha = require('eslint-plugin-mocha');
24

35
module.exports = {
46
globals: {
57
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, 'off'])),
68
...globals.node,
79
...globals.mocha,
810
},
11+
plugins: {
12+
jest: pluginJest,
13+
mocha: pluginMocha,
14+
},
915
rules: {
1016
'constructor-super': 'error',
1117
'for-direction': 'error',

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"markdownlint": "0.31.1"
2121
},
2222
"devDependencies": {
23-
"eslint": "^9.9.1"
23+
"eslint": "^9.9.1",
24+
"eslint-plugin-jest": "^28.11.0",
25+
"eslint-plugin-mocha": "^10.5.0"
2426
},
2527
"keywords": [
2628
"eslint",

0 commit comments

Comments
 (0)