SublimeLinter와 SublimeLinter-jshint가 설치되어 있고 JSHint 자체가 작동합니다. 그러나 JSHint를 구성 할 수 없습니다. SublimeLinter.sublime-settings에 jshint 설정을 추가하려고 시도했지만 JSHint에 아무런 영향을주지 않는 것으로 보입니다. 이 무엇인지 내 설정 (환경 설정> 패키지 설정> SublimeLinter> 설정 - 사용자)과 같이 : 내가 좋아하는 몇 가지 예제 설정 ' "MAXDEPTH": 1'을 추가 한JSHint 옵션이 적용되지 않습니다 (서브릿 3)
{
"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": [],
"maxdepth": 1,
"strict": "global",
"sub": true
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"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
}
}
하지만, 이러한 규칙이 적용되지 않습니다 . 여기서 누락 된 것은 무엇입니까? Package Control page에 Github에서의 README의 Settings 섹션에서
감사합니다. 나는 이미 그 부분을 읽었지 만 나는 약간 혼란 스러웠다. 먼저 "FILENAME.jshintrc"와 같은 파일 대신 ".jshintrc"파일을 실제로 호출해야한다는 것을 알지 못했습니다. 첫 번째 게시물 (숭고한 사용자 설정을 통해)에서 언급 한 방식대로 진행할 수 있는지 알고 계십니까? – rinderwahn
@rinderwahn 아니, 나는 그것이 가능하다고 생각하지 않는다. – MattDMo