|
| 1 | +module.exports = (async () => { |
| 2 | + const { default: love } = await import('eslint-config-love') |
| 3 | + |
| 4 | + return [ |
| 5 | + { |
| 6 | + ignores: ['test.js', 'dist/**'] |
| 7 | + }, |
| 8 | + { |
| 9 | + ...love, |
| 10 | + files: ['src/**/*.{ts,tsx,js,jsx}'], |
| 11 | + languageOptions: { |
| 12 | + ...love.languageOptions, |
| 13 | + parserOptions: { |
| 14 | + ...(love.languageOptions?.parserOptions ?? {}), |
| 15 | + ecmaVersion: 6, |
| 16 | + sourceType: 'module' |
| 17 | + } |
| 18 | + }, |
| 19 | + rules: { |
| 20 | + ...love.rules, |
| 21 | + '@typescript-eslint/strict-boolean-expressions': 'off', |
| 22 | + '@typescript-eslint/restrict-template-expressions': 'off', |
| 23 | + '@typescript-eslint/no-unnecessary-type-conversion': 'off', |
| 24 | + '@typescript-eslint/no-explicit-any': 'off', |
| 25 | + '@typescript-eslint/no-unsafe-return': 'off', |
| 26 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 27 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 28 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 29 | + '@typescript-eslint/no-unsafe-argument': 'off', |
| 30 | + '@typescript-eslint/no-unnecessary-condition': 'off', |
| 31 | + '@typescript-eslint/no-magic-numbers': 'off', |
| 32 | + '@typescript-eslint/consistent-indexed-object-style': 'off', |
| 33 | + '@typescript-eslint/consistent-type-imports': 'off', |
| 34 | + '@typescript-eslint/require-await': 'off', |
| 35 | + '@typescript-eslint/non-nullable-type-assertion-style': 'off', |
| 36 | + '@typescript-eslint/init-declarations': 'off', |
| 37 | + '@typescript-eslint/prefer-regexp-exec': 'off', |
| 38 | + 'no-prototype-builtins': 'off', |
| 39 | + 'no-throw-literal': 'error', |
| 40 | + 'no-unused-expressions': 'error', |
| 41 | + 'no-redeclare': 'error', |
| 42 | + 'no-await-in-loop': 'off', |
| 43 | + 'no-param-reassign': 'off', |
| 44 | + 'no-console': 'off', |
| 45 | + 'prefer-destructuring': 'off', |
| 46 | + '@typescript-eslint/no-unsafe-type-assertion': 'off', |
| 47 | + 'no-negated-condition': 'off', |
| 48 | + 'arrow-body-style': 'off', |
| 49 | + 'promise/avoid-new': 'off', |
| 50 | + '@typescript-eslint/prefer-destructuring': 'off', |
| 51 | + '@typescript-eslint/class-methods-use-this': 'off', |
| 52 | + 'eslint-comments/require-description': 'off', |
| 53 | + curly: 'error', |
| 54 | + eqeqeq: 'error' |
| 55 | + } |
| 56 | + } |
| 57 | + ] |
| 58 | +})() |
0 commit comments