diff --git a/configurations/jest.js b/configurations/jest.js index 0455b66..b526fde 100644 --- a/configurations/jest.js +++ b/configurations/jest.js @@ -1,9 +1,12 @@ +const jest = require('eslint-plugin-jest'); + module.exports.recommended = { - plugins: [ - { - jest: require('eslint-plugin-jest'), - }, - ], + languageOptions: { + globals: jest.environments.globals.globals, + }, + plugins: { + jest, + }, rules: { 'jest/consistent-test-it': 2, 'jest/expect-expect': 2,