68 lines
2.8 KiB
JSON
68 lines
2.8 KiB
JSON
{
|
|
"explorer.confirmDelete": false,
|
|
"editor.fontSize": 18,
|
|
"workbench.editorAssociations": {
|
|
"*.ipynb": "jupyter.notebook.ipynb"
|
|
},
|
|
"window.zoomLevel": 1,
|
|
"workbench.iconTheme": "vscode-icons",
|
|
"prettier.enable": true,
|
|
"editor.formatOnSave": false,
|
|
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
|
|
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
|
|
"prettier.singleQuote": true,
|
|
"emmet.syntaxProfiles": {
|
|
"vue-html": "html",
|
|
"vue": "html"
|
|
},
|
|
"files.associations": {
|
|
"*.html": "html",
|
|
"*.vue": "vue",
|
|
"*.ejs": "html",
|
|
"*.js": "javascript"
|
|
},
|
|
"vsicons.dontShowNewVersionMessage": true,
|
|
"autoimport.showNotifications": true,
|
|
"path-intellisense.mappings": {
|
|
"@": "${workspaceRoot}/src",
|
|
"/": "${workspaceRoot}/"
|
|
},
|
|
"[html]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[vue]": {
|
|
"editor.defaultFormatter": "octref.vetur",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"css.validate": false, //用来校验CSS文件中的语法错误和潜在的问题
|
|
"less.validate": false, //用来校验LESS文件中的语法错误和潜在的问题
|
|
"scss.validate": false, //用来校验SCSS文件中的语法错误和潜在的问题
|
|
"editor.codeActionsOnSave": { // 用于在保存文件时自动执行代码操作
|
|
"source.fixAll.eslint": "explicit", // 自动执行ESlint
|
|
"source.fixAll.stylelint": "explicit" // 自动执行stylelint
|
|
},
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact",
|
|
"html",
|
|
"markdown",
|
|
"yaml",
|
|
"toml",
|
|
"xml",
|
|
"gql",
|
|
"graphql",
|
|
"astro",
|
|
],
|
|
"eslint.nodePath": "./node_modules/@yl/yili-fe-lint-config/node_modules", // 指定ESLint可执行文件路径
|
|
"eslint.options": { // 用于配置
|
|
"overrideConfigFile": "./node_modules/@yl/yili-fe-lint-config/eslintrc.vue3.js" //该选项指定了 ESLint 应使用的配置文件路径。此项设置会覆盖所有其他位置查找的 ESLint 配置文件。
|
|
},
|
|
"stylelint.configBasedir": "./node_modules/@yl/yili-fe-lint-config/", //该选项用于定义 Stylelint 配置文件所基于的基础目录。当您的配置文件中使用 extends、plugins 或其他引用时,这个基础目录将作为解析路径的起点
|
|
"stylelint.configFile": "./node_modules/@yl/yili-fe-lint-config/stylelintrc.js", // 该选项指定了 stylelint 应使用的配置文件路径。此项设置会覆盖所有其他位置查找的 stylelint 配置文件
|
|
"stylelint.customSyntax": "postcss-scss", // 配置stylelint使用的预处理器
|
|
"stylelint.stylelintPath": "./node_modules/@yl/yili-fe-lint-config/node_modules/stylelint", // 指定stylelint安装路径
|
|
"stylelint.validate": ["html", "css", "scss", "less", "vue"]
|
|
} |