|
| 1 | +module.exports = { |
| 2 | + parser: '@typescript-eslint/parser', |
| 3 | + plugins: ['@typescript-eslint/eslint-plugin'], |
| 4 | + env: { |
| 5 | + browser: true, |
| 6 | + commonjs: true, |
| 7 | + es2021: true, |
| 8 | + node: true, |
| 9 | + worker: true, |
| 10 | + }, |
| 11 | + extends: [ |
| 12 | + 'airbnb-base', |
| 13 | + 'airbnb-typescript/base', |
| 14 | + 'plugin:prettier/recommended', |
| 15 | + 'plugin:@typescript-eslint/recommended' |
| 16 | + ], |
| 17 | + parserOptions: { |
| 18 | + project: 'tsconfig.json', |
| 19 | + sourceType: 'module', |
| 20 | + tsconfigRootDir: __dirname |
| 21 | + }, |
| 22 | + rules: { |
| 23 | + 'global-require': 'off', |
| 24 | + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', |
| 25 | + 'no-unused-vars': 'off', |
| 26 | + 'no-underscore-dangle': 'off', |
| 27 | + 'no-param-reassign': 'off', |
| 28 | + 'no-restricted-syntax': 'off', |
| 29 | + camelcase: 'off', |
| 30 | + 'default-case': 'off', |
| 31 | + 'consistent-return': 'off', |
| 32 | + 'import/order': 'off', |
| 33 | + 'max-classes-per-file': 'off', |
| 34 | + 'no-plusplus': 'off', |
| 35 | + 'guard-for-in': 'off', |
| 36 | + 'no-bitwise': 'off', |
| 37 | + 'class-methods-use-this': 'off', |
| 38 | + 'no-continue': 'off', |
| 39 | + 'prefer-destructuring': 'off', |
| 40 | + 'no-use-before-define': 'off', |
| 41 | + // Typescript rules |
| 42 | + '@typescript-eslint/interface-name-prefix': 'off', |
| 43 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 44 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 45 | + '@typescript-eslint/no-explicit-any': 'off', |
| 46 | + '@typescript-eslint/no-unused-vars': 'off', |
| 47 | + '@typescript-eslint/naming-convention': 'off', |
| 48 | + '@typescript-eslint/dot-notation': 'off', |
| 49 | + '@typescript-eslint/no-use-before-define': 'off', |
| 50 | + } |
| 51 | +} |
0 commit comments