Skip to content

Commit

Permalink
Merge branch 'main' into add/bun
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Oct 15, 2024
2 parents 1d50890 + 02b8418 commit a8deb2e
Show file tree
Hide file tree
Showing 527 changed files with 22,028 additions and 14,379 deletions.
1 change: 1 addition & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.github
.husky
.idea
.rollup.cache
.storybook
.wordpress-org
__mocks__
Expand Down
41 changes: 26 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"plugin:@wordpress/eslint-plugin/i18n",
"eslint:recommended",
"plugin:import/recommended",
"plugin:eslint-comments/recommended",
"plugin:@eslint-community/eslint-comments/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
Expand Down Expand Up @@ -57,7 +57,7 @@
"",
{
"pattern": " \\* Copyright \\d{4} Google LLC",
"template": " * Copyright 2023 Google LLC"
"template": " * Copyright 2024 Google LLC"
},
" *",
" * Licensed under the Apache License, Version 2.0 (the \"License\");",
Expand Down Expand Up @@ -141,7 +141,8 @@
"react/forbid-component-props": ["error", {
"forbid": ["for"]
}],
"react/no-array-index-key": "warn",
"react/jsx-key": "error",
"react/no-array-index-key": "error",
"react/no-unknown-property": [
"error",
{
Expand Down Expand Up @@ -244,8 +245,8 @@
{ "startLines": 1 }
],
"jsdoc/valid-types": "error",
"eslint-comments/no-unused-disable": "error",
"eslint-comments/require-description": "error",
"@eslint-community/eslint-comments/no-unused-disable": "error",
"@eslint-community/eslint-comments/require-description": "error",
"@wordpress/dependency-group": "error",
"@wordpress/i18n-no-flanking-whitespace": "error",
"@wordpress/no-unused-vars-before-return": ["error", {
Expand Down Expand Up @@ -422,12 +423,13 @@
"node": true
},
"rules": {
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"react/prop-types": "off",
"jest/no-hooks": "off",
"jest/no-untyped-mock-factory": "off",
"jest/max-expects": "off",
"jest/prefer-expect-assertions": "off",
"jest/prefer-importing-jest-globals": "off",
"jest/prefer-inline-snapshots": "off",
"jest/prefer-lowercase-title": [
"error",
Expand Down Expand Up @@ -482,7 +484,7 @@
"node": true
},
"rules": {
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"testing-library/no-await-sync-events": "error",
"testing-library/no-await-sync-queries": "error",
"testing-library/no-debugging-utils": "error",
Expand Down Expand Up @@ -548,10 +550,11 @@
"node": true
},
"rules": {
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"jest/max-expects": "off",
"jest/no-hooks": "off",
"jest/prefer-expect-assertions": "off",
"jest/prefer-importing-jest-globals": "off",
"jest/prefer-inline-snapshots": "off",
"jest/prefer-lowercase-title": [
"error",
Expand Down Expand Up @@ -586,7 +589,7 @@
"packages/e2e-test-utils/**/*.js"
],
"rules": {
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"jest/expect-expect": "off",
"jest/max-expects": "off",
"jest/no-export": "off",
Expand All @@ -605,7 +608,7 @@
"**/testUtils/**/*.js"
],
"rules": {
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"jest/require-hook": "off"
}
},
Expand Down Expand Up @@ -658,7 +661,7 @@
"node": true
},
"rules": {
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"node/no-extraneous-import": "off",
"node/no-missing-import": "off",
"node/no-unpublished-import": "off",
Expand All @@ -680,7 +683,7 @@
"packages/migration/scripts/utils/updateTemplates.js"
],
"rules": {
"eslint-comments/no-unused-disable": "off"
"@eslint-community/eslint-comments/no-unused-disable": "off"
}
},
{
Expand Down Expand Up @@ -708,7 +711,7 @@
"no-unused-vars": "off",
"header/header": "off",
"prettier/prettier": "off",
"eslint-comments/require-description": "off",
"@eslint-community/eslint-comments/require-description": "off",
"react/prop-types" : "off"
}
},
Expand Down Expand Up @@ -841,8 +844,8 @@
"rules": {
"react/no-array-index-key" : "off",
"react/prop-types": "off",
"eslint-comments/no-unused-disable": "off",
"eslint-comments/require-description": "off"
"@eslint-community/eslint-comments/no-unused-disable": "off",
"@eslint-community/eslint-comments/require-description": "off"
}
},
{
Expand Down Expand Up @@ -885,6 +888,14 @@
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unsafe-return": "off"
}
},
{
"files": [
"packages/story-editor/src/components/canvas/mediaCaptions/cue.js"
],
"rules": {
"@eslint-community/eslint-comments/no-unused-disable": "off",
}
}
]
}
23 changes: 21 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,29 @@ updates:
# We have not yet upgraded to React 18.
- dependency-name: 'react'
versions:
- '>= 118'
- '>= 18'
- dependency-name: 'react-dom'
versions:
- '>= 118'
- '>= 18'
- dependency-name: '@testing-library/react'
versions:
- '>= 13'

