-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project status: picking back up! #28
Comments
I think the readme should briefly discuss Fixing: TiedWe don't want to have to manually reorganize fields in our package.json file. As soon as we save the file, it should just be automatically ordered. Both solutions provide this, since a typical workflow in JavaScript/TypeScript projects is to run Config complexity: Tied
(Nit: Obviously, the above comparison assumes you are already using both Prettier and ESLint in your JavaScript/TypeScript project. If you are not using Prettier (booooo), then obviously IDE Errors:
|
More info about |
I'm particulary interested on this use case. VSCode does that validation by checking about the schema, but I don't know where is defined. |
@piranna You can find the package.json schema here: https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/package.json As for what VSCode officially uses, I'm not sure. I cloned the repo and searched for the string "package.json", but I didn't find much. |
Then, we can use the schema validation as one of the rules :-) |
Thanks for the discussion! I filed #42 with a comparison table showing that there are quite a few non-formatting concerns this plugin can grow to handle. #11 already added a
Err, I don't follow the change request, but sure! A new issue would be great.
Is that a typo? Did you mean that Prettier recommends you do use
I think there's still a use case for having ordering rules as part of this plugin. There are formatters (e.g. dprint) that might not have the same plugin extensions. Or in dprint's case, it's not optimal to run the more-priviledged-than-usual process for running Prettier. Filing an issue: #46.
Many repos & docs have been using to all-inclusive globs such as There's also the (not very severe) issue that folks tend to enable this plugin on all files right now. In #40 I'm updating the README.md to explicitly suggest an ESLint override.
Discussed in #41: it's not idiomatic for |
Done.
Sorry, I meant to type |
Closing as it's been a few months since any discussion here. Things are chugging along. 2024 will be a big year for this plugin. 🙂 |
👋 Hi! I'm going to be helping out with maintenance of the project. Pinning this issue to explain project context & next steps.
Project Context
This is a plugin for
package.json
-file-specific logic in ESLint. Other tools exist for doing that (https://github.com/henrikjoreteg/fixpack, https://github.com/tclindner/npm-package-json-lint), but the advantage of this one is operating solely within ESLint. That means it benefits from all the tooling (granularly configurable rules, fixes, suggestions, etc.) that come with ESLint. And I personally am excited about getting this plugin to feature parity with other ecosystem equivalents so I can reduce the number of config files in my repositories.Thanks to @zetlen for first creating
eslint-plugin-package-json
back in 2018!Next Steps
Here's what I'm going to do with this repository:
It's an exciting time to be an ESLint plugin! 🥳
Edit (October 17th, 2023): I've started merging #39 and other PRs that drastically change the library. They're available on a
0.3.x
line in npm, tagged asbeta
.Please do post feedback if you have any questions or suggestions. Cheers all! ❤️
The text was updated successfully, but these errors were encountered: