Skip to content

Instantly share code, notes, and snippets.

@nilsFK
Last active July 23, 2018 16:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nilsFK/6b4b8c2cf44c6eaa38b4 to your computer and use it in GitHub Desktop.
Save nilsFK/6b4b8c2cf44c6eaa38b4 to your computer and use it in GitHub Desktop.
SublimeLinter settings for Sublime3+htmltidy+Angular
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Danish Royalty/Danish Royalty.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "load/save",
"linters": {
"htmltidy": {
"@disable": false,
"args": [],
"excludes": [],
"ignore_match": [
"adjacent hyphens within comment",
".*proprietary attribute",
".*lacks \".*?\" attribute",
"unescaped & which should be written as &",
"<style> isn't allowed in <body> elements",
"missing <!DOCTYPE> declaration",
"unescaped & or unknown entity",
"trimming empty <select>",
"trimming empty <i>",
"<input> attribute \"id\" has invalid value",
"<input> attribute \"type\" has invalid value \"email\"",
"<input> attribute \"type\" has invalid value \"number\"",
"<input> attribute \"autofocus\" lacks value",
"plain text isn't allowed in <head> elements",
"inserting implicit <body>",
"inserting missing 'title' element",
"<script> inserting \"type\" attribute",
"<.*?> attribute \".*?\" has invalid value \".*{{.*?}}\"",
"'<'.*?letter not allowed here"
]
}
},
"mark_style": "fill",
"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",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
@nilsFK
Copy link
Author

nilsFK commented Mar 28, 2018

ignore_match not supported in most recent version of SublimeLinter for some reason.
Instruction on how to recover version 3.10.x which supports ignore_match found here:
SublimeLinter/SublimeLinter#1053 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment