Last active
May 29, 2025 09:23
-
-
Save starkovsky/01522ef3267f4df598eb002e282ecd39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vue from 'eslint-plugin-vue'; | |
import { | |
defineConfigWithVueTs, | |
vueTsConfigs, | |
} from '@vue/eslint-config-typescript'; | |
import vitest from '@vitest/eslint-plugin'; | |
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'; | |
export default defineConfigWithVueTs( | |
{ | |
name: 'files-to-lint', | |
files: ['**/*.{js,ts,mts,tsx,vue}'], | |
}, | |
vue.configs['flat/recommended'], | |
vueTsConfigs.recommended, | |
{ | |
name: 'vitest-files', | |
...vitest.configs.recommended, | |
files: ['**/*.vi.test.ts'], | |
}, | |
{ | |
name: 'ignored-js-rules', | |
files: ['**/*.js'], | |
rules: { | |
'@typescript-eslint/no-require-imports': 'off', | |
}, | |
}, | |
{ | |
name: 'ignored-ts-rules', | |
files: ['**/*.ts'], | |
rules: {}, | |
}, | |
{ | |
name: 'ignored-vue-rules', | |
files: ['**/*.vue'], | |
rules: {}, | |
}, | |
{ | |
name: 'files-to-ignore', | |
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'], | |
}, | |
skipFormatting, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment