settings.json 6.2 KB
Newer Older
V
vben 已提交
1 2
{
  "typescript.tsdk": "./node_modules/typescript/lib",
V
vben 已提交
3 4
  "volar.tsPlugin": true,
  "volar.tsPluginStatus": false,
V
vben 已提交
5 6 7 8 9 10 11 12 13 14
  //===========================================
  //============= Editor ======================
  //===========================================
  "explorer.openEditors.visible": 0,
  "editor.minimap.renderCharacters": false,
  "editor.minimap.maxColumn": 300,
  "editor.minimap.showSlider": "always",
  "editor.smoothScrolling": true,
  "editor.cursorBlinking": "phase",
  "editor.cursorSmoothCaretAnimation": true,
V
vben 已提交
15
  "editor.detectIndentation": false,
V
vben 已提交
16
  "diffEditor.ignoreTrimWhitespace": false,
17
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
V
vben 已提交
18 19
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
V
vben 已提交
20 21 22 23 24 25 26 27 28 29
  "editor.suggestSelection": "first",
  "editor.trimAutoWhitespace": true,
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  //===========================================
  //============= Other =======================
  //===========================================
V
vben 已提交
30 31
  "breadcrumbs.enabled": true,
  "open-in-browser.default": "chrome",
V
vben 已提交
32 33 34
  //===========================================
  //============= emmet =======================
  //===========================================
V
vben 已提交
35
  "emmet.triggerExpansionOnTab": true,
V
vben 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
  "emmet.showAbbreviationSuggestions": true,
  "emmet.showExpandedAbbreviation": "always",
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html",
    "javascript": "javascriptreact",
    "xml": {
      "attr_quotes": "single"
    }
  },
  "emmet.includeLanguages": {
    "jsx-sublime-babel-tags": "javascriptreact"
  },
  //===========================================
  //============= files =======================
  //===========================================
V
vben 已提交
52
  "files.trimTrailingWhitespace": true,
V
vben 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
  "files.insertFinalNewline": true,
  "files.trimFinalNewlines": true,
  "files.eol": "\n",
  "search.exclude": {
    "**/node_modules": true,
    "**/*.log": true,
    "**/*.log*": true,
    "**/bower_components": true,
    "**/dist": true,
    "**/elehukouben": true,
    "**/.git": true,
    "**/.gitignore": true,
    "**/.svn": true,
    "**/.DS_Store": true,
    "**/.idea": true,
    "**/.vscode": false,
    "**/yarn.lock": true,
V
vben 已提交
70 71 72 73 74 75 76 77
    "**/tmp": true,
    "out": true,
    "dist": true,
    "node_modules": true,
    "CHANGELOG.md": true,
    "examples": true,
    "res": true,
    "screenshots": true
V
vben 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
  },
  "files.exclude": {
    "**/bower_components": true,
    "**/.idea": true,
    "**/yarn.lock": true,
    "**/tmp": true,
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true
  },
  "files.watcherExclude": {
    // 文件监视排除
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/.vscode/**": true,
    "**/node_modules/**": true,
    "**/tmp/**": true,
    "**/bower_components/**": true,
    "**/dist/**": true,
    "**/yarn.lock": true
  },
  "files.associations": {
    "*.vue": "vue",
    "*.wxss": "css"
  },
  "stylelint.enable": true,
  "stylelint.packageManager": "yarn",
  "css.validate": true,
  "less.validate": true,
  "scss.validate": true,
  // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
  // ===========================================
  // ================ Eslint ===================
  // ===========================================
114 115
  // "eslint.enable": true,
  "eslint.alwaysShowStatus": true,
V
vben 已提交
116 117
  "eslint.options": {
    // 配置
118 119 120 121 122 123 124 125 126 127 128 129
    "plugins": ["html", "vue", "javascript", "jsx", "typescript"],
    "extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"]
  },
  "eslint.validate": [
    "javascript",
    "typescript",
    "reacttypescript",
    "reactjavascript",
    "html",
    "vue"
  ],
  // "eslint.autoFixOnSave": true,
V
vben 已提交
130 131 132
  // ===========================================
  // ================ Vetur ====================
  // ===========================================
V
vben 已提交
133
  "vetur.experimental.templateInterpolationService": true,
V
vben 已提交
134
  "vetur.format.options.tabSize": 2,
V
vben 已提交
135 136 137
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.scss": "prettier",
  "vetur.format.defaultFormatter.css": "prettier",
V
vben 已提交
138
  "vetur.format.defaultFormatter.ts": "prettier-tslint",
V
vben 已提交
139
  "vetur.format.defaultFormatter.js": "prettier",
V
vben 已提交
140
  "vetur.languageFeatures.codeActions": false,
141
  // "vetur.validation.script": false,
V
vben 已提交
142 143
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
V
vben 已提交
144
      "wrap_attributes": "force-expand-multiline"
V
vben 已提交
145 146
    },
    "prettier": {
V
vben 已提交
147 148 149 150
      "eslintIntegration": true,
      "arrowParens": "always",
      "semi": false,
      "singleQuote": true
V
vben 已提交
151 152 153 154
    }
  },
  "javascript.updateImportsOnFileMove.enabled": "never",
  "liveServer.settings.donotShowInfoMsg": true,
V
vben 已提交
155
  "terminal.integrated.rendererType": "dom",
V
vben 已提交
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
  "telemetry.enableCrashReporter": false,
  "telemetry.enableTelemetry": false,
  "workbench.settings.enableNaturalLanguageSearch": false,
  "path-intellisense.mappings": {
    "/@/": "${workspaceRoot}/src"
  },
  "prettier.requireConfig": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "workbench.sideBar.location": "left",
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[less]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[markdown]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
V
vben 已提交
191
  },
192 193 194 195 196
  "[vue]": {
    "editor.codeActionsOnSave": {
      "source.fixAll.eslint": false
    }
  },
197
  "i18n-ally.localesPaths": ["src/locales/lang"],
V
vben 已提交
198 199 200
  "i18n-ally.keystyle": "nested",
  "i18n-ally.sortKeys": true,
  "i18n-ally.namespace": true,
V
vben 已提交
201
  "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
202
  "i18n-ally.enabledParsers": ["ts"],
V
vben 已提交
203
  "i18n-ally.sourceLanguage": "zh",
204 205
  "i18n-ally.enabledFrameworks": ["vue", "react"]
}