module.exports = { env: { commonjs: true, es6: true, node: true }, overrides: [ { files: [ '**/*.test.js' ], env: { jest: true // now **/*.test.js files' env has both es6 *and* jest }, plugins: ['jest'], rules: { 'jest/no-disabled-tests': 'warn', 'jest/no-focused-tests': 'error', 'jest/no-identical-title': 'error', 'jest/prefer-to-have-length': 'warn', 'jest/valid-expect': 'error' } } ], extends: [ 'airbnb-base' ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly' }, parserOptions: { ecmaVersion: 2018 }, rules: { 'comma-dangle': ['error', 'never'], 'arrow-body-style': ['error', 'always'], 'consistent-return': 'off', 'new-cap': 'off', 'max-len': ['error', { code: 160 }], 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }], 'no-console': ['error', { allow: ['warn', 'error'] }] } };