保存进度!

This commit is contained in:
2026-02-04 12:17:13 +08:00
parent 02ee929029
commit fd6b77bdc3
5 changed files with 166 additions and 20 deletions

View File

@@ -4,6 +4,7 @@ import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import { defineConfig } from "eslint/config";
import stylistic from "@stylistic/eslint-plugin";
// import eslintConfigPrettier from "eslint-config-prettier";
export default defineConfig([
{
@@ -21,6 +22,9 @@ export default defineConfig([
plugins: {
"@stylistic": stylistic,
},
languageOptions: {
parserOptions: { parser: tseslint.parser, },
},
rules: {
"spaced-comment": "error",
"space-before-function-paren": "off",
@@ -56,24 +60,28 @@ export default defineConfig([
},
},
pluginVue.configs["flat/essential"],
pluginVue.configs["flat/strongly-recommended"],
{
files: ["**/*.vue",],
files: ["**/*.vue","**/.ts","eslint.config.ts",],
plugins: {
"@stylistic": stylistic,
},
languageOptions: {
languageOptions: {
parserOptions: { parser: tseslint.parser, },
ecmaVersion: "latest",
sourceType: "module",
globals: globals.browser,
},
rules: {
"vue/html-indent": ["error", 4,],
"vue/max-attributes-per-line": ["error", {
"singleline": {
"max": 1,
},
"multiline": {
"max": 1,
},
},],
// "vue/max-attributes-per-line": ["error", {
// "singleline": {
// "max": 1,
// },
// "multiline": {
// "max": 1,
// },
// },],
"spaced-comment": "error",
"space-before-function-paren": "off",
"semi-spacing": ["error", {"before": false,
@@ -107,4 +115,5 @@ export default defineConfig([
"@stylistic/object-property-newline": "warn",
},
},
// eslintConfigPrettier,
]);