Files
template-vue-hucky/eslint.config.js

29 lines
772 B
JavaScript
Raw Normal View History

2025-09-13 21:00:39 +08:00
import eslint from "@eslint/js";
import eslintPluginVue from "eslint-plugin-vue";
import globals from "globals";
import typescriptEslint from "typescript-eslint";
2025-09-13 20:13:21 +08:00
2025-09-13 21:00:39 +08:00
export default typescriptEslint.config(
{ ignores: ["*.d.ts", "**/coverage", "**/dist"] },
2025-09-13 20:13:21 +08:00
{
2025-09-13 21:00:39 +08:00
extends: [
eslint.configs.recommended,
...typescriptEslint.configs.recommended,
...eslintPluginVue.configs["flat/recommended"],
2025-09-13 20:13:21 +08:00
],
2025-09-13 21:00:39 +08:00
files: ["**/*.{ts,vue}"],
2025-09-13 20:13:21 +08:00
languageOptions: {
2025-09-13 21:00:39 +08:00
ecmaVersion: "latest",
sourceType: "module",
globals: globals.browser,
2025-09-13 20:13:21 +08:00
parserOptions: {
2025-09-13 21:00:39 +08:00
parser: typescriptEslint.parser,
},
2025-09-13 20:13:21 +08:00
},
rules: {
2025-09-13 21:00:39 +08:00
"vue/singleline-html-element-content-newline": "off",
"vue/max-attributes-per-line": "off",
2025-09-13 20:13:21 +08:00
},
},
2025-09-13 21:00:39 +08:00
);