-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from SublimeLinter/catch-decode-errors
Catch decode errors and prepare for 4.0.1
- Loading branch information
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"install": "messages/install.txt" | ||
"install": "messages/install.txt", | ||
"4.0.1": "messages/4.0.1.txt" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
SublimeLinter-eslint 4.0.1 [BREAKING!] | ||
-------------------------------------- | ||
|
||
We switched to the new SL4 selectors. Which are awesome. | ||
|
||
This replaces the old syntax_map as a ways to get this to work with "vue" | ||
or the "eslint-plugin-html", or even with "Javascript (babel, next)" etc. | ||
|
||
By default, this plugin will now *only* select "source.js", | ||
which should work with most vue/babel/next flavors and embedded code. | ||
|
||
It's also configurable. Open your SublimeLinter settings and set it to e.g.: | ||
|
||
"eslint": { | ||
"selector": "source.js, text.html.basic" | ||
} | ||
|
||
|
||
With the `eslint-plugin-html` installed, it will then take the whole file, | ||
not just the scripts tags, and pass it to eslint. | ||
Want it to grab `vue` files? "source.js, text.html.vue" for the win. | ||
|
||
|
||
Other enhancements: | ||
|
||
- We highlight errors that spread over multiple lines on ... multiple lines! | ||
So, if you have an empty "if" block, we highlight the entire block. | ||
|
||
- You can target different node version by setting, e.g.: | ||
"executable": ["nvm", "exec", "8.9", "path/to/eslint"] | ||
"executable": ["i/compiled/this/node", "path/to/eslint"] | ||
|
||
- You can tweak the execution environment by setting, e.g.: | ||
"env": { | ||
"PATH": "/some/additional/path/bin:$PATH" | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|