-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tailwind and eslint config to be compatible with Next.js App R…
…outer, `@theguild/components` v8 and Nextra 4 (#615) * upd * aa * chore(dependencies): updated changesets for modified dependencies * fix `require.resolve` * more * more * more * more * lint fixes * ignore default export from manifest * fixes * chore(dependencies): updated changesets for modified dependencies * remove @type * use `--nextra-primary-lightness` feature --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a2b3340
commit a3d8e2f
Showing
27 changed files
with
4,182 additions
and
2,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
"@theguild/eslint-config": patch | ||
--- | ||
dependencies updates: | ||
- Updated dependency [`@rushstack/eslint-patch@1.10.4` ↗︎](https://www.npmjs.com/package/@rushstack/eslint-patch/v/1.10.4) (from `^1.10.4`, in `dependencies`) | ||
- Updated dependency [`@typescript-eslint/eslint-plugin@8.13.0` ↗︎](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin/v/8.13.0) (from `^7.18.0`, in `dependencies`) | ||
- Updated dependency [`@typescript-eslint/parser@8.13.0` ↗︎](https://www.npmjs.com/package/@typescript-eslint/parser/v/8.13.0) (from `^7.18.0`, in `dependencies`) | ||
- Updated dependency [`eslint-config-prettier@9.1.0` ↗︎](https://www.npmjs.com/package/eslint-config-prettier/v/9.1.0) (from `^9.1.0`, in `dependencies`) | ||
- Updated dependency [`eslint-import-resolver-typescript@3.6.3` ↗︎](https://www.npmjs.com/package/eslint-import-resolver-typescript/v/3.6.3) (from `^3.6.1`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-import@2.31.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-import/v/2.31.0) (from `^2.29.1`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-jsonc@2.16.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-jsonc/v/2.16.0) (from `^2.11.1`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-jsx-a11y@6.10.2` ↗︎](https://www.npmjs.com/package/eslint-plugin-jsx-a11y/v/6.10.2) (from `^6.8.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-mdx@3.1.5` ↗︎](https://www.npmjs.com/package/eslint-plugin-mdx/v/3.1.5) (from `^3.0.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-n@17.12.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-n/v/17.12.0) (from `^17.0.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-promise@7.1.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-promise/v/7.1.0) (from `^7.0.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-react@7.37.2` ↗︎](https://www.npmjs.com/package/eslint-plugin-react/v/7.37.2) (from `^7.33.2`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-react-hooks@5.0.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-react-hooks/v/5.0.0) (from `^4.6.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-sonarjs@2.0.4` ↗︎](https://www.npmjs.com/package/eslint-plugin-sonarjs/v/2.0.4) (from `^1.0.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-unicorn@56.0.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-unicorn/v/56.0.0) (from `^55.0.0`, in `dependencies`) | ||
- Updated dependency [`eslint-plugin-yml@1.15.0` ↗︎](https://www.npmjs.com/package/eslint-plugin-yml/v/1.15.0) (from `^1.11.0`, in `dependencies`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@theguild/tailwind-config": patch | ||
--- | ||
dependencies updates: | ||
- Removed dependency [`autoprefixer@^10.4.19` ↗︎](https://www.npmjs.com/package/autoprefixer/v/10.4.19) (from `dependencies`) | ||
- Removed dependency [`cssnano@^7.0.0` ↗︎](https://www.npmjs.com/package/cssnano/v/7.0.0) (from `dependencies`) | ||
- Removed dependency [`postcss@^8.4.38` ↗︎](https://www.npmjs.com/package/postcss/v/8.4.38) (from `dependencies`) | ||
- Removed dependency [`postcss-import@^16.1.0` ↗︎](https://www.npmjs.com/package/postcss-import/v/16.1.0) (from `dependencies`) | ||
- Removed dependency [`tailwindcss@^3.4.3` ↗︎](https://www.npmjs.com/package/tailwindcss/v/3.4.3) (from `dependencies`) | ||
- Added dependency [`postcss-import@^16.1.0` ↗︎](https://www.npmjs.com/package/postcss-import/v/16.1.0) (to `peerDependencies`) | ||
- Added dependency [`postcss-lightningcss@^1.0.1` ↗︎](https://www.npmjs.com/package/postcss-lightningcss/v/1.0.1) (to `peerDependencies`) | ||
- Added dependency [`tailwindcss@^3.4.14` ↗︎](https://www.npmjs.com/package/tailwindcss/v/3.4.14) (to `peerDependencies`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@theguild/prettier-config': major | ||
--- | ||
|
||
add `"type": "module"` in `package.json` and export prettier config as ESM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@theguild/tailwind-config': minor | ||
--- | ||
|
||
- use ESM config for `postcss` | ||
- use `postcss-lightningcss` instead of `autoprefixer` and `cssnano` | ||
- BREAKING CHANGE: require `peerDependencies` to be installed `postcss-import`, `postcss-lightningcss` and `tailwindcss` | ||
- update tailwindcss `content` property to include Next.js' `app` directory | ||
- add `type: "module"` in `package.json` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@theguild/eslint-config': minor | ||
--- | ||
|
||
ignore `import/no-default-export` for `**/app/**/{layout,page,not-found}.tsx` and `**/app/**/_meta.{ts,tsx}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/prettier-config/index.cjs → packages/prettier-config/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import { Config } from 'postcss-load-config'; | ||
|
||
const config: Config = { | ||
/* eslint-disable import/no-default-export */ | ||
export default { | ||
plugins: { | ||
'postcss-import': {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
...(process.env.NODE_ENV === 'production' && { cssnano: {} }), | ||
'postcss-lightningcss': { browsers: '>= .25% and not dead' }, | ||
}, | ||
}; | ||
|
||
export default config; | ||
export { type Config }; |
Oops, something went wrong.