module.exports = { env: { browser: true, es2021: true }, extends: [ 'eslint:recommended', 'standard-with-typescript', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', 'next/core-web-vitals' ], overrides: [ { env: { node: true }, files: [ '*.ts', '*.tsx' ], excludeFiles: ['*.js', '*.jsx'], parserOptions: { sourceType: 'script' } } ], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: [ './tsconfig.json' ] }, plugins: [ 'react', '@typescript-eslint' ], rules: { 'no-trailing-spaces': 'warn', 'space-before-function-paren': 'off', '@typescript-eslint/space-before-blocks': 'off', 'no-multi-spaces': 'warn', '@typescript-eslint/no-this-alias': 'off', '@typescript-eslint/space-infix-ops': 'warn', '@typescript-eslint/space-before-function-paren': 'off', '@typescript-eslint/explicit-function-return-type': 'warn', '@typescript-eslint/no-extraneous-class': 'off', '@typescript-eslint/strict-boolean-expressions': [ 2, { allowString: false, allowNumber: false } ] }, ignorePatterns: ['src/**/*.test.ts', 'src/frontend/generated/*'] }