Skip to content

Commit 7cf9b29

Browse files
committed
Prepare 4.0.1
1 parent e8d6970 commit 7cf9b29

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"install": "messages/install.txt"
2+
"install": "messages/install.txt",
3+
"4.0.1": "messages/4.0.1.txt"
34
}

messages/4.0.1.txt

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
SublimeLinter-eslint 4.0.1
2+
--------------------------
3+
4+
5+
[BREAKING] again. We switched to the new SL4 selectors. What does that mean?
6+
The whole `syntax` stuff and how I get this to work with `vue` or the
7+
`eslint-plugin-html`, or even with "Javascript (super-next, next)" has been revisited.
8+
9+
By default, this plugin will now *only* select `source.js`
10+
marked code, so it also lints embedded code in html.
11+
12+
But this is finally pluggable. Go to your settings, the User settings or
13+
project settings, and set it to e.g.:
14+
15+
```
16+
"eslint": {
17+
"selector": "source.js, text.html.basic"
18+
}
19+
20+
```
21+
22+
*iff* you have the `eslint-plugin-html` installed. Then the plugin will take
23+
the whole file, not just the scripts tags and pass it to eslint.
24+
25+
Want it to grab `vue` files: "source.js, text.html.vue" for the win.
26+
27+
28+
Enhancement:
29+
30+
- We show errors that spread over multiple lines on ... multiple lines!
31+
So, if you have an empty if block, we select the block not the if.
32+
33+
34+
Tips and tricks:
35+
36+
You can target different node version by setting, e.g.:
37+
38+
`"executable": ["nvm", "exec", "8.9", "path/to/eslint"]`
39+
40+
`"executable": ["i/compiled/this/node", "path/to/eslint"]`
41+
42+
43+
You can tweak the execution environment:
44+
45+
`"env": {
46+
"PATH": "/some/additional/path/bin:$PATH"
47+
}`
48+
49+
50+
51+
52+
53+

0 commit comments

Comments
 (0)