Comparing version 10.1.0 to 10.1.1
{ | ||
"name": "eslint_d", | ||
"version": "10.1.0", | ||
"version": "10.1.1", | ||
"description": "Makes eslint the fastest linter on the planet", | ||
@@ -29,3 +29,4 @@ "bin": "bin/eslint_d.js", | ||
"Artur Tagisow <atagisow@protonmail.com>", | ||
"Jose Alvarez <j.alvarez11@icloud.com>" | ||
"Jose Alvarez <j.alvarez11@icloud.com>", | ||
"Damien Cassou <damien@cassou.me>" | ||
], | ||
@@ -32,0 +33,0 @@ "homepage": "https://github.com/mantoni/eslint_d.js", |
@@ -40,4 +40,3 @@ # eslint\_d | ||
The first time you use `eslint_d`, a little server is started in the background | ||
and bound to a random port. The port number is stored along with [a | ||
token][change401] in `~/.eslint_d`. You can then run `eslint_d` commands the | ||
and bound to a random port. You can then run `eslint_d` commands the | ||
same way you would use `eslint` and it will delegate to the background server. | ||
@@ -86,4 +85,9 @@ It will load a [separate instance][change220] of eslint for each working | ||
`eslint_d` will select a free port automatically and store the port number | ||
along with an access token in `~/.eslint_d`. | ||
When the server starts, `eslint_d` selects a free port automatically | ||
and decides on a random access token. Both the port and token are | ||
written to an `.eslint_d` file so that future usages of `eslint_d` can | ||
connect to the already running server. The `.eslint_d` file is stored | ||
under the `XDG_RUNTIME_DIR` directory if this environment variable is | ||
defined. If the variable is not defined then the file is stored in the | ||
user's home directory. | ||
@@ -156,5 +160,15 @@ ## Editor integration | ||
You first need to extract the port and access token from the | ||
`.eslint_d` file. The location of this file may change depending on | ||
your system (see above). For example, if `XDG_RUNTIME_DIR` is | ||
specified, you can do this: | ||
```bash | ||
$ PORT=`cat ~/.eslint_d | cut -d" " -f1` | ||
$ TOKEN=`cat ~/.eslint_d | cut -d" " -f2` | ||
$ PORT=`cat $XDG_RUNTIME_DIR/.eslint_d | cut -d" " -f1` | ||
$ TOKEN=`cat $XDG_RUNTIME_DIR/.eslint_d | cut -d" " -f2` | ||
``` | ||
Then, you can do the following to run eslint on `file.js`: | ||
```session | ||
$ echo "$TOKEN $PWD file.js" | nc localhost $PORT | ||
@@ -161,0 +175,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224
34871
10