module.exports = { root: true, env: { node: true, }, extends: ['eslint:recommended'], plugins: ['prettier'], parserOptions: { ecmaVersion: 2020, }, rules: { indent: [ 'error', 2, { SwitchCase: 1, }, ], quotes: ['error', 'single'], semi: ['error', 'always'], 'no-var': ['error'], 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-control-regex': [0], 'prettier/prettier': 'error', 'no-unused-vars': [ 'error', { vars: 'all', args: 'none', ignoreRestSiblings: false, argsIgnorePattern: 'reject', }, ], 'no-async-promise-executor': [0], }, };