75 lines
1.9 KiB
JavaScript
75 lines
1.9 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",
|
|
},
|
|
},
|
|
{
|
|
files: ["src/views/order/orderManagement/**/*.{ts,vue}"],
|
|
languageOptions: {
|
|
globals: {
|
|
window: "readonly",
|
|
document: "readonly",
|
|
navigator: "readonly",
|
|
URL: "readonly",
|
|
Blob: "readonly",
|
|
File: "readonly",
|
|
FileReader: "readonly",
|
|
Event: "readonly",
|
|
HTMLElement: "readonly",
|
|
HTMLInputElement: "readonly",
|
|
MouseEvent: "readonly",
|
|
WheelEvent: "readonly",
|
|
setTimeout: "readonly",
|
|
},
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
"vue/attributes-order": "off",
|
|
"vue/attribute-hyphenation": "off",
|
|
"vue/no-template-shadow": "off",
|
|
"vue/no-deprecated-v-on-native-modifier": "off",
|
|
"no-empty": "off",
|
|
"no-undef": "off",
|
|
},
|
|
},
|
|
eslintConfigPrettier,
|
|
];
|