Reputation: 43390
How can I prevent the Sublime Linter package for Sublime Text linting files with an erb extension?
Upvotes: 1
Views: 1757
Reputation: 1318
Linting can be disabled by extension in the current version of SublimeLinter. Check the docs at http://www.sublimelinter.com/en/latest/settings.html#user-settings.
Example: I've chosen to highlight bitbake files with python highlighting, and changed the flake8 linter in Packages/User/SublimeLinter.sublime-settings.
"flake8": {
"@disable": false,
"args": [],
"builtins": "",
"excludes": ["*/*.bb", "*/*.bbappend"],
"ignore": "",
"max-complexity": -1,
"max-line-length": null,
"select": ""
},
Upvotes: 2
Reputation: 5572
A trick based on changing the syntax associated to ERB files.
The new syntax is not mapped into the SublimeLinter settings so the linter will not run.
I have tested the trick and works for me.
Upvotes: 1