Skip to content

Commit c685ba9

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into fill-slice-by
2 parents 0e3c0f2 + 013a23b commit c685ba9

5,340 files changed

Lines changed: 188341 additions & 15336 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.

.commitlintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var config = require( './etc/commitlint/.commitlintrc.js' ); // eslint-disable-line node/no-unpublished-require
23+
var config = require( './etc/commitlint/.commitlintrc.js' ); // eslint-disable-line n/no-unpublished-require
2424

2525

2626
// EXPORTS //

.github/workflows/lint_changed_files.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,43 @@ jobs:
341341
make lint-typescript-declarations-files FILES="${files}"
342342
fi
343343
344+
# Lint TypeScript declarations test files:
345+
- name: 'Lint TypeScript declarations test files'
346+
if: success() || failure()
347+
run: |
348+
# Determine root directory:
349+
root=$(git rev-parse --show-toplevel)
350+
351+
# Define the path to ESLint configuration file for linting TypeScript tests:
352+
eslint_typescript_tests_conf="${root}/etc/eslint/.eslintrc.typescript.tests.js"
353+
354+
# Get changed files:
355+
changed_files=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n')
356+
357+
# Get directly changed `test.ts` files:
358+
files=$(echo "${changed_files}" | grep '/docs/types/test\.ts$' | tr '\n' ' ' | sed 's/ $//')
359+
360+
# Also get `test.ts` files corresponding to changed `index.d.ts` files...
361+
declaration_files=$(echo "${changed_files}" | grep '/docs/types/.*\.d\.ts$' | sed 's/ $//')
362+
if [[ -n "${declaration_files}" ]]; then
363+
while IFS= read -r decl_file; do
364+
# Only process index.d.ts files (skip other .d.ts files)
365+
if [[ "${decl_file}" == */index.d.ts ]]; then
366+
# Replace `index.d.ts` with `test.ts` to get the test file path:
367+
test_file="${decl_file%index.d.ts}test.ts"
368+
369+
# Check if the test file exists and isn't already in the list:
370+
if [[ -f "${test_file}" ]] && [[ ! " ${files} " =~ [[:space:]]${test_file}[[:space:]] ]]; then
371+
files="${files} ${test_file}"
372+
fi
373+
fi
374+
done <<< "${declaration_files}"
375+
fi
376+
377+
if [[ -n "${files}" ]]; then
378+
make lint-typescript-declarations-files FILES="${files}" ESLINT_TS_CONF="${eslint_typescript_tests_conf}"
379+
fi
380+
344381
# Lint license headers:
345382
- name: 'Lint license headers'
346383
if: success() || failure()

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ package.json.copy
2525
###############
2626
build/
2727
downloads/
28+
plans/
2829
reports/
2930
tmp/
3031

@@ -175,6 +176,10 @@ acs-*.bib
175176
*.ind
176177
*.ist
177178

179+
# Git #
180+
#######
181+
.worktrees
182+
178183
# Visual Studio #
179184
#################
180185
.vscode/

docs/editors/sublime-text/scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// Generate license header snippets:

docs/editors/sublime-text/scripts/completions/awk.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

docs/editors/sublime-text/scripts/completions/bash.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

docs/editors/sublime-text/scripts/completions/javascript.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

docs/editors/sublime-text/scripts/completions/julia.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

docs/editors/sublime-text/scripts/completions/python.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

docs/editors/sublime-text/scripts/completions/r.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
* limitations under the License.
1919
*/
2020

21-
/* eslint-disable node/shebang */
22-
2321
'use strict';
2422

2523
// MODULES //

0 commit comments

Comments
 (0)