44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import vueParser from "vue-eslint-parser";
|
|
import vuePlugin from "eslint-plugin-vue";
|
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"dist/**",
|
|
"node_modules/**",
|
|
"coverage/**",
|
|
".vite/**",
|
|
"workflows/api-doc-sync/data/history/**",
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...vuePlugin.configs["flat/recommended"],
|
|
{
|
|
files: ["**/*.{ts,tsx,vue,js,mjs,cjs}"],
|
|
languageOptions: {
|
|
parser: vueParser,
|
|
parserOptions: {
|
|
parser: tseslint.parser,
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
extraFileExtensions: [".vue"],
|
|
},
|
|
globals: {
|
|
fetch: "readonly",
|
|
AbortSignal: "readonly",
|
|
console: "readonly",
|
|
process: "readonly",
|
|
},
|
|
},
|
|
rules: {
|
|
"no-console": "off",
|
|
"vue/multi-word-component-names": "off",
|
|
},
|
|
},
|
|
eslintConfigPrettier,
|
|
];
|