2024-06-20 06:55:13 +00:00
|
|
|
import globals from "globals";
|
2024-06-21 04:46:24 +00:00
|
|
|
import js from "@eslint/js";
|
|
|
|
import ts from "typescript-eslint";
|
2024-06-21 22:24:54 +00:00
|
|
|
import tsParser from "@typescript-eslint/parser";
|
2024-06-21 04:46:24 +00:00
|
|
|
import vue from "eslint-plugin-vue";
|
2024-06-21 22:24:54 +00:00
|
|
|
import vueParser from "vue-eslint-parser";
|
2024-06-21 04:46:24 +00:00
|
|
|
import prettier from "eslint-config-prettier";
|
2024-06-20 06:55:13 +00:00
|
|
|
|
|
|
|
export default [
|
|
|
|
{ files: ["**/*.{js,mjs,cjs,ts,vue}"] },
|
|
|
|
{ ignores: [".vitepress/dist", ".vitepress/cache"] },
|
2024-06-21 04:46:24 +00:00
|
|
|
js.configs.recommended,
|
|
|
|
...ts.configs.recommended,
|
|
|
|
...vue.configs["flat/recommended"],
|
|
|
|
prettier,
|
2024-06-21 22:24:54 +00:00
|
|
|
{
|
|
|
|
files: ["*.vue", "**/*.vue"],
|
|
|
|
languageOptions: {
|
|
|
|
globals: globals.browser,
|
|
|
|
parser: vueParser,
|
|
|
|
parserOptions: {
|
|
|
|
parser: tsParser,
|
|
|
|
sourceType: "module",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-06-20 06:55:13 +00:00
|
|
|
];
|