| | |
| | | { |
| | | "typescript.tsdk": "./node_modules/typescript/lib", |
| | | "volar.tsPlugin": true, |
| | | "volar.tsPluginStatus": false, |
| | | //=========================================== |
| | | //============= Editor ====================== |
| | | //=========================================== |
| | |
| | | "editor.cursorSmoothCaretAnimation": true, |
| | | "editor.detectIndentation": false, |
| | | "diffEditor.ignoreTrimWhitespace": false, |
| | | "javascript.format.insertSpaceBeforeFunctionParenthesis": true, |
| | | "editor.formatOnPaste": true, |
| | | "editor.formatOnSave": true, |
| | | "editor.suggestSelection": "first", |
| | |
| | | // =========================================== |
| | | // ================ Eslint =================== |
| | | // =========================================== |
| | | "eslint.enable": true, |
| | | // "eslint.enable": true, |
| | | "eslint.alwaysShowStatus": true, |
| | | "eslint.options": { |
| | | // 配置 |
| | | "plugins": [ |
| | | "html", |
| | | "vue", |
| | | "javascript", |
| | | "jsx", |
| | | "typescript" |
| | | ] |
| | | "plugins": ["html", "vue", "javascript", "jsx", "typescript"], |
| | | "extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"] |
| | | }, |
| | | "eslint.autoFixOnSave": true, |
| | | "eslint.validate": [ |
| | | "javascript", |
| | | "typescript", |
| | | "reacttypescript", |
| | | "reactjavascript", |
| | | "html", |
| | | "vue" |
| | | ], |
| | | // "eslint.autoFixOnSave": true, |
| | | // =========================================== |
| | | // ================ Vetur ==================== |
| | | // =========================================== |
| | |
| | | "editor.codeActionsOnSave": { |
| | | "source.fixAll.eslint": true |
| | | }, |
| | | "i18n-ally.localesPaths": [ |
| | | "src/locales/lang", |
| | | ], |
| | | "i18n-ally.localesPaths": ["src/locales/lang"], |
| | | "i18n-ally.keystyle": "nested", |
| | | "i18n-ally.sortKeys": true, |
| | | "i18n-ally.namespace": true, |
| | | "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}", |
| | | "i18n-ally.enabledParsers": [ |
| | | "ts" |
| | | ], |
| | | "i18n-ally.enabledParsers": ["ts"], |
| | | "i18n-ally.sourceLanguage": "zh", |
| | | "i18n-ally.enabledFrameworks": [ |
| | | "vue", |
| | | "react" |
| | | ] |
| | | } |
| | | "i18n-ally.enabledFrameworks": ["vue", "react"] |
| | | } |