|
| 1 | +import globals from 'globals' |
| 2 | +import { defineConfig } from 'eslint/config' |
| 3 | +import pluginJs from '@eslint/js' |
| 4 | +import pluginTs from 'typescript-eslint' |
| 5 | +import pluginTsParser from '@typescript-eslint/parser' |
| 6 | +import pluginCypress from 'eslint-plugin-cypress' |
| 7 | + |
| 8 | +export default defineConfig([ |
| 9 | + { |
| 10 | + ignores: ['build/'], |
| 11 | + }, |
| 12 | + { |
| 13 | + files: ['**/*.ts'], |
| 14 | + languageOptions: { |
| 15 | + parser: pluginTsParser, |
| 16 | + }, |
| 17 | + }, |
| 18 | + pluginJs.configs.recommended, |
| 19 | + pluginTs.configs.recommended, |
| 20 | + pluginCypress.configs.recommended, |
| 21 | + { |
| 22 | + rules: { |
| 23 | + // TO-DO review violations of disabled rules |
| 24 | + 'no-empty': 'off', |
| 25 | + 'no-prototype-builtins': 'off', |
| 26 | + 'no-undef': 'off', |
| 27 | + 'no-unused-vars': 'off', |
| 28 | + 'prefer-const': 'off', |
| 29 | + '@typescript-eslint/ban-ts-comment': 'off', |
| 30 | + '@typescript-eslint/no-empty-object-type': 'off', |
| 31 | + '@typescript-eslint/no-explicit-any': 'off', |
| 32 | + '@typescript-eslint/no-non-null-asserted-optional-chain': 'off', |
| 33 | + '@typescript-eslint/no-unsafe-function-type': 'off', |
| 34 | + '@typescript-eslint/no-unused-expressions': 'off', |
| 35 | + '@typescript-eslint/no-wrapper-object-types': 'off', |
| 36 | + '@typescript-eslint/no-unused-vars': 'off', |
| 37 | + '@typescript-eslint/no-require-imports': 'off', |
| 38 | + '@typescript-eslint/triple-slash-reference': 'off', |
| 39 | + }, |
| 40 | + languageOptions: { |
| 41 | + globals: { |
| 42 | + ...globals.node, |
| 43 | + }, |
| 44 | + } |
| 45 | + } |
| 46 | +]) |
0 commit comments