diff --git a/package.json b/package.json index ff57bee..c10fe4b 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "devDependencies": { "@archoleat/commitlint-define-config": "file:", "@archoleat/eslint-flat-compatibility": "^1.1.6", + "@archoleat/prettier-define-config": "^1.0.0", "@archoleat/semantic-release-define-config": "^1.1.13", "@commitlint/cli": "^19.4.0", "@commitlint/config-conventional": "^19.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ad17b0..4032e01 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@archoleat/eslint-flat-compatibility': specifier: ^1.1.6 version: 1.1.6 + '@archoleat/prettier-define-config': + specifier: ^1.0.0 + version: 1.0.0(prettier@3.3.3) '@archoleat/semantic-release-define-config': specifier: ^1.1.13 version: 1.1.13(semantic-release@24.0.0(typescript@5.5.4)) @@ -141,6 +144,12 @@ packages: resolution: {integrity: sha512-gu8PQv6hWh2DEm2FONtAPDvv1odZXCADshCyvouYzFNscEgMLW0zwbfv6d6pAlsk7uY9+V05R/tz0qv0Sy4mzg==} engines: {node: '>=20.0.0', npm: '>=10.0.0', pnpm: '>=8.0.0'} + '@archoleat/prettier-define-config@1.0.0': + resolution: {integrity: sha512-Sh9DU476HVeQH6aywGuNKaSpRdLsVBNx6HYJRL+b3Oe1VZATv1gf1Ak2m5KeDhHm9VJ4Owf9RRSqUgOINP6i1Q==} + engines: {node: '>=20.0.0', pnpm: '>=9.0.0'} + peerDependencies: + prettier: ^3.3.3 + '@archoleat/semantic-release-define-config@1.1.13': resolution: {integrity: sha512-MwpD6NHfsLM4ZABwp5SitsyzamDO8dh/rvwNjuBXRIHj8L1ljpsmQCuSz8ZwTJTH5EnKEoXIpdnLZlNI52IpTA==} engines: {node: '>=20.0.0', pnpm: '>=9.0.0'} @@ -4013,6 +4022,10 @@ snapshots: transitivePeerDependencies: - supports-color + '@archoleat/prettier-define-config@1.0.0(prettier@3.3.3)': + dependencies: + prettier: 3.3.3 + '@archoleat/semantic-release-define-config@1.1.13(semantic-release@24.0.0(typescript@5.5.4))': dependencies: semantic-release: 24.0.0(typescript@5.5.4) diff --git a/prettier.config.js b/prettier.config.js index 833342d..88a198b 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,4 +1,6 @@ -export default { +import { defineConfig } from '@archoleat/prettier-define-config'; + +export default defineConfig({ overrides: [ { files: ['*.js', '*.ts', '*.yaml'], @@ -13,4 +15,4 @@ export default { }, }, ], -}; +});