Skip to content

Commit 1b52e1c

Browse files
Include mocha globals in base eslint config (#1049)
1 parent 7e6afc2 commit 1b52e1c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.changeset/new-drinks-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-config-godaddy": patch
3+
---
4+
5+
Support mocha globals

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-config-godaddy/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const config = [
99
{
1010
languageOptions: {
1111
globals: {
12-
...globals.node,
13-
...globals.browser
12+
...globals.browser,
13+
...globals.mocha,
14+
...globals.node
1415
},
1516
parserOptions: {
1617
ecmaVersion: 'latest',

0 commit comments

Comments
 (0)