module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { project: './tsconfig.json', }, plugins: ['@typescript-eslint'], extends: ['airbnb-typescript/base', 'prettier/@typescript-eslint', 'prettier'], rules: { 'import/no-cycle': 'off', 'prefer-destructuring': 'off', 'no-bitwise': 'off', 'no-continue': 'off', 'no-plusplus': 'off', 'import/prefer-default-export': 'off', 'no-restricted-syntax': [ 'error', { selector: 'ForInStatement', message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.', }, { selector: 'LabeledStatement', message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.', }, { selector: 'WithStatement', message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.', }, ], '@typescript-eslint/lines-between-class-members': ['error', { exceptAfterSingleLine: true }], '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], '@typescript-eslint/comma-dangle': [ 'error', { enums: 'only-multiline', arrays: 'only-multiline', objects: 'only-multiline', imports: 'only-multiline', exports: 'only-multiline', functions: 'never', }, ], }, };