| 1 | import pluginVue from 'eslint-plugin-vue' |
| 2 | import vueTsEslintConfig from '@vue/eslint-config-typescript' |
| 3 | import skipFormatting from '@vue/eslint-config-prettier/skip-formatting' |
| 4 | |
| 5 | export default [ |
| 6 | { |
| 7 | name: 'app/files-to-lint', |
| 8 | files: ['**/*.{ts,mts,tsx,vue}'], |
| 9 | }, |
| 10 | { |
| 11 | name: 'app/files-to-ignore', |
| 12 | ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], |
| 13 | }, |
| 14 | ...pluginVue.configs['flat/essential'], |
| 15 | ...vueTsEslintConfig(), |
| 16 | { |
| 17 | rules: { |
| 18 | '@typescript-eslint/no-explicit-any': 'off', |
| 19 | '@typescript-eslint/no-unused-vars': [ |
| 20 | 'warn', |
| 21 | { |
| 22 | argsIgnorePattern: '^_', |
| 23 | varsIgnorePattern: '^_', |
| 24 | caughtErrorsIgnorePattern: '^_', |
| 25 | }, |
| 26 | ], |
| 27 | 'vue/multi-word-component-names': [ |
| 28 | 'error', |
| 29 | { |
| 30 | ignores: ['Traffic', 'Proxies', 'Clients'], |
| 31 | }, |
| 32 | ], |
| 33 | }, |
| 34 | }, |
| 35 | skipFormatting, |
| 36 | ] |