# ESM only
- dependency-name: 'use-context-selector'
versions:
- '>= 2'
- dependency-name: 'flagged'
versions:
- '>= 3'
- dependency-name: 'mime'
versions:
- '>= 4'

# Needs manual update
- dependency-name: 'styled-components'
versions:
- '>= 6'

- package-ecosystem: composer
directory: '/'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -101,13 +101,13 @@ jobs:
54.185.253.63:443
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc

- name: Bundle size check
uses: preactjs/compressed-size-action@8119d3d31b6e57b167e09c81dfa877eada3bcb35
uses: preactjs/compressed-size-action@6fa0e7ca017120c754863b31123c5ee2860fd434
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pattern: '{assets/js/*.js,assets/css/*.css}'
Expand All @@ -126,12 +126,12 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand Down Expand Up @@ -173,12 +173,12 @@ jobs:
# Upload ZIP file to GCS for use in QA environment.

- name: Authenticate
uses: google-github-actions/auth@67e9c72af6e0492df856527b474995862b7b6591
uses: google-github-actions/auth@8254fb75a33b976a221574d287e93919e6a36f70
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b
uses: google-github-actions/setup-gcloud@f0990588f1e5b5af6827153b93673613abdc6ec7
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand All @@ -191,7 +191,7 @@ jobs:

- name: Check if a comment was already made
id: find-comment
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: googleforcreators-bot
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cleanup-pr-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
disable-file-monitoring: true
disable-sudo: true
Expand All @@ -34,12 +34,12 @@ jobs:
raw.githubusercontent.com:443
- name: Authenticate
uses: google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c
uses: google-github-actions/auth@8254fb75a33b976a221574d287e93919e6a36f70
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@98ddc00a17442e89a24bbf282954a3b65ce6d200
uses: google-github-actions/setup-gcloud@f0990588f1e5b5af6827153b93673613abdc6ec7
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Initialize CodeQL
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a
uses: github/codeql-action/init@e2b3eafc8d227b0241d48be5f425d47c2d750a13
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a
uses: github/codeql-action/analyze@e2b3eafc8d227b0241d48be5f425d47c2d750a13
4 changes: 2 additions & 2 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand All @@ -47,7 +47,7 @@ jobs:
run: bun run storybook:build

- name: Checkout gh-pages
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
ref: gh-pages
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint-css-js-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
timeout-minutes: 20
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
disable-sudo: true
disable-file-monitoring: true
Expand All @@ -74,7 +74,7 @@ jobs:
54.185.253.63:443
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup Bun
uses: oven-sh/setup-bun@9b21598af8d4dfc302e5a30250007de0fda92acc
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'
- name: Annotate JS Lint Results
uses: ataylorme/eslint-annotate-action@2.2.0
uses: ataylorme/eslint-annotate-action@3.0.0
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: 'build/lint-js-report.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
with:
disable-file-monitoring: true
egress-policy: block
Expand All @@ -55,7 +55,7 @@ jobs:
dl.cloudsmith.io:443
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup PHP
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35
Expand Down
Loading

0 comments on commit a8deb2e

Please sign in to comment.