mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-09-10 12:50:48 +08:00
23 lines
734 B
JavaScript
23 lines
734 B
JavaScript
import { globalIgnores } from 'eslint/config';
|
|
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
|
|
import pluginVue from 'eslint-plugin-vue';
|
|
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
|
|
|
|
export default defineConfigWithVueTs(
|
|
pluginVue.configs['flat/essential'],
|
|
vueTsConfigs.recommended,
|
|
|
|
skipFormatting,
|
|
{
|
|
name: 'app/files-to-lint',
|
|
files: ['**/*.{ts,mts,tsx,vue}'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
|
|
'vue/multi-word-component-names': 'off',
|
|
},
|
|
},
|
|
|
|
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
|
|
);
|