내 IDE로 숭고함을 사용하고 있으며, 내 JavaScript를 eslint로 linting하기 위해 sublimelinter를 다운로드했습니다. sublimelinter.sublimesettings
파일에서, 나는 eslint을 사용하도록 구성 아래와 같습니다eslint를 사용하여 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": "load/save",
"linters": {
"eslint": {
"@disable": false,
"args": [],
"excludes": [],
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": true,
"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": "000000",
"wrap_find": true
}
}
내 문제는 내가 eslint에서 온 경고를 억제하는 온라인 아무것도 찾을 수 없다. 나는 "ignore": "W"
을 eslint 내에서 값으로 사용해 보았지만 제대로 작동하지 않았다. Eslint는 잘 작동하지만, 경고를 억제하는 해결책을 찾을 수없는 것 같습니다. 어떤 아이디어?
편집 :
{
/* Don't search any further for .eslintrc files */
"root": true,
/* See all the pre-defined configs here: https://www.npmjs.com/package/eslint-config-defaults */
"extends": [
"eslint:recommended",
"defaults/configurations/google"
],
"ecmaFeatures": {
"jsx": true
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals":{
"angular": 1,
"phoenix": 1,
"requirejs": 1
},
"rules": {
"indent": [
2,
2,
{ "SwitchCase": 1 }
],
/* We don't do this consistently, so disable it as it is treated as an error otherwise */
"newline-after-var": 0,
"dot-location": [2, "property"],
"no-extra-semi": 1,
"semi": 2,
"max-len": [2, 250, 2],
"eqeqeq": 2,
"comma-dangle": 1,
"no-console": 0,
"no-debugger": 1,
"no-extra-parens": 1,
"no-irregular-whitespace": 0,
"no-undef": 1,
"no-unused-vars": 2,
"semi-spacing": 1
}
}
'.eslintrc' 파일에는 무엇이 있습니까? – idleberg
@idleberg 편집시'.eslintrc' 파일을 추가했습니다. –
** 모든 ** 경고를 무시하고 오류를 유지 하시겠습니까? 그렇다면,'eslint --quiet'는 당신이 필요로하는 것을합니까? – Aurora0001