sublime 配置eslint
sublime支持eslint检查需要安装如下两个插件,sublimeLinter和sublineLinter-eslint
CTRL + SHIFT + P
然后搜索上面的两个插件安装即可
之后在preferences->package-settings->SublimeLinter->settings中,添加如下配置
// SublimeLinter Settings - User
{
"debug": true,
"delay": 0.25,
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"lint_mode": "load_save",
"linters": {
"eslint": {
"@disable": false,
"args": [],
"excludes": []
},
"eslint_d": {
"@disable": false,
"args": [],
"excludes": []
}
},
"no_column_highlights_line": false,
"paths": {
"linux": [],
"osx": [],
"windows": []//此处不用写目录默认会找到
},
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"magicpython": "python",
"php": "html",
"python django": "