Skip to content

Commit fb95ae6

Browse files
release: Merge branch 'develop' into rc/v10.0.0
2 parents 399bd65 + 4b563c1 commit fb95ae6

562 files changed

Lines changed: 42532 additions & 34712 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
*_compressed*.js
1+
# Build Artifacts
22
/msg/*
33
/build/*
44
/dist/*
5+
/typings/*
6+
/docs/*
7+
8+
# Tests other than mocha unit tests
59
/tests/blocks/*
610
/tests/themes/*
711
/tests/compile/*
@@ -11,10 +15,14 @@
1115
/tests/screenshot/*
1216
/tests/test_runner.js
1317
/tests/workspace_svg/*
18+
19+
# Demos, scripts, misc
20+
/node_modules/*
1421
/generators/*
1522
/demos/*
1623
/appengine/*
1724
/externs/*
1825
/closure/*
1926
/scripts/gulpfiles/*
20-
/typings/*
27+
CHANGELOG.md
28+
PULL_REQUEST_TEMPLATE.md

.eslintrc.js

Lines changed: 23 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
const rules = {
2-
'curly': ['error'],
3-
'eol-last': ['error'],
4-
'keyword-spacing': ['error'],
5-
'linebreak-style': ['error', 'unix'],
6-
'max-len': [
7-
'error',
8-
{
9-
'code': 100,
10-
'tabWidth': 4,
11-
'ignoreStrings': true,
12-
'ignoreRegExpLiterals': true,
13-
'ignoreUrls': true,
14-
},
15-
],
16-
'no-trailing-spaces': ['error', {'skipBlankLines': true}],
172
'no-unused-vars': [
18-
'warn',
3+
'error',
194
{
205
'args': 'after-used',
216
// Ignore vars starting with an underscore.
@@ -29,20 +14,12 @@ const rules = {
2914
// Blockly uses single quotes except for JSON blobs, which must use double
3015
// quotes.
3116
'quotes': ['off'],
32-
'semi': ['error', 'always'],
33-
// Blockly doesn't have space before function paren when defining functions.
34-
'space-before-function-paren': ['error', 'never'],
35-
// Blockly doesn't have space before function paren when calling functions.
36-
'func-call-spacing': ['error', 'never'],
37-
'space-infix-ops': ['error'],
3817
// Blockly uses 'use strict' in files.
3918
'strict': ['off'],
4019
// Closure style allows redeclarations.
4120
'no-redeclare': ['off'],
4221
'valid-jsdoc': ['error'],
4322
'no-console': ['off'],
44-
'no-multi-spaces': ['error', {'ignoreEOLComments': true}],
45-
'operator-linebreak': ['error', 'after'],
4623
'spaced-comment': [
4724
'error',
4825
'always',
@@ -61,27 +38,13 @@ const rules = {
6138
'allow': ['^opt_', '^_opt_', '^testOnly_'],
6239
},
6340
],
64-
// Use clang-format for indentation by running `npm run format`.
65-
'indent': ['off'],
6641
// Blockly uses capital letters for some non-constructor namespaces.
6742
// Keep them for legacy reasons.
6843
'new-cap': ['off'],
69-
// Mostly use default rules for brace style, but allow single-line blocks.
70-
'brace-style': ['error', '1tbs', {'allowSingleLine': true}],
7144
// Blockly uses objects as maps, but uses Object.create(null) to
7245
// instantiate them.
7346
'guard-for-in': ['off'],
7447
'prefer-spread': ['off'],
75-
'comma-dangle': [
76-
'error',
77-
{
78-
'arrays': 'always-multiline',
79-
'objects': 'always-multiline',
80-
'imports': 'always-multiline',
81-
'exports': 'always-multiline',
82-
'functions': 'ignore',
83-
},
84-
],
8548
};
8649

8750
/**
@@ -92,10 +55,7 @@ const rules = {
9255
function buildTSOverride({files, tsconfig}) {
9356
return {
9457
'files': files,
95-
'plugins': [
96-
'@typescript-eslint/eslint-plugin',
97-
'jsdoc',
98-
],
58+
'plugins': ['@typescript-eslint/eslint-plugin', 'jsdoc'],
9959
'settings': {
10060
'jsdoc': {
10161
'mode': 'typescript',
@@ -111,6 +71,7 @@ function buildTSOverride({files, tsconfig}) {
11171
'extends': [
11272
'plugin:@typescript-eslint/recommended',
11373
'plugin:jsdoc/recommended',
74+
'prettier', // Extend again so that these rules are applied last
11475
],
11576
'rules': {
11677
// TS rules
@@ -124,14 +85,12 @@ function buildTSOverride({files, tsconfig}) {
12485
// Use TS-specific rule.
12586
'no-unused-vars': ['off'],
12687
'@typescript-eslint/no-unused-vars': [
127-
'warn',
88+
'error',
12889
{
12990
'argsIgnorePattern': '^_',
13091
'varsIgnorePattern': '^_',
13192
},
13293
],
133-
'func-call-spacing': ['off'],
134-
'@typescript-eslint/func-call-spacing': ['warn'],
13594
// Temporarily disable. 23 problems.
13695
'@typescript-eslint/no-explicit-any': ['off'],
13796
// Temporarily disable. 128 problems.
@@ -162,9 +121,19 @@ function buildTSOverride({files, tsconfig}) {
162121
'publicOnly': true,
163122
},
164123
],
165-
// Disable because of false alarms with Closure-supported tags.
166-
// Re-enable after Closure is removed.
167-
'jsdoc/check-tag-names': ['off'],
124+
'jsdoc/check-tag-names': [
125+
'error',
126+
{
127+
'definedTags': [
128+
'sealed',
129+
'typeParam',
130+
'remarks',
131+
'define',
132+
'nocollapse',
133+
'suppress',
134+
],
135+
},
136+
],
168137
// Re-enable after Closure is removed. There shouldn't even be
169138
// types in the TsDoc.
170139
// These are "types" because of Closure's @suppress {warningName}
@@ -176,7 +145,9 @@ function buildTSOverride({files, tsconfig}) {
176145
'jsdoc/check-param-names': ['off', {'checkDestructured': false}],
177146
// Allow any text in the license tag. Other checks are not relevant.
178147
'jsdoc/check-values': ['off'],
179-
'jsdoc/newline-after-description': ['error'],
148+
// Ensure there is a blank line between the body and any @tags,
149+
// as required by the tsdoc spec (see #6353).
150+
'jsdoc/tag-lines': ['error', 'any', {'startLines': 1}],
180151
},
181152
};
182153
}
@@ -193,21 +164,15 @@ const eslintJSON = {
193164
'goog': true,
194165
'exports': true,
195166
},
196-
'extends': [
197-
'eslint:recommended',
198-
'google',
199-
],
167+
'extends': ['eslint:recommended', 'google', 'prettier'],
200168
// TypeScript-specific config. Uses above rules plus these.
201169
'overrides': [
202170
buildTSOverride({
203-
files: ['./core/**/*.ts', './core/**/*.tsx'],
171+
files: ['./**/*.ts', './**/*.tsx'],
204172
tsconfig: './tsconfig.json',
205173
}),
206174
buildTSOverride({
207-
files: [
208-
'./tests/typescript/**/*.ts',
209-
'./tests/typescript/**/*.tsx',
210-
],
175+
files: ['./tests/typescript/**/*.ts', './tests/typescript/**/*.tsx'],
211176
tsconfig: './tests/typescript/tsconfig.json',
212177
}),
213178
{

.github/CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Contributing to Blockly
22

33
Want to contribute? Great!
4+
45
- First, read this page (including the small print at the end).
56
- Second, please make pull requests against develop, not master. If your patch
67
needs to go into master immediately, include a note in your PR.
78

89
For more information on style guide and other details, head over to the [Blockly Developers site](https://developers.google.com/blockly/guides/modify/contributing).
910

1011
### Before you contribute
12+
1113
Before we can use your code, you must sign the
1214
[Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual)
1315
(CLA), which you can do online. The CLA is necessary mainly because you own the
@@ -19,22 +21,26 @@ the CLA until after you've submitted your code for review and a member has
1921
approved it, but you must do it before we can put your code into our codebase.
2022

2123
### Larger changes
24+
2225
Before you start working on a larger contribution, you should get in touch with
2326
us first through the issue tracker with your idea so that we can help out and
2427
possibly guide you. Coordinating up front makes it much easier to avoid
2528
frustration later on.
2629

2730
### Code reviews
31+
2832
All submissions, including submissions by project members, require review. We
2933
use Github pull requests for this purpose.
3034

3135
### Browser compatibility
32-
We care strongly about making Blockly work on all browsers. As of 2022 we
33-
support Edge, Chrome, Safari, and Firefox. We will not accept changes that only
34-
work on a subset of those browsers. You can check [caniuse.com](https://caniuse.com/)
36+
37+
We care strongly about making Blockly work on all browsers. As of 2022 we
38+
support Edge, Chrome, Safari, and Firefox. We will not accept changes that only
39+
work on a subset of those browsers. You can check [caniuse.com](https://caniuse.com/)
3540
for compatibility information.
3641

3742
### The small print
43+
3844
Contributions made by corporations are covered by a different agreement than
3945
the one above, the
4046
[Software Grant and Corporate Contributor License Agreement](https://cla.developers.google.com/about/google-corporate).

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ body:
3030
value: |
3131
1.
3232
2.
33-
3.
33+
3.
3434
- type: textarea
3535
id: stack-trace
3636
attributes:

.github/ISSUE_TEMPLATE/documentation.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Documentation
32
description: Report an issue with our documentation
43
labels: 'issue: docs, issue: triage'

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Feature request
32
description: Suggest an idea for this project
43
labels: 'issue: feature request, issue: triage'

.github/dependabot.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
10-
target-branch: "develop"
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
10+
target-branch: 'develop'
1111
schedule:
12-
interval: "weekly"
12+
interval: 'weekly'
1313
commit-message:
14-
prefix: "chore(deps)"
14+
prefix: 'chore(deps)'
1515
labels:
16-
- "PR: chore"
17-
- "PR: dependencies"
18-
- package-ecosystem: "github-actions" # See documentation for possible values
19-
directory: "/"
20-
target-branch: "develop"
16+
- 'PR: chore'
17+
- 'PR: dependencies'
18+
- package-ecosystem: 'github-actions' # See documentation for possible values
19+
directory: '/'
20+
target-branch: 'develop'
2121
schedule:
22-
interval: "weekly"
22+
interval: 'weekly'
2323
commit-message:
24-
prefix: "chore(deps)"
24+
prefix: 'chore(deps)'
2525
labels:
26-
- "PR: chore"
27-
- "PR: dependencies"
26+
- 'PR: chore'
27+
- 'PR: dependencies'

.github/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ changelog:
44
exclude:
55
labels:
66
- ignore-for-release
7-
- "PR: chore"
7+
- 'PR: chore'
88
authors:
99
- dependabot
1010
categories:
@@ -16,17 +16,17 @@ changelog:
1616
- deprecation
1717
- title: New features ✨
1818
labels:
19-
- "PR: feature"
19+
- 'PR: feature'
2020
- title: Bug fixes 🐛
2121
labels:
22-
- "PR: fix"
22+
- 'PR: fix'
2323
- title: Cleanup ♻️
2424
labels:
25-
- "PR: docs"
26-
- "PR: refactor"
25+
- 'PR: docs'
26+
- 'PR: refactor'
2727
- title: Reverted changes ⎌
2828
labels:
29-
- "PR: revert"
29+
- 'PR: revert'
3030
- title: Other changes
3131
labels:
32-
- "*"
32+
- '*'

.github/workflows/appengine_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
path: _deploy/
4343

4444
- name: Deploy to App Engine
45-
uses: google-github-actions/deploy-appengine@v1.2.2
45+
uses: google-github-actions/deploy-appengine@v1.2.7
4646
# For parameters see:
4747
# https://github.com/google-github-actions/deploy-appengine#inputs
4848
with:

0 commit comments

Comments
 (0)