https://github.com/stardust-configs/eslint-config-sort-package-json
Sort your package.json based on the package.json specifics
https://github.com/stardust-configs/eslint-config-sort-package-json
eslint eslint-config
Last synced: 3 months ago
JSON representation
Sort your package.json based on the package.json specifics
- Host: GitHub
- URL: https://github.com/stardust-configs/eslint-config-sort-package-json
- Owner: stardust-configs
- Created: 2023-06-14T04:29:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T00:02:11.000Z (almost 2 years ago)
- Last Synced: 2025-02-18T13:04:39.902Z (4 months ago)
- Topics: eslint, eslint-config
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-config-sort-package-json
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# eslint-config-sort-package-json
> Sort your `package.json` based on [the package.json specifics](https://docs.npmjs.com/cli/v9/configuring-npm/package-json)
## Install
```sh
npm i eslint-config-sort-package-json -D
```or
```sh
yarn add eslint-config-sort-package-json -D
```or
```sh
pnpm add eslint-config-sort-package-json -D
```## Usage
Add config to your `.eslintrc*` file.
```js
module.exports = {
extends: ['sort-package-json'],
}
```## VSCode integration
Add `"json"` to `eslint.validate` in `.vscode/settings.json`.
```json
{
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "json"]
}
```## Author
[@p-chan](https://github.com/p-chan)
## License
MIT