vscode配置
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/tmp": true,
"**/node_modules": false,
"**/bower_components": true,
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/bower_components/**": true,
"**/dist/**": true
},
"workbench.iconTheme": "vscode-icons",
"editor.formatOnPaste": false,
"editor.fontFamily": "pingfang,Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.mouseWheelZoom": false,
"editor.wordWrap": "on",
"eslint.options": [
".js",
".vue",
".ts",
".tsx"
],
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "javascript",
"autoFix": true
},
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
],
"minapp-vscode.prettier": {
"printWidth": 120,
"eslintIntegration": true,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": false,
"trailingComma": "none",
"bracketSpacing": true,
},
"eslint.autoFixOnSave": true,
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"javascript.implicitProjectConfig.experimentalDecorators": true,
"diffEditor.ignoreTrimWhitespace": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"search.followSymlinks": false,
"terminal.integrated.fontSize": 14,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
}
},
"files.associations": {
"*.vue": "vue",
"*.wpy": "vue",
"*.wxml": "html",
"*.wxss": "css",
},
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "vue",
"wxml": "html"
},
"files.autoSave": "off",
"fileheader.configObj": {
"createFileTime": true,
"language": {
"languagetest": {
"head": "/?",
"middle": " $ @",
"end": " $/"
}
},
"autoAdd": false,
"autoAlready": true,
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */",
"use": false
},
"headInsertLine": {
"php": 2
},
"beforeAnnotation": {},
"afterAnnotation": {},
"specialOptions": {},
"switch": {
"newlineAddAnnotation": true
},
"prohibitAutoAdd": [
"json"
],
"moveCursor": true,
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"atSymbol": "@",
"atSymbolObj": {},
"colon": ": ",
"colonObj": {}
},
"fileheader.customMade": {
"Descripttion": "",
"version": "",
"Author": "GUOCHAO959",
"Date": "Do not edit",
"LastEditors": "GUOCHAO959",
"LastEditTime": "Do not Edit"
},
"terminal.integrated.rendererType": "dom",
"window.zoomLevel": 0,
"workbench.startupEditor": "newUntitledFile",
}
module.exports = {
root: true,
env: {
"node": true,
"browser": true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
globals: {
"opts": true,
"vue": true,
"AMap": true
},
plugins: [
'vue'
],
rules: {
'no-debugger': 0,
'handle-callback-err': 0,
'no-unused-vars': process.env.NODE_ENV === 'production' ? 0 : 1,
'eqeqeq': 0,
'no-var': 2,
'no-use-before-define': 2,
"no-dupe-keys": 2,
"no-alert": 2,
"no-const-assign": 2,
"default-case": 2,
"use-isnan": 2,
"no-func-assign": 2,
"no-inner-declarations": [2, "functions"],
"no-useless-return": 0,
"no-spaced-func": 2,
"space-before-function-paren": [0, "always"],
"prefer-promise-reject-errors": [0],
},
parserOptions: {
parser: 'babel-eslint'
}
}