jsonlint
jsonlint copied to clipboard
Multiple files support
Hello,
I'd like to ask you to implement (and document) support for specifying multiple input files. That would allow us to run jsonlint
from build (e.g. npm) scripts since we would like to pass the list of the files to lint from an environment variable. There is actually a lot of linters that accept multiple files already.
Checkout my fork - https://github.com/ginman86/jsonlint and PR - https://github.com/zaach/jsonlint/pull/75
Cool, great news!
Hi could you open up the issue section and release it on npm please.
@ginman86 that looks great, I've switched to your branch. You should really start doing releases to npm
What is the best way of getting this fork via npm?
+1, this should go live on the main fork.
Check out jsonlint-cli.
I needed some bugfixes and extensions to jsonlint
and did them in my fork. I released the changes as a new NPM module @prantlf/jsonlint
. Accepting multiple files and/or directories on the command line was one of them. Otherwise I follow exactly the interface, parameters and naming conventions of the original package to make the switch easier.
Something is fishy here. I do not see any reason why another tool would be needed for implementing the missing CLI behavior. Also the linked tool seems to have the last release more than 4 years ago.
This make me question the trust in both. Why having two less than ideally maintained tools instead of just one? ...especially as the ability to receive multiple file arguments seems to be a very basic feature of almost any linter.