it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

I'd like some lint tools

Open linkslice opened this issue 1 year ago • 2 comments

What type of request is this?

New tool idea

Clear and concise description of the feature you are proposing

I used jsonlint.com pretty regularly, but I'd rather not send my json outside to find formatting issues.

Is their example of this tool in the wild?

No response

Additional context

No response

Validations

  • [X] Check the feature is not already implemented in the project.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [X] Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).

linkslice avatar Dec 04 '24 01:12 linkslice

I agree, I have the same concerns. Linting tools I'd like to see:

  • JSON
  • YAML
  • TOML
  • XML

Gorian avatar Dec 22 '24 07:12 Gorian

Hi @Gorian , @linkslice ,

  • json linter in https://github.com/CorentinTh/it-tools/pull/1015
  • yaml linter in https://github.com/CorentinTh/it-tools/pull/957
  • XML linter and toml have some converters to json, kind of validators

sharevb avatar Dec 25 '24 11:12 sharevb

Thanks for the links! Just to note, validation - "this is correct enough to convert" - isn't the same as linting - "here's what's wrong, and how to fix it".

As an example, with the TOML to JSON converter, it only tells me the TOML is invalid. It doesn't tell me why, or what is wrong (the value should be quoted) image image

By comparison, this JSON linter identifies the issue (lack of a comma) and tells you what is expected, and where: image

Gorian avatar Jan 12 '25 23:01 Gorian

Hi @Gorian @linkslice , linters implemented:

  • https://sharevb-it-tools.vercel.app/json-linter
  • https://sharevb-it-tools.vercel.app/yaml-prettify
  • https://sharevb-it-tools.vercel.app/xml-linter
  • https://sharevb-it-tools.vercel.app/toml-linter

And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Aug 22 '25 07:08 sharevb