Skip to content

Commit

Permalink
Bump the WordPress packages to use React 18 (#13443)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
swissspidy and dependabot[bot] authored Sep 29, 2023
1 parent fa5369f commit 6f420c0
Show file tree
Hide file tree
Showing 24 changed files with 2,813 additions and 1,473 deletions.
41 changes: 38 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@
"packages/**/*.js"
],
"excludedFiles": [
"packages/activation-notice/**/*.js",
"packages/activation-notice/**/*.tsx",
"packages/i18n/**/*.js",
"packages/stories-block/**/*.js",
"packages/tinymce-button/**/*.js"
Expand All @@ -739,7 +739,7 @@
},
{
"files": [
"packages/activation-notice/**/*.js",
"packages/activation-notice/**/*.tsx",
"packages/stories-block/**/*.js",
"packages/tinymce-button/**/*.js"
],
Expand Down Expand Up @@ -773,7 +773,7 @@
"excludedFiles": [
".storybook/preview.js",
"__mocks__/**/*.js",
"packages/activation-notice/**/*.js",
"packages/activation-notice/**/*.tsx",
"packages/react/**/*.js",
"packages/dashboard/src/karma/fixture.js",
"packages/story-editor/src/karma/fixture/fixture.js",
Expand All @@ -798,6 +798,32 @@
]
}
},
{
"files": [
"packages/activation-notice/**/*.tsx"
],
"rules":{
"no-restricted-imports": "off",
"import/no-named-as-default": "off",
"@typescript-eslint/no-restricted-imports": [
"error",
{
"paths": [
{
"name": "react",
"message": "Use @wordpress/element instead.",
"allowTypeImports": true
},
{
"name": "react-dom",
"message": "Use @wordpress/element instead.",
"allowTypeImports": true
}
]
}
]
}
},
{
"files": [
"packages/tinymce-button/src/**/*.js"
Expand All @@ -818,6 +844,15 @@
"eslint-comments/require-description": "off"
}
},
{
"files": [
"__mocks__/**/*",
".storybook/stories/**/*"
],
"rules": {
"import/no-extraneous-dependencies" : "off"
}
},
{
"files": [
"packages/story-editor/src/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
actions: read
contents: read
security-events: write
timeout-minutes: 10
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
Expand Down
89 changes: 0 additions & 89 deletions __mocks__/@wordpress/element.js

This file was deleted.

Loading

0 comments on commit 6f420c0

Please sign in to comment.