jsonlint icon indicating copy to clipboard operation
jsonlint copied to clipboard

Multiple files support

Open ghost opened this issue 8 years ago • 9 comments

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.

ghost avatar Jan 02 '16 09:01 ghost

Checkout my fork - https://github.com/ginman86/jsonlint and PR - https://github.com/zaach/jsonlint/pull/75

ginman86 avatar Jan 04 '16 20:01 ginman86

Cool, great news!

ghost avatar Jan 05 '16 07:01 ghost

Hi could you open up the issue section and release it on npm please.

paladox avatar Jan 23 '16 19:01 paladox

@ginman86 that looks great, I've switched to your branch. You should really start doing releases to npm

terinjokes avatar Jan 27 '16 02:01 terinjokes

What is the best way of getting this fork via npm?

sammdec avatar Mar 02 '16 22:03 sammdec

+1, this should go live on the main fork.

dawsbot avatar Mar 06 '16 19:03 dawsbot

Check out jsonlint-cli.

AndersDJohnson avatar Apr 24 '17 18:04 AndersDJohnson

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.

prantlf avatar May 19 '19 03:05 prantlf

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.

ssbarnea avatar Jul 03 '20 15:07 ssbarnea