Vue + TypeScript Web应用实践
项目创建
VSCode插件添加
Prettier配置
{ "tabWidth": 2, // 缩进空格为2, "useTabs": false, // 不使用Tab作为缩进 "printWidth": 100, // 单行代码最多字符数,将vscode单屏可视部分作为最大长度即可 "semi": true, // 使用分号 "singleQuote": true, // 字符串单引号 "arrowParens": "avoid", // 单入参箭头函数可不带括号 "trailingComma": "all", // 对象属性后添加逗号 "bracketSpacing": true, // 括号前后增加括号 "jsxSingleQuote": true, "jsxBracketSameLine": false, "insertPragma": false, "ignorePath": ".prettierignore" // ignore文件对应路径 }
ESLint配置
stylelint配置
Lint-staged配置
lint-staged tsc
最后更新于

