Skip to content

Commit

Permalink
feat: adjest package.json sort
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Mar 13, 2022
1 parent 1f8ab0d commit 2652d16
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@hannoeru/eslint-config-monorepo",
"version": "0.7.1",
"private": true,
"license": "MIT",
"author": "hannoeru <me@hanlee.co>",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "pnpm -r build",
"stub": "pnpm -r stub",
"lint": "eslint --ext .js,.ts,.json .",
"lint:fix": "eslint --ext .js,.ts,.json . --fix",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"description": "",
"keywords": [],
"license": "MIT",
"author": "hannoeru <me@hanlee.co>",
"repository": {
"type": "git",
"url": "git+https://github.com/hannoeru/eslint-config.git",
"directory": "packages/eslint-config"
},
"author": "hannoeru <me@hanlee.co>",
"main": "index.js",
"files": [
"index.js"
],
"main": "index.js",
"peerDependencies": {
"eslint": "^8.0.0"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
"description": "My eslint plugin",
"keywords": [],
"license": "MIT",
"author": "hannoeru <me@hanlee.co>",
"repository": {
"type": "git",
"url": "git+https://github.com/hannoeru/eslint-config.git",
"directory": "packages/eslint-plugin"
},
"author": "hannoeru <me@hanlee.co>",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"files": [
"index.js"
],
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"scripts": {
"prepublishOnly": "pnpm run build",
"stub": "unbuild --stub",
"build": "unbuild"
},
"peerDependencies": {
Expand Down
18 changes: 12 additions & 6 deletions packages/eslint-plugin/src/configs/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,33 @@ export default defineConfig({
pathPattern: '^$',
order: [
'name',
'type',
'version',
'private',
'packageManager',
'description',
'keywords',
'license',
'author',
'repository',
'funding',
'author',
'type',
'files',
'exports',
'main',
'module',
'types',
'unpkg',
'jsdelivr',
'exports',
'files',
'bin',
'sideEffects',
'scripts',
'husky',
'lint-staged',
'peerDependencies',
'peerDependenciesMeta',
'dependencies',
'optionalDependencies',
'devDependencies',
'husky',
'lint-staged',
'eslintConfig',
],
},
Expand Down

0 comments on commit 2652d16

Please sign in to comment.