【发布时间】:2017-05-13 06:29:57
【问题描述】:
您好,我正在使用 sublime 3 以 typescript 语言构建 node.js 服务器。编辑总是给我两个毫无意义的错误。一个是它要求我使用双引号而不是单引号。另一个是它只允许双倍空格作为缩进。
下面是它的样子: issue screen shot
这是我的 SublimeLinter 用户设置:
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"jshint": {
"@disable": false,
"args": [],
"excludes": []
},
"tslint": {
"@disable": false,
"args": [],
"excludes": [],
"indent": 4
}
},
"mark_style": "outline",
"no_column_highlights_line": true,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"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": "python",
"pythonimproved": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
这些问题实际上并不影响项目,但错误迹象确实让我很恼火。有没有人有办法解决它?
【问题讨论】:
标签: typescript sublimetext3 sublimelinter