Skip to content

Commit 8ad292e

Browse files
committed
Add beforeEach as an available global instead of disabling eslint
1 parent 617fcbc commit 8ad292e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

__tests__/helper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* globals beforeEach */
12
import getProp from '../src/getProp';
23

34
const nodeVersion = parseInt(process.version.match(/^v(\d+)\./)[1], 10);
@@ -19,11 +20,9 @@ export function changePlugins(pluginOrFn) {
1920
}
2021
}
2122

22-
/* eslint-disable */
2323
beforeEach(() => {
2424
plugins = [...defaultPlugins];
2525
});
26-
/* eslint-enable */
2726

2827
function parse(code) {
2928
return parser.parse(code, { plugins });

0 commit comments

Comments
 (0)