2026-02-21 19:24:09 +00:00
|
|
|
import { globalIgnores } from "eslint/config";
|
|
|
|
|
import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript";
|
|
|
|
|
import pluginVue from "eslint-plugin-vue";
|
|
|
|
|
import pluginVitest from "@vitest/eslint-plugin";
|
|
|
|
|
import pluginOxlint from "eslint-plugin-oxlint";
|
|
|
|
|
import skipFormatting from "eslint-config-prettier/flat";
|
2026-02-20 22:22:05 +00:00
|
|
|
|
|
|
|
|
// 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(
|
|
|
|
|
{
|
2026-02-21 19:24:09 +00:00
|
|
|
name: "app/files-to-lint",
|
|
|
|
|
files: ["**/*.{vue,ts,mts,tsx}"],
|
2026-02-20 22:22:05 +00:00
|
|
|
},
|
|
|
|
|
|
2026-02-21 19:24:09 +00:00
|
|
|
globalIgnores(["**/dist/**", "**/dist-ssr/**", "**/coverage/**"]),
|
2026-02-20 22:22:05 +00:00
|
|
|
|
2026-02-21 19:24:09 +00:00
|
|
|
...pluginVue.configs["flat/essential"],
|
2026-02-20 22:22:05 +00:00
|
|
|
vueTsConfigs.recommended,
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
...pluginVitest.configs.recommended,
|
2026-02-21 19:24:09 +00:00
|
|
|
files: ["src/**/__tests__/*"],
|
2026-02-20 22:22:05 +00:00
|
|
|
},
|
|
|
|
|
|
2026-02-21 19:24:09 +00:00
|
|
|
...pluginOxlint.buildFromOxlintConfigFile(".oxlintrc.json"),
|
2026-02-20 22:22:05 +00:00
|
|
|
|
|
|
|
|
skipFormatting,
|
2026-02-21 19:24:09 +00:00
|
|
|
);
|