Skip to content

Commit 9aa46a6

Browse files
committed
fix: use eslint to check for mocha only() until we can drop node 4 support
Fix #8596
1 parent d57c84b commit 9aa46a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"co": "4.6.0",
4747
"dox": "0.3.1",
4848
"eslint": "5.16.0",
49+
"eslint-plugin-mocha-no-only": "1.1.0",
4950
"highlight.js": "9.1.0",
5051
"lodash.isequal": "4.5.0",
5152
"lodash.isequalwith": "4.4.0",
@@ -102,6 +103,9 @@
102103
"extends": [
103104
"eslint:recommended"
104105
],
106+
"plugins": [
107+
"mocha-no-only"
108+
],
105109
"parserOptions": {
106110
"ecmaVersion": 2015
107111
},
@@ -150,6 +154,9 @@
150154
"name": "context",
151155
"message": "Don't use Mocha's global context"
152156
}
157+
],
158+
"mocha-no-only/mocha-no-only": [
159+
"error"
153160
]
154161
}
155162
},

0 commit comments

Comments
 (0)