diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ccd9245..10734f2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,6 +13,14 @@ updates: chainfile: patterns: - 'chainfile-*' + react: + patterns: + - 'react' + - 'react-dom' + nextra: + patterns: + - 'nextra' + - 'nextra-theme-docs' next: patterns: - 'next' diff --git a/package.json b/package.json index 051312a..8666c2e 100644 --- a/package.json +++ b/package.json @@ -12,18 +12,18 @@ "lint-staged": { "*": "prettier --write --ignore-unknown" }, + "prettier": "@workspace/prettier-config", "devDependencies": { "@types/node": "^20.14.2", "@workspace/eslint-config": "workspace:*", "@workspace/jest": "workspace:*", + "@workspace/prettier-config": "workspace:*", "@workspace/tsconfig": "workspace:*", "eslint": "^8.57.0", "husky": "^9.0.11", "jest": "29.7.0", "lint-staged": "^15.2.7", "prettier": "^3.3.2", - "prettier-plugin-packagejson": "^2.5.0", - "prettier-plugin-tailwindcss": "^0.6.5", "turbo": "^2.0.4", "typescript": "5.4.5" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7095875..dffa1bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@workspace/jest': specifier: workspace:* version: link:workspace/jest + '@workspace/prettier-config': + specifier: workspace:* + version: link:workspace/prettier-config '@workspace/tsconfig': specifier: workspace:* version: link:workspace/tsconfig @@ -35,12 +38,6 @@ importers: prettier: specifier: ^3.3.2 version: 3.3.2 - prettier-plugin-packagejson: - specifier: ^2.5.0 - version: 2.5.0(prettier@3.3.2) - prettier-plugin-tailwindcss: - specifier: ^0.6.5 - version: 0.6.5(prettier@3.3.2) turbo: specifier: ^2.0.4 version: 2.0.4 @@ -260,6 +257,15 @@ importers: specifier: ^3.0.2 version: 3.0.2 + workspace/prettier-config: + devDependencies: + prettier-plugin-packagejson: + specifier: ^2.5.0 + version: 2.5.0(prettier@3.3.2) + prettier-plugin-tailwindcss: + specifier: ^0.6.4 + version: 0.6.4(prettier@3.3.2) + workspace/tsconfig: {} packages: @@ -496,7 +502,6 @@ packages: '@humanwhocodes/config-array@0.11.14': resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} @@ -504,7 +509,6 @@ packages: '@humanwhocodes/object-schema@2.0.3': resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -2698,7 +2702,6 @@ packages: inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} @@ -3966,8 +3969,8 @@ packages: prettier: optional: true - prettier-plugin-tailwindcss@0.6.5: - resolution: {integrity: sha512-axfeOArc/RiGHjOIy9HytehlC0ZLeMaqY09mm8YCkMzznKiDkwFzOpBvtuhuv3xG5qB73+Mj7OCe2j/L1ryfuQ==} + prettier-plugin-tailwindcss@0.6.4: + resolution: {integrity: sha512-3vhbIvlKyAWPaw9bUr2cw6M1BGx2Oy9CCLJyv+nxEiBGCTcL69WcAz2IFMGqx8IXSzQCInGSo2ujAByg9poHLQ==} engines: {node: '>=14.21.3'} peerDependencies: '@ianvs/prettier-plugin-sort-imports': '*' @@ -4216,7 +4219,6 @@ packages: rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true robust-predicates@3.0.2: @@ -9722,7 +9724,7 @@ snapshots: optionalDependencies: prettier: 3.3.2 - prettier-plugin-tailwindcss@0.6.5(prettier@3.3.2): + prettier-plugin-tailwindcss@0.6.4(prettier@3.3.2): dependencies: prettier: 3.3.2 diff --git a/prettier.config.js b/workspace/prettier-config/index.js similarity index 100% rename from prettier.config.js rename to workspace/prettier-config/index.js diff --git a/workspace/prettier-config/package.json b/workspace/prettier-config/package.json new file mode 100644 index 0000000..2461cd0 --- /dev/null +++ b/workspace/prettier-config/package.json @@ -0,0 +1,8 @@ +{ + "name": "@workspace/prettier-config", + "private": true, + "devDependencies": { + "prettier-plugin-packagejson": "^2.5.0", + "prettier-plugin-tailwindcss": "^0.6.4" + } +}