eslint-pretty-pmb
v1.0.5
Published
Helps me invoke eslint with eslint-formatter-pretty.
Downloads
17
Readme
eslint-pretty-pmb
Helps me invoke eslint with eslint-formatter-pretty.
- Detects path to
eslint-formatter-pretty
- Injects a corresponding
--format=
option. - If you gave no CLI arguments at all, instead of lecturing you, it will assume you meant the current directory.
- On exit without any messages, tells you explicitly whether it succeeded.
Usage
$ elp
+OK no messages
Oddities
npm reports
requires a peer of eslint@* but none was installed.
even with eslint 3.8.0 installed. No idea. npm's package.json docs explicitly state that*
"Matches any version".Giving a non-existing path results in
+OK no messages
. That's correct behavior for this module, because when I run eslint v3.8.1 on/404/nope/doesnt_exist.js
, it exists with no output and exit code 0.
Caveats
- It scans your JSON files by default.
If your project has JSON files and your eslint config isn't prepared for
them, you'll most likely get syntax errors because eslint tries to parse
them as JavaScript.
One way to fix it is to add
eslint-plugin-json-light
.
License
ISC