光伏-机器人远程管控系统
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.
 
 
 
 
 

100 lines
2.0 KiB

/*
* @Author: zhong_m
* @Date: 2022-01-05 09:05:52
* @LastEditTime: 2022-03-31 10:43:26
* @LastEditors: wei_jt@ecidi.com
* @Description: eslint配置
* @FilePath: \central-system\.eslintrc.js
*/
module.exports = {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"plugin:vue/recommended",
"eslint:recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser",
"ecmaVersion": 6,
"sourceType": 'module',
"ecmaFeatures": {
"legacyDecorators": true
}
},
"globals": {
"__webpack_public_path__": true,
"Sm4utils": true,
"monitor": true,
"permission": true,
"DDLogin": true,
"CLIENT": true
},
"rules": {
"no-unused-vars": "warn",
"no-console": "warn",
"no-useless-escape": "off",
"no-extra-semi": "error",
"quotes": ['error', 'single'],
'indent': ['error', 2, { "SwitchCase": 1 }],
"vue/order-in-components": [
"error",
{
"order": [
"el",
"name",
"key",
"parent",
"functional",
[
"delimiters",
"comments"
],
[
"components",
"directives",
"filters"
],
"extends",
"mixins",
[
"provide",
"inject"
],
"ROUTER_GUARDS",
"layout",
"middleware",
"validate",
"scrollToTop",
"transition",
"loading",
"inheritAttrs",
"model",
[
"props",
"propsData"
],
"emits",
"setup",
"fetch",
"asyncData",
"data",
"head",
"computed",
"watch",
"watchQuery",
"LIFECYCLE_HOOKS",
"methods",
[
"template",
"render"
],
"renderError"
]
}
]
},
}