2016-12-28 5 views
2

안녕하세요 저는 typescript 언어로 node.js 서버를 구축하기 위해 3을 사용하고 있습니다. 편집인은 항상 나에게 두 가지 오류를주지 않습니다. 하나는 작은 따옴표 대신 큰 따옴표를 사용하도록 요구한다는 것입니다. 다른 하나는 들여 쓰기로만 이중 공간을 허용한다는 것입니다.Sublime Text 3 Typescript Tab 들여 쓰기 및 작은 따옴표 허용되지 않음

{ 
"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 
} 

} 이슈 실제로 프로젝트에 영향을주지 않는

있지만 오류 표지판 : 여기 issue screen shot

내 SublimeLinter 사용자 설정입니다 : 여기

처럼 보이게 않는 방법입니다 나를 많이 괴롭히지. 누구든지 그것을 고칠 생각이 있습니까?

답변

2

SublimeLinter-contrib-tslint에게 이러한 경고를보고하지 말아야합니다. tslint.json 파일을 컴퓨터에 추가하고 SublimeLinter.sublime-settings 파일을 아래와 같이 변경하는 가장 쉬운 방법입니다.

tslint.json

{ 
    "rules": { 
     "indent": false, 
     "quotemark": false, 
    } 
} 

SublimeLinter.sublime-설정

{ 
"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, 
      "config_filename": "tsconfig.json" 
     } 
    }, 
    "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 
} 

참고 :이 추가 "config_filename": "tsconfig.json" 키 값이 설정 파일

의 절대 경로를 표시해야한다

SublimeLinter-contrib-tslint 패키지도 제거 할 수 있습니다.

패키지에 대한 자세한 내용은 저장소 README 파일을 참조하십시오. https://github.com/lavrton/SublimeLinter-contrib-tslint