-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add formatting with prettier (#1946)
* chore: remove eslintConfig from plugin packages * chore: switch to eslint flat config * chore: add prettier * chore: convert eslint config to cjs * chore: temporarily disable tag-lines rule in ts * chore: update prettier ignore * chore: manually fix lint errors * chore: remove blockly-scripts lint * chore: do not lint from webpack * chore: un-remove blockly-scripts lint This partially reverts commit cc9914e. * deprecate: add warning to blockly-scripts lint * chore: update copyright date * fix: no autofix missing jsdoc * chore: update package lock after merge conflicts * fix: update lint fix command * fix: autofix lint problems * chore: format everything * fix: ignore sample app files in dev-create * chore: package lock shenanigans
- Loading branch information
Showing
400 changed files
with
19,268 additions
and
31,279 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
name: Check examples install status | ||
|
||
on: | ||
on: | ||
pull_request: | ||
paths: | ||
- 'examples/**' | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
name: Update GitHub Pages | ||
|
||
on: | ||
workflow_dispatch: # Manually trigger. Colon is required. | ||
workflow_dispatch: # Manually trigger. Colon is required. | ||
inputs: | ||
branch: | ||
description: 'Branch to publish from' | ||
|
@@ -13,37 +13,37 @@ on: | |
workflow_call: # Allow this workflow to be called from publish workflow. | ||
|
||
permissions: | ||
contents: write # For checkout and push. | ||
contents: write # For checkout and push. | ||
|
||
jobs: | ||
update-github-pages: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.branch || 'master' }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: NPM install | ||
# Use CI so that we don't update dependencies in this step. | ||
# TODO(#1511): remove --force flag from installing examples | ||
# Until then, don't block updating just because some dependencies are out of date. | ||
run: | | ||
npm ci | ||
(cd examples && npm ci --force) | ||
- name: Deploy to GH Pages | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# deploys to the current repo, | ||
# so you can use this workflow from a fork to update your personal gh-pages | ||
run: | | ||
npm run deploy:prepare | ||
git remote set-url origin https://git:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
npx gh-pages -d gh-pages -t -u "github-actions-bot <[email protected]>" | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.branch || 'master' }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: NPM install | ||
# Use CI so that we don't update dependencies in this step. | ||
# TODO(#1511): remove --force flag from installing examples | ||
# Until then, don't block updating just because some dependencies are out of date. | ||
run: | | ||
npm ci | ||
(cd examples && npm ci --force) | ||
- name: Deploy to GH Pages | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# deploys to the current repo, | ||
# so you can use this workflow from a fork to update your personal gh-pages | ||
run: | | ||
npm run deploy:prepare | ||
git remote set-url origin https://git:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
npx gh-pages -d gh-pages -t -u "github-actions-bot <[email protected]>" |
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,18 @@ | ||
# All examples, codelabs, etc. | ||
examples/* | ||
node_modules/* | ||
codelabs/* | ||
gh-pages/* | ||
|
||
# All build artifacts, etc. | ||
**/dist/* | ||
**/build/* | ||
**/node_modules/* | ||
**/CHANGELOG.md | ||
CHANGELOG.md | ||
PULL_REQUEST_TEMPLATE.md | ||
|
||
# Specific examples that are sometimes copied into plugins | ||
plugins/dev-create/templates/sample-app/* | ||
plugins/dev-create/templates/sample-app-ts/* | ||
|
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,13 @@ | ||
// This config attempts to match google-style code. | ||
|
||
module.exports = { | ||
// Prefer single quotes, but minimize escaping. | ||
singleQuote: true, | ||
// Some properties must be quoted to preserve closure compiler behavior. | ||
// Don't ever change whether properties are quoted. | ||
quoteProps: 'preserve', | ||
// Don't add spaces around braces for object literals. | ||
bracketSpacing: false, | ||
// Put HTML tag closing brackets on same line as last attribute. | ||
bracketSameLine: true, | ||
}; |
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
Oops, something went wrong.