折叠区
webstorm和vscode通用的写法
//#region abc
//#endregion abc
<!--region 弹窗:修改项目详情 -->
<!--endregion 弹窗:修改项目详情 -->
相关eslint配置 https://eslint.org/docs/rules/spaced-comment
允许注释紧跟星号#'spaced-comment': ['error', 'always', { 'exceptions': ['#'] }]
js类型检查
// @see: https://blog.jetbrains.com/webstorm/2019/09/using-typescript-to-check-your-javascript-code/
// @see: https://www.jetbrains.com/help/webstorm/vue-js.html#ws_vue_linting
// @see: https://code.visualstudio.com/Docs/languages/javascript#_type-checking
{
"compilerOptions": {
"target": "ES6",
"allowJs": true,
"checkJs": true,
"plugins": [
{
"name": "typescript-tslint-plugin"
}
]
},
"exclude": [
"node_modules"
]
}