mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2026-02-25 10:30:16 +00:00
32 lines
1 KiB
TypeScript
32 lines
1 KiB
TypeScript
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";
|
|
|
|
// 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,
|
|
|
|
{
|
|
...pluginVitest.configs.recommended,
|
|
files: ["src/**/__tests__/*"],
|
|
},
|
|
|
|
...pluginOxlint.buildFromOxlintConfigFile(".oxlintrc.json"),
|
|
|
|
skipFormatting,
|
|
);
|