jsHint使用
- 在VSCODE中安裝jsHint後,新建文件.jshintrc
- 放置內容
- 具體配置參考 https://blog.csdn.net/zhchyun2008/article/details/105299477
{
"globals": {
"$": false,
"window": false,
"document":false
},
"strict": false,
"curly": true,
"eqeqeq": true,
"noarg": true,
"noempty": true,
"quotmark": "single",
"undef": false,
"unused": true,
"asi":true
}