From 50ee7232f3c98fe24a1f2e31dba9508cfec14887 Mon Sep 17 00:00:00 2001 From: gjj <Ganjj@probim.com.cn> Date: Fri, 21 Feb 2025 17:35:39 +0800 Subject: [PATCH] 模型预览 --- .eslintrc.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..5c8a138 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,52 @@ +const { defineConfig } = require("eslint-define-config"); +module.exports = defineConfig({ + root: true, + env: { + browser: true, + node: true, + es6: true, + }, + parser: "vue-eslint-parser", + parserOptions: { + ecmaVersion: "latest", + sourceType: "module", + }, + extends: ["plugin:vue/recommended", "plugin:prettier/recommended"], + plugins: ["vue"], + rules: { + "vue/script-setup-uses-vars": "error", + "vue/custom-event-name-casing": "off", + "no-use-before-define": "off", + "no-unused-vars": [ + "error", + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + }, + ], + "space-before-function-paren": "off", + "vue/attributes-order": "off", + "vue/one-component-per-file": "off", + "vue/html-closing-bracket-newline": "off", + "vue/max-attributes-per-line": "off", + "vue/multiline-html-element-content-newline": "off", + "vue/singleline-html-element-content-newline": "off", + "vue/attribute-hyphenation": "off", + "vue/require-default-prop": "off", + "vue/html-self-closing": [ + "error", + { + html: { + void: "always", + normal: "never", + component: "always", + }, + svg: "always", + math: "always", + }, + ], + "vue/multi-word-component-names": "off", + "vue/component-definition-name-casing": "off", + }, + ignorePatterns: ["*.sh", "node_modules", "*.md", "*.woff", "*.ttf", ".vscode", ".idea", "dist", "/public", "/docs", ".husky", ".local", "/bin", "Dockerfile"], +}); -- Gitblit v1.9.3