diff --git a/.node-version b/.node-version index 016e34b..67e145b 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -v20.17.0 +v20.18.0 diff --git a/npm/eslint-config/package.json b/npm/eslint-config/package.json index 1b9a0ad..194eaee 100644 --- a/npm/eslint-config/package.json +++ b/npm/eslint-config/package.json @@ -3,8 +3,32 @@ "name": "@revi/eslint-config", "version": "0.0.12", "description": "@revi's shared eslint config", + "keywords": [ + "eslint" + ], + "homepage": "https://revi.kr/eslint-config", + "bugs": { + "url": "https://revi.xyz/new", + "email": "bugs@phab.revi.dev" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/revi/sandbox.git", + "directory": "npm/eslint-config" + }, + "funding": "https://github.com/sponsors/revi", + "license": "Apache-2.0", + "author": { + "name": "Yongmin Hong", + "email": "package-admin@revi.dev", + "url": "https://revi.xyz/" + }, + "type": "module", "main": "eslint.config.js", "types": "./types/index.d.ts", + "scripts": { + "tsc": "tsc eslint.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types" + }, "dependencies": { "@eslint/js": "9.11.1", "eslint": "catalog:", @@ -14,40 +38,16 @@ "devDependencies": { "@revi/prettier-config": "../prettier-config", "@types/eslint": "9.6.1", - "@types/eslint__js": "8.42.3", "@types/eslint-config-prettier": "6.11.3", + "@types/eslint__js": "8.42.3", "prettier": "catalog:" }, "peerDependencies": { "eslint": "9.11.1" }, - "scripts": { - "tsc": "tsc eslint.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types" - }, - "funding": "https://github.com/sponsors/revi", - "homepage": "https://revi.kr/eslint-config", - "repository": { - "type": "git", - "url": "git+https://github.com/revi/sandbox.git", - "directory": "npm/eslint-config" - }, - "bugs": { - "url": "https://revi.xyz/new", - "email": "bugs@phab.revi.dev" - }, - "keywords": [ - "eslint" - ], - "author": { - "name": "Yongmin Hong", - "url": "https://revi.xyz/", - "email": "package-admin@revi.dev" - }, - "packageManager": "pnpm@9.11.0", + "packageManager": "pnpm@9.12.0", "publishConfig": { "access": "public", "provenance": true - }, - "type": "module", - "license": "Apache-2.0" + } } diff --git a/npm/prettier-config/CHANGELOG.md b/npm/prettier-config/CHANGELOG.md index f471bec..dc3d3db 100644 --- a/npm/prettier-config/CHANGELOG.md +++ b/npm/prettier-config/CHANGELOG.md @@ -10,6 +10,14 @@ # `@revi/prettier-config` changelog - minor: When the plugin is added. - patch: When the rule is modified (without plugin addition/removal). +## v0.2.0 + +Date: 2024-10-06 (KST) + +### New plugin + +- New plugin: `prettier-plugin-packagejson` at `v2.5.2`. + ## v0.1.3 Date: 2024-08-01 (KST) diff --git a/npm/prettier-config/package.json b/npm/prettier-config/package.json index ff612f8..b1ecb67 100644 --- a/npm/prettier-config/package.json +++ b/npm/prettier-config/package.json @@ -2,46 +2,47 @@ "$schema": "https://json.schemastore.org/package.json", "name": "@revi/prettier-config", "version": "0.1.3", - "author": { - "name": "revi", - "email": "package-admin@revi.dev", - "url": "https://revi.xyz" - }, "description": "@revi's prettier configs", - "main": "prettier.config.js", - "types": "./types/prettier.config.d.ts", - "peerDependencies": { - "prettier": "3.3.3" - }, - "dependencies": { - "@prettier/plugin-php": "0.22.2", - "@prettier/plugin-xml": "3.4.1", - "prettier": "catalog:", - "prettier-plugin-sh": "0.14.0", - "prettier-plugin-toml": "2.0.1" - }, - "scripts": { - "tsc": "tsc prettier.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types" + "keywords": [ + "prettier" + ], + "homepage": "https://revi.kr/prettier-config", + "bugs": { + "url": "https://revi.xyz/new", + "email": "bugs@phab.revi.dev" }, "repository": { "type": "git", "url": "git+https://github.com/revi/sandbox.git", "directory": "npm/prettier-config" }, - "homepage": "https://revi.kr/prettier-config", - "bugs": { - "url": "https://revi.xyz/new", - "email": "bugs@phab.revi.dev" + "funding": "https://github.com/sponsors/revi", + "license": "Apache-2.0", + "author": { + "name": "revi", + "email": "package-admin@revi.dev", + "url": "https://revi.xyz" }, - "keywords": [ - "prettier" - ], - "packageManager": "pnpm@9.11.0", + "type": "module", + "main": "prettier.config.js", + "types": "./types/prettier.config.d.ts", + "scripts": { + "tsc": "tsc prettier.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types" + }, + "dependencies": { + "@prettier/plugin-php": "0.22.2", + "@prettier/plugin-xml": "3.4.1", + "prettier": "catalog:", + "prettier-plugin-packagejson": "2.5.2", + "prettier-plugin-sh": "0.14.0", + "prettier-plugin-toml": "2.0.1" + }, + "peerDependencies": { + "prettier": "3.3.3" + }, + "packageManager": "pnpm@9.12.0", "publishConfig": { "access": "public", "provenance": true - }, - "type": "module", - "funding": "https://github.com/sponsors/revi", - "license": "Apache-2.0" + } } diff --git a/npm/prettier-config/prettier.config.js b/npm/prettier-config/prettier.config.js index a0b99fb..97db3af 100644 --- a/npm/prettier-config/prettier.config.js +++ b/npm/prettier-config/prettier.config.js @@ -15,6 +15,8 @@ const config = { singleQuote: true, trailingComma: 'all', plugins: [ + // https://github.com/matzkoh/prettier-plugin-packagejson + 'prettier-plugin-packagejson', // https://github.com/prettier/plugin-php '@prettier/plugin-php', // https://github.com/un-ts/prettier/tree/master/packages/sh diff --git a/package.json b/package.json index 9839991..002909d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,18 @@ "name": "@revi/scripts", "version": "0.0.1", "private": true, + "author": { + "name": "Yongmin Hong", + "email": "package-admin@revi.dev", + "url": "https://revi.xyz" + }, + "scripts": { + "eslint": "eslint", + "lint:renovate": "renovate-config-validator", + "p:c": "prettier --check", + "p:w": "prettier --write" + }, + "prettier": "@revi/prettier-config", "devDependencies": { "@revi/eslint-config": "./npm/eslint-config", "@revi/prettier-config": "./npm/prettier-config", @@ -17,17 +29,5 @@ "optionalDependencies": { "renovate": "38.8.3" }, - "scripts": { - "eslint": "eslint", - "lint:renovate": "renovate-config-validator", - "p:c": "prettier --check", - "p:w": "prettier --write" - }, - "packageManager": "pnpm@9.11.0", - "prettier": "@revi/prettier-config", - "author": { - "name": "Yongmin Hong", - "url": "https://revi.xyz", - "email": "package-admin@revi.dev" - } + "packageManager": "pnpm@9.12.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index da72dfd..0442de9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -91,6 +91,9 @@ importers: prettier: specifier: 'catalog:' version: 3.3.3 + prettier-plugin-packagejson: + specifier: 2.5.2 + version: 2.5.2(prettier@3.3.3) prettier-plugin-sh: specifier: 0.14.0 version: 0.14.0(prettier@3.3.3) @@ -594,6 +597,10 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@pnpm/constants@6.1.0': resolution: {integrity: sha512-L6AiU3OXv9kjKGTJN9j8n1TeJGDcLX9atQlZvAkthlvbXjvKc5SKNWESc/eXhr5nEfuMWhQhiKHDJCpYejmeCQ==} engines: {node: '>=14.19'} @@ -1537,10 +1544,18 @@ packages: resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} engines: {node: '>=8'} + detect-indent@7.0.1: + resolution: {integrity: sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==} + engines: {node: '>=12.20'} + detect-libc@2.0.3: resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} engines: {node: '>=8'} + detect-newline@4.0.1: + resolution: {integrity: sha512-qE3Veg1YXzGHQhlA6jzebZN2qVf6NX+A7m7qlhCGG30dJixrAQhYOsJjsnBjJkCSmuOPpCk30145fr8FV0bzog==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + detect-node@2.1.0: resolution: {integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==} @@ -1999,6 +2014,10 @@ packages: resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} engines: {node: '>= 0.4'} + get-stdin@9.0.0: + resolution: {integrity: sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==} + engines: {node: '>=12'} + get-stream@5.2.0: resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} engines: {node: '>=8'} @@ -2010,6 +2029,9 @@ packages: get-tsconfig@4.7.6: resolution: {integrity: sha512-ZAqrLlu18NbDdRaHq+AKXzAmqIUPswPWKUchfytdAjiRFnCe5ojG2bstg6mRiZabkKfCoL/e98pbBELIV/YCeA==} + git-hooks-list@3.1.0: + resolution: {integrity: sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA==} + git-raw-commits@2.0.11: resolution: {integrity: sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==} engines: {node: '>=10'} @@ -2071,6 +2093,10 @@ packages: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} + globby@13.2.2: + resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + good-enough-parser@1.1.23: resolution: {integrity: sha512-QUcQZutczESpdo2w9BMG6VpLFoq9ix7ER5HLM1mAdZdri2F3eISkCb8ep84W6YOo0grYWJdyT/8JkYqGjQfSSQ==} engines: {node: '>=18.12.0', yarn: ^1.17.0} @@ -2344,6 +2370,10 @@ packages: resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} engines: {node: '>=8'} + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} @@ -2971,6 +3001,14 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + prettier-plugin-packagejson@2.5.2: + resolution: {integrity: sha512-w+TmoLv2pIa+siplW1cCj2ujEXQQS6z7wmWLOiLQK/2QVl7Wy6xh/ZUpqQw8tbKMXDodmSW4GONxlA33xpdNOg==} + peerDependencies: + prettier: '>= 1.16.0' + peerDependenciesMeta: + prettier: + optional: true + prettier-plugin-sh@0.14.0: resolution: {integrity: sha512-hfXulj5+zEl/ulrO5kMuuTPKmXvOg0bnLHY1hKFNN/N+/903iZbNp8NyZBTsgI8dtkSgFfAEIQq0IQTyP1ZVFQ==} engines: {node: '>=16.0.0'} @@ -3275,6 +3313,10 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} + slash@4.0.0: + resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==} + engines: {node: '>=12'} + slugify@1.6.6: resolution: {integrity: sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==} engines: {node: '>=8.0.0'} @@ -3295,6 +3337,13 @@ packages: resolution: {integrity: sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg==} engines: {node: '>=8'} + sort-object-keys@1.1.3: + resolution: {integrity: sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==} + + sort-package-json@2.10.1: + resolution: {integrity: sha512-d76wfhgUuGypKqY72Unm5LFnMpACbdxXsLPcL27pOsSrmVqH3PztFp1uq+Z22suk15h7vXmTesuh2aEjdCqb5w==} + hasBin: true + source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} @@ -3409,6 +3458,10 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + synckit@0.9.1: + resolution: {integrity: sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==} + engines: {node: ^14.18.0 || >=16.0.0} + tapable@2.2.1: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} engines: {node: '>=6'} @@ -4983,6 +5036,8 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true + '@pkgr/core@0.1.1': {} + '@pnpm/constants@6.1.0': optional: true @@ -6326,9 +6381,13 @@ snapshots: detect-indent@6.1.0: optional: true + detect-indent@7.0.1: {} + detect-libc@2.0.3: optional: true + detect-newline@4.0.1: {} + detect-node@2.1.0: optional: true @@ -7039,6 +7098,8 @@ snapshots: hasown: 2.0.2 optional: true + get-stdin@9.0.0: {} + get-stream@5.2.0: dependencies: pump: 3.0.0 @@ -7055,6 +7116,8 @@ snapshots: dependencies: resolve-pkg-maps: 1.0.0 + git-hooks-list@3.1.0: {} + git-raw-commits@2.0.11: dependencies: dargs: 7.0.0 @@ -7150,6 +7213,14 @@ snapshots: merge2: 1.4.1 slash: 3.0.0 + globby@13.2.2: + dependencies: + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.1 + merge2: 1.4.1 + slash: 4.0.0 + good-enough-parser@1.1.23: dependencies: '@thi.ng/zipper': 1.0.3 @@ -7478,6 +7549,8 @@ snapshots: is-plain-obj@2.1.0: optional: true + is-plain-obj@4.1.0: {} + is-regex@1.1.4: dependencies: call-bind: 1.0.7 @@ -8248,6 +8321,13 @@ snapshots: prelude-ls@1.2.1: {} + prettier-plugin-packagejson@2.5.2(prettier@3.3.3): + dependencies: + sort-package-json: 2.10.1 + synckit: 0.9.1 + optionalDependencies: + prettier: 3.3.3 + prettier-plugin-sh@0.14.0(prettier@3.3.3): dependencies: mvdan-sh: 0.10.1 @@ -8755,6 +8835,8 @@ snapshots: slash@3.0.0: {} + slash@4.0.0: {} + slugify@1.6.6: optional: true @@ -8781,6 +8863,19 @@ snapshots: is-plain-obj: 2.1.0 optional: true + sort-object-keys@1.1.3: {} + + sort-package-json@2.10.1: + dependencies: + detect-indent: 7.0.1 + detect-newline: 4.0.1 + get-stdin: 9.0.0 + git-hooks-list: 3.1.0 + globby: 13.2.2 + is-plain-obj: 4.1.0 + semver: 7.6.3 + sort-object-keys: 1.1.3 + source-map-support@0.5.21: dependencies: buffer-from: 1.1.2 @@ -8917,6 +9012,11 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + synckit@0.9.1: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.6.3 + tapable@2.2.1: {} tar-fs@2.1.1: