diff --git a/packages/example-advanced/package.json b/packages/example-advanced/package.json index d4efd4100..d8d664561 100644 --- a/packages/example-advanced/package.json +++ b/packages/example-advanced/package.json @@ -13,21 +13,21 @@ "accept-language-parser": "1.5.0", "date-fns": "^2.16.1", "lodash": "^4.17.21", - "next": "^12.1.4", + "next": "^13.0.0", "next-intl": "^2.8.0", - "react": "^18.0.0", - "react-dom": "^18.0.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "typescript": "^4.6.3" }, "devDependencies": { - "@testing-library/react": "13.0.0", - "@types/accept-language-parser": "1.5.3", - "@types/lodash": "4.14.176", - "@types/node": "17.0.23", - "@types/react": "18.0.0", - "eslint": "8.12.0", - "eslint-config-molindo": "6.0.0", - "eslint-config-next": "^12.0.0", - "jest": "27.4.5" + "@testing-library/react": "^13.0.0", + "@types/accept-language-parser": "^1.5.3", + "@types/lodash": "^4.14.176", + "@types/node": "^17.0.23", + "@types/react": "^18.0.23", + "eslint": "^8.12.0", + "eslint-config-molindo": "^6.0.0", + "eslint-config-next": "^13.0.0", + "jest": "^27.4.5" } } diff --git a/packages/example-advanced/src/components/Navigation.tsx b/packages/example-advanced/src/components/Navigation.tsx index 918b53cfc..354986cab 100644 --- a/packages/example-advanced/src/components/Navigation.tsx +++ b/packages/example-advanced/src/components/Navigation.tsx @@ -11,15 +11,11 @@ export default function Navigation() { return (
- - {t('index')} - - - {t('about')} - + {t('index')} + {t('about')}
- {t('switchLocale', {locale: otherLocale})} + {t('switchLocale', {locale: otherLocale})}
); diff --git a/packages/example/package.json b/packages/example/package.json index f20b00f41..845083d7d 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -12,18 +12,18 @@ "dependencies": { "date-fns": "^2.16.1", "lodash": "^4.17.21", - "next": "^12.1.4", + "next": "^13.0.0", "next-intl": "^2.8.0", - "react": "^18.0.0", - "react-dom": "^18.0.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "typescript": "^4.6.3" }, "devDependencies": { - "@types/lodash": "4.14.176", - "@types/node": "17.0.23", - "@types/react": "18.0.0", - "eslint": "8.12.0", - "eslint-config-molindo": "6.0.0", - "eslint-config-next": "^12.0.0" + "@types/lodash": "^4.14.176", + "@types/node": "^17.0.23", + "@types/react": "^18.0.23", + "eslint": "^8.12.0", + "eslint-config-molindo": "^6.0.0", + "eslint-config-next": "^13.0.0" } } diff --git a/packages/example/src/components/LocaleSwitcher.tsx b/packages/example/src/components/LocaleSwitcher.tsx index b54eda5eb..959d7ecfa 100644 --- a/packages/example/src/components/LocaleSwitcher.tsx +++ b/packages/example/src/components/LocaleSwitcher.tsx @@ -10,7 +10,7 @@ export default function LocaleSwitcher() { return ( - {t('switchLocale', {locale: otherLocale})} + {t('switchLocale', {locale: otherLocale})} ); } diff --git a/packages/next-intl/package.json b/packages/next-intl/package.json index 168bbe670..abe3f8284 100644 --- a/packages/next-intl/package.json +++ b/packages/next-intl/package.json @@ -45,18 +45,18 @@ "use-intl": "^2.8.0" }, "peerDependencies": { - "next": "^10.0.0 || ^11.0.0 || ^12.0.0", + "next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "devDependencies": { "@testing-library/react": "^13.0.0", - "@types/react": "^18.0.0", + "@types/react": "^18.0.23", "dts-cli": "1.4.0", "eslint": "8.12.0", "eslint-config-molindo": "6.0.0", - "next": "^12.1.4", - "react": "^18.0.0", - "react-dom": "^18.0.0", + "next": "^13.0.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "tslib": "^2.3.1", "typescript": "^4.4.4" }, diff --git a/packages/next-intl/test/useTranslations.test.tsx b/packages/next-intl/test/NextIntlProvider.test.tsx similarity index 100% rename from packages/next-intl/test/useTranslations.test.tsx rename to packages/next-intl/test/NextIntlProvider.test.tsx diff --git a/packages/use-intl/package.json b/packages/use-intl/package.json index 29e98369d..3dfb46906 100644 --- a/packages/use-intl/package.json +++ b/packages/use-intl/package.json @@ -47,13 +47,13 @@ }, "devDependencies": { "@testing-library/react": "^13.0.0", - "@types/react": "^18.0.0", + "@types/react": "^18.0.23", "date-fns": "^2.16.1", "dts-cli": "1.4.0", "eslint": "8.12.0", "eslint-config-molindo": "6.0.0", - "react": "^18.0.0", - "react-dom": "^18.0.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "tslib": "^2.3.1", "typescript": "^4.4.4" }, diff --git a/packages/website/.eslintrc.js b/packages/website/.eslintrc.js index f113ec889..c199a5f33 100644 --- a/packages/website/.eslintrc.js +++ b/packages/website/.eslintrc.js @@ -1,10 +1,15 @@ require('eslint-config-molindo/setupPlugins'); module.exports = { - extends: ['molindo/typescript', 'molindo/react', 'plugin:@next/next/recommended'], + extends: [ + 'molindo/typescript', + 'molindo/react', + 'plugin:@next/next/recommended' + ], rules: { 'react/react-in-jsx-scope': 'off', + 'react/prop-types': 'off', 'jsx-a11y/anchor-is-valid': 'off', 'react/display-name': 'off' } -} +}; diff --git a/packages/website/components/CodeSandbox.tsx b/packages/website/components/CodeSandbox.js similarity index 82% rename from packages/website/components/CodeSandbox.tsx rename to packages/website/components/CodeSandbox.js index 444fe75f3..c87aebb1e 100644 --- a/packages/website/components/CodeSandbox.tsx +++ b/packages/website/components/CodeSandbox.js @@ -1,9 +1,4 @@ -type Props = { - src: string; - title: string; -}; - -export default function CodeSandbox({src, title}: Props) { +export default function CodeSandbox({src, title}) { return (