module.exports = { root: true, parserOptions: { ecmaVersion: 12, sourceType: 'module', }, env: { browser: true, es2021: true, node: true, jquery: true, }, extends: ['eslint:recommended', 'plugin:unicorn/recommended'], reportUnusedDisableDirectives: true, rules: { // eslint 'array-callback-return': 1, 'consistent-return': 1, 'no-await-in-loop': 1, 'no-return-assign': 1, 'no-console': [ 1, { allow: ['warn', 'error'], }, ], 'no-param-reassign': 1, 'prefer-destructuring': 0, // eslint-plugin-unicorn 'unicorn/filename-case': 0, 'unicorn/no-null': 0, 'unicorn/no-useless-undefined': 0, 'unicorn/prefer-module': 0, 'unicorn/prevent-abbreviations': 0, 'unicorn/prefer-node-protocol': 0, 'unicorn/import-style': [ 2, { styles: { path: { named: true, }, }, }, ], 'unicorn/consistent-destructuring': 0, 'unicorn/no-array-reduce': 0, 'unicorn/no-nested-ternary': 0, 'unicorn/prefer-top-level-await': 0, 'unicorn/prefer-string-replace-all': 0, }, };