保存进度!
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user