module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ 'eslint:recommended', 'plugin:prettier/recommended', 'plugin:@typescript-eslint/recommended', 'xo/browser', ], ignorePatterns: ['dist'], parser: '@typescript-eslint/parser', rules: { indent: ['error', 2], 'object-curly-spacing': ['error', 'always'], 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': [ 'warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', }, ], quotes: ['error', 'single', { avoidEscape: true }], 'comma-dangle': 'off', 'object-curly-newline': 'off', 'no-undef': 'off', 'no-mixed-operators': 'off', 'operator-linebreak': 'off', 'no-bitwise': 'off', 'no-constant-condition': 'off', 'no-useless-constructor': 'off', 'capitalized-comments': 'off', 'no-await-in-loop': 'off', 'no-return-await': 'off', }, };