- Become a fork of Prettier instead using whatever Prettier is installed separately
- Remove custom option parsing, defer to Prettier instead
- Stop versioning (install from GitHub to use)
- Remove
prettier_dnc
script (useprettier_d
directly instead)
- Add .editorconfig support to --pkg-conf option
- Add
--keep-indentation
option
- Parse
.prettierrc
for config as well aspackage.json
- Add
prettier_dnc
script to streamline netcat usage - Add
--local-only
option/docs - Add
--pkg-conf
option for reading prettier config from nearest package.json
- Add support for
--write
and--list-different
options - Document --fallback and --json in --help message
- Make it possible to pipe a stream to netcat
- Document unsupported
prettier
options - Improve
--help
message
- Improve CLI parity with
prettier
- Add
--json
and--fallback
options.
Rename project to prettier_d.js, run prettier instead of eslint. Note that no options are currently supported, only simple usage like:
prettier_d file.js # prints formatted file to stdout
# moar speed
PORT=`cat ~/.prettier_d | cut -d" " -f1`
TOKEN=`cat ~/.prettier_d | cut -d" " -f2`
echo "$TOKEN $PWD file.js" | nc localhost $PORT
Add .vimrc
example for buffer auto-fixing to README.
Exit with status 1 when an error occurs. Fixes #63.
Fix --fix-to-stdout
when used with an ignored file.
Fix --fix-to-stdout
when used with an empty file.
An exciting new feature comes to eslint_d, the first one that is not part of
eslint itself. Aaron Jensen implemented --fix-to-stdout
which
allows to integrated eslint --fix
into your editor as a save action 🎉
Currently, this feature only works with --stdin
and you can test it like this:
$ cat ./some/file.js | eslint_d --fix-to-stdout --stdin
Support for --print-config
was added by Aaron Jensen. He also
added instructions for Emacs users.
Fixes a security issue that was noticed by Andri Möll. Thanks for
reporting! To avoid CSRF attacks, this introduces a security token
that must be sent by clients on each request. This change also binds the daemon
explicitly to 127.0.0.1
instead of implicitly listening on all network
interfaces.
Use ESLint 3.
Back-ported the security fix from v4.0.1
.
As per a recent change in eslint the default parser espree
was
removed. The eslint
dependency was bumped to 2.10.2
which
introduced the change.
The eslint_d
command will now exit with code 1 if errors where reported.
A fix was provided by ruanyl to resolve chalk
relative from the
actually resolved eslint module.
jpsc got the eslint 2 upgrade started. eslint_d
will now use
eslint 2.2+ if no local install of eslint is found.
Also in this release:
- Support
--inline-config
and--cache-location
options - Pass
cwd
through to eslint.
- Fix
--fix
- Fix color for local eslint
- Support color and the
--no-color
option (fixes issue #7) - Improve formatting in "Editor integration" documentation
Roger Zurawicki figured out how to make eslint_d
work in WebStorm.
- Add information about
--cache
in the readme (netei) - Add symlink to
eslint.js
for WebStorm compat (Roger Zurawicki)
Fixes an error in case no local eslint module can be found (Kevin Yue)
- Remove
concat-stream
dependency and micro optimizations (Richard Herrera)
Richard Herrera implemented a missing eslint feature to lint text provided via stdin. This also fixes issue #13.
Resolves the eslint
module for each working directory separately. This allows
multiple versions of eslint to co-exist. This is required to support local
plugins like the babel-eslint
parser (see issue #10). If no local eslint
install is found, the one that was installed with eslint_d
is used.
Fixes issue #9 with space-containing config path or other shell parameters that need escaping.
Fixes issue #8 on Windows when launching in a cmd
shell where eslint_d
was hanging indefinitely.
- Update Sublime linter URL to it's new home
- Add note for Atom users
Make eslint_d
work out of the box in vim with the syntastic eslint checker.
- Add
--version
and-v
options - Do not start server when called with
-h
or--help
- Downgrade
optionator
to align with eslint - Update instructions for vim integration
This release support (almost) all eslint
options. Check eslint_d --help
.
Breaking that API already: The lint
command was removed and in case you're
not passing a control command like start
, stop
, restart
or status
, the
given options are passed to the linter.
Also, the default output format was changed from compact
to stylish
to
align with eslint
.
- Document vim syntastic javascript checkers (Chris Gaudreau)
- invokations -> invocations (Juho Vepsäläinen)
- Document Sublime editor integration
- Handle linter exceptions
- Initial release