module.exports = { extends: ['plugin:jest/recommended', 'plugin:jest/style'], plugins: ['jest'], env: { browser: true, es6: true, node: true, jest: true, 'jest/globals': true, // https://www.npmjs.com/package/eslint-plugin-jest#usage 'shared-node-browser': true, }, rules: { // rules for https://www.npmjs.com/package/eslint-plugin-jest 'jest/consistent-test-it': [ 'error', { fn: 'it', withinDescribe: 'it', }, ], 'jest/expect-expect': 'error', 'jest/no-disabled-tests': 'warn', 'jest/no-focused-tests': 'warn', 'jest/no-identical-title': 'error', 'jest/no-jest-import': 'error', 'jest/no-large-snapshots': ['warn', { maxSize: 300 }], 'jest/prefer-strict-equal': 'error', 'jest/prefer-to-have-length': 'error', 'jest/valid-expect': 'error', }, overrides: [ { files: ['**/*.test.js', '**/*.spec.js'], }, ], };