diff --git a/package.json b/package.json index be2d1ec..6618eb2 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "devDependencies": { "@archoleat/commitlint-define-config": "^1.0.8", "@archoleat/eslint-flat-compatibility": "^1.1.6", + "@archoleat/prettier-define-config": "^1.0.0", "@archoleat/semantic-release-define-config": "^1.1.12", "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bbb6621..008b0ba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,6 +51,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.12 version: 1.1.12(semantic-release@24.0.0(typescript@5.5.4)) @@ -172,6 +175,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/reglib@1.1.0': resolution: {integrity: sha512-gftkFlwZ4yiEZLF1+9l3EZtVqLBOQ5dXV3T9AJ0yfLmfAfraJrimbmNuLzvGhlLCu5iNKXs4siXZJC2DnHemDw==} engines: {node: '>=20.0.0', pnpm: '>=9.0.0'} @@ -4282,6 +4291,10 @@ snapshots: transitivePeerDependencies: - supports-color + '@archoleat/prettier-define-config@1.0.0(prettier@3.3.3)': + dependencies: + prettier: 3.3.3 + '@archoleat/reglib@1.1.0': {} '@archoleat/semantic-release-define-config@1.1.12(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 { }, }, ], -}; +});