Question

I'm trying to write a Sublime Syntax Definition for ExtendScript but don't want to loose the possibility to use the SublimeLinter plugin. So how can I tell SublimeLinter that he should use jshint not only on scope source.js but also on my scope source.jsx?

Was it helpful?

Solution

Select Preferences->Package Settings->SublimeLinter->Settings - User and to add to it the following:

"sublimelinter_syntax_map":
{
    "Python Django": "python",
    "Ruby on Rails": "ruby",
    "C++": "c"
    "ExtendScript": "JavaScript"
}

and you should be all set. If it doesn't work, try changing JavaScript to all lowercase - the docs are a little unclear as to which is correct.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top