You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
import { globalIgnores } from 'eslint/config' |
|
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' |
|
import pluginVue from 'eslint-plugin-vue' |
|
import pluginPlaywright from 'eslint-plugin-playwright' |
|
import pluginVitest from '@vitest/eslint-plugin' |
|
import skipFormatting from 'eslint-config-prettier/flat' |
|
import pluginOxlint from 'eslint-plugin-oxlint' |
|
|
|
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines: |
|
// import { configureVueProject } from '@vue/eslint-config-typescript' |
|
// configureVueProject({ scriptLangs: ['ts', 'tsx'] }) |
|
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup |
|
|
|
export default defineConfigWithVueTs( |
|
{ |
|
name: 'app/files-to-lint', |
|
files: ['**/*.{vue,ts,mts,tsx}'], |
|
}, |
|
|
|
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']), |
|
|
|
...pluginVue.configs['flat/essential'], |
|
vueTsConfigs.recommended, |
|
|
|
{ |
|
...pluginPlaywright.configs['flat/recommended'], |
|
files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'], |
|
}, |
|
|
|
{ |
|
...pluginVitest.configs.recommended, |
|
files: ['src/**/__tests__/*'], |
|
}, |
|
|
|
skipFormatting, |
|
|
|
...pluginOxlint.configs['flat/recommended'], |
|
)
|
|
|