|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + es2021: true, |
| 6 | + node: true, |
| 7 | + }, |
| 8 | + extends: [ |
| 9 | + 'eslint:recommended', |
| 10 | + 'plugin:@typescript-eslint/recommended', |
| 11 | + 'plugin:qwik/recommended', |
| 12 | + ], |
| 13 | + parser: '@typescript-eslint/parser', |
| 14 | + parserOptions: { |
| 15 | + tsconfigRootDir: __dirname, |
| 16 | + project: ['./tsconfig.json'], |
| 17 | + ecmaVersion: 2021, |
| 18 | + sourceType: 'module', |
| 19 | + ecmaFeatures: { |
| 20 | + jsx: true, |
| 21 | + }, |
| 22 | + }, |
| 23 | + plugins: ['@typescript-eslint'], |
| 24 | + rules: { |
| 25 | + '@typescript-eslint/no-explicit-any': 'off', |
| 26 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 27 | + '@typescript-eslint/no-inferrable-types': 'off', |
| 28 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 29 | + '@typescript-eslint/no-empty-interface': 'off', |
| 30 | + '@typescript-eslint/no-namespace': 'off', |
| 31 | + '@typescript-eslint/no-empty-function': 'off', |
| 32 | + '@typescript-eslint/no-this-alias': 'off', |
| 33 | + '@typescript-eslint/ban-types': 'off', |
| 34 | + '@typescript-eslint/ban-ts-comment': 'off', |
| 35 | + 'prefer-spread': 'off', |
| 36 | + 'no-case-declarations': 'off', |
| 37 | + 'no-console': 'off', |
| 38 | + '@typescript-eslint/no-unused-vars': ['error'], |
| 39 | + '@typescript-eslint/consistent-type-imports': 'warn', |
| 40 | + '@typescript-eslint/no-unnecessary-condition': 'warn', |
| 41 | + }, |
| 42 | +}; |
0 commit comments