Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update dependencies #2140

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions website/.eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion website/docs/tutorials/react-rsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ There's one last caveat: in a real-world app, you will need to localize many pag
- [Why do nested layouts/pages render before their parent layouts?](https://github.com/vercel/next.js/discussions/53026)
- [On navigation, layouts preserve state and do not re-render](https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#layouts)

This means you need to repeat the `setI18n` in every page and layout. Luckily, you can easily factor it out into a simple function call, or create a HOC with which you'll wrap pages and layouts [as seen here](https://github.com/lingui/js-lingui/blob/main/examples/nextjs-swc/src/withLingui.tsx). Please let us know if there's a known better way.
This means you need to repeat the `setI18n` in every page and layout. Luckily, you can easily factor it out into a simple function call, or create a HOC with which you'll wrap pages and layouts [as seen here](https://github.com/lingui/js-lingui/blob/main/examples/nextjs-swc/src/initLingui.tsx). Please let us know if there's a known better way.

### Changing the Active Language

Expand Down
58 changes: 58 additions & 0 deletions website/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import eslint from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import reactPlugin from "eslint-plugin-react";
import reactHooksPlugin from "eslint-plugin-react-hooks";
import globals from "globals";

export default [
eslint.configs.recommended,
{
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
ecmaVersion: 2021,
sourceType: "module",
parser: tsParser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
process: true,
require: true,
module: true,
JSX: true,
},
},
plugins: {
react: reactPlugin,
"react-hooks": reactHooksPlugin,
"@typescript-eslint": tseslint,
},
settings: {
react: {
version: "detect",
},
},
rules: {
...reactPlugin.configs.recommended.rules,
...reactHooksPlugin.configs.recommended.rules,
...tseslint.configs.recommended.rules,
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
},
},
{
files: ["*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node,
},
},
},
];
47 changes: 26 additions & 21 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,39 @@
"fixFormat": "prettier --write ."
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@docusaurus/remark-plugin-npm2yarn": "3.5.2",
"@docusaurus/theme-mermaid": "3.5.2",
"@mdx-js/react": "3.0.1",
"@docusaurus/core": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@docusaurus/remark-plugin-npm2yarn": "3.6.3",
"@docusaurus/theme-mermaid": "3.6.3",
"@mdx-js/react": "3.1.0",
"clsx": "2.1.1",
"docusaurus-plugin-sass": "^0.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"sass": "^1.79.3"
"docusaurus-plugin-sass": "^0.2.6",
"react": "19.0.0",
"react-dom": "19.0.0",
"sass": "^1.83.0"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all"
],
"devDependencies": {
"@docusaurus/eslint-plugin": "3.5.2",
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/utils": "3.5.2",
"@docusaurus/eslint-plugin": "3.6.3",
"@docusaurus/module-type-aliases": "3.6.3",
"@docusaurus/utils": "3.6.3",
"@eslint/js": "^9.17.0",
"@tsconfig/docusaurus": "2.0.3",
"@types/react": "18.3.8",
"@types/react": "19.0.2",
"@types/react-helmet": "6.1.11",
"@types/react-router-dom": "5.3.3",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/parser": "7.0.2",
"editorconfig-checker": "5.1.8",
"eslint": "8.57.0",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-react-hooks": "4.6.2",
"prettier": "3.3.3",
"@typescript-eslint/eslint-plugin": "8.18.2",
"@typescript-eslint/parser": "8.18.2",
"editorconfig-checker": "6.0.0",
"eslint": "9.17.0",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-hooks": "5.1.0",
"globals": "^15.14.0",
"prettier": "3.4.2",
"remark-cli": "12.0.1",
"remark-heading-id": "^1.0.1",
"remark-lint-match-punctuation": "0.2.1",
Expand All @@ -65,8 +67,11 @@
"retext-sentence-spacing": "6.0.0",
"retext-syntax-mentions": "4.0.0",
"retext-syntax-urls": "4.0.0",
"typescript": "5.3.3",
"typescript": "5.7.2",
"typescript-plugin-css-modules": "^5.1.0",
"unified": "11.0.5"
},
"resolutions": {
"mermaid": "^10.0.0"
}
}
Loading
Loading