You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.4 KiB
44 lines
1.4 KiB
11 months ago
|
/*
|
||
|
* @Author: hkh 838374358@qq.com
|
||
|
* @Date: 2023-05-03 12:51:44
|
||
|
* @LastEditors: hkh 838374358@qq.com
|
||
|
* @LastEditTime: 2023-05-03 12:53:16
|
||
|
* @FilePath: \demo-template---vue3\.eslintrc.js
|
||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||
|
*/
|
||
|
module.exports = {
|
||
|
root: true,
|
||
|
env: {
|
||
|
node: true,
|
||
|
},
|
||
|
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/prettier"],
|
||
|
parserOptions: {
|
||
|
parser: "@babel/eslint-parser",
|
||
|
sourceType: "module",
|
||
|
},
|
||
|
rules: {
|
||
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||
|
"no-unused-vars": 1,
|
||
|
"vue/html-self-closing": [
|
||
|
"error",
|
||
|
{
|
||
|
html: {
|
||
|
void: "always",
|
||
|
normal: "never",
|
||
|
component: "always",
|
||
|
},
|
||
|
svg: "always",
|
||
|
math: "always",
|
||
|
},
|
||
|
],
|
||
|
"vue/attribute-hyphenation": 1,
|
||
|
"vue/order-in-components": 1,
|
||
|
"vue/no-unused-components": 1,
|
||
|
"vue/no-unused-vars": 1,
|
||
|
"no-empty": 0,
|
||
|
"vue/multi-word-component-names": "off",
|
||
|
"vue/no-dupe-keys": "warn",
|
||
|
},
|
||
|
};
|