Thom1729 / Sublime-JS-Custom

Customizable JavaScript syntax highlighting for Sublime Text.
MIT License
137 stars 9 forks source link

JS Custom is disabling sublimelinter-eslint #23

Closed dortamiguel closed 6 years ago

dortamiguel commented 6 years ago

This is my syntax_map in sublimelinter config

    "syntax_map": {
        "html (django)": "html",
        "html (rails)": "html",
        "html 5": "html",
        "javascript (babel)": "javascript",
        "magicpython": "python",
        "php": "html",
        "python django": "python",
        "pythonimproved": "python",
        "naomi.fjsx15": "javascript",
        "naomi.html5": "html",
        "naomi.mql4": "mql",
        "naomi.php7": "php",
        "naomi.scss3": "scss",
        "javascript (babel)": "javascript",
        "javascript (dom)": "javascript"
    },

I need to add JS Custom to this list but I don't know which name I should use it. Do you you how I can make it work?

dortamiguel commented 6 years ago

Maybe is related, why JS Custom doesn't appear here? image I can only choose JS Custom through the command palette

Thom1729 commented 6 years ago

I haven't used SublimeLinter myself, but it looks like version 4.0.0 (officially released this past week) uses a different method to associate syntaxes with linters rather than syntax_map. I'm not sure, but I think that it should automatically work with JS Custom. Are you running version 4 yet?

dortamiguel commented 6 years ago

Yes, I'm using latest sublimelinter

Thom1729 commented 6 years ago

This is an issue with SublimeLinter-eslint. The fix was merged yesterday, but it's not in a release yet. You can patch it yourself by applying the following to your SublimeLinter.sublime-settings:

// SublimeLinter Settings - User
{
    "linters": {
        "eslint": {
            "selector": "source.js"
        }
    },
}
Thom1729 commented 6 years ago

Fixed in SublimeLinter-eslint 4.0.3.