-
Notifications
You must be signed in to change notification settings - Fork 38
Closed as not planned
Labels
status: accepting prsPlease, send a pull request to resolve this! πPlease, send a pull request to resolve this! πtype: bugSomething isn't working πSomething isn't working π
Description
Bug Report Checklist
- I have tried restarting my IDE and the issue persists.
- I have searched for related issues and found none that matched my issue.
Expected
Indentation shouldn't change when sorting things in package.json
Actual
When you run the:
"package-json/scripts-name-casing": "warn",
"package-json/sort-collections": [ "warn",
[
"config",
"dependencies",
"devDependencies",
"exports",
"optionalDependencies",
// "overrides",
"peerDependencies",
"peerDependenciesMeta",
"scripts"
],
],
(my config)
when it sorts the scripts, my indendation changes on the entire script block from:
Before:
"lint:publint": "publint",
After:
"lint:publint": "publint",
I use indentation of 4 spaces and it gets reset to 2 spaces pretty much
Version
eslint-plugin-package-json@0.88.2
ESLint Version
eslint@9.39.2
Additional Info
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: accepting prsPlease, send a pull request to resolve this! πPlease, send a pull request to resolve this! πtype: bugSomething isn't working πSomething isn't working π