integrated_traffic_vue/.eslintrc.cjs

51 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-01-04 09:02:38 +08:00
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
2024-02-21 09:42:49 +08:00
"plugin:vue/vue3-recommended",
2024-01-04 09:02:38 +08:00
"standard",
"@vue/prettier",
"eslint:recommended"
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: ["vue"],
rules: {
"no-console": "warn",
"vue/multi-word-component-names": "off",
2024-02-21 09:42:49 +08:00
"vue/no-v-html": "off",
"vue/require-default-prop": "off",
"camelcase": "off",
"eqeqeq": "error",
"vue/no-template-shadow": "error",
2024-02-01 08:21:01 +08:00
"vue/attribute-hyphenation": "error",
2024-02-21 09:42:49 +08:00
"vue/html-end-tags": "error",
"vue/eqeqeq": "error",
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/enforce-style-attribute": [
"error",
{ "allow": ["scoped", "module"] }
],
"vue/v-on-event-hyphenation": ["error", "always",{
"autofix": true,
}],
"vue/require-explicit-emits": "error",
2024-01-04 09:02:38 +08:00
"no-unused-vars": [
"error",
{ vars: "all", args: "after-used", ignoreRestSiblings: false }
],
"linebreak-style": ["off",'windows'],
},
globals: {
BMapGL: "readonly",
JSEncrypt: "readonly",
2024-01-05 14:42:51 +08:00
Aliplayer: "readonly",
2024-01-19 17:41:26 +08:00
AliyunUpload: "readonly",
2024-01-04 09:02:38 +08:00
}
};