File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,9 @@ jobs:
395
395
pkg_json_version=$(node -pe "require('./package.json').version")
396
396
expected_version="${pkg_json_version}-sha-$(git rev-parse --short HEAD)"
397
397
yarn check-release-output ${expected_version}
398
+ - run :
399
+ name : Checking tooling scripts
400
+ command : yarn check-tools
398
401
399
402
# TODO(devversion): replace this with bazel tests that run Madge. This is
400
403
# cumbersome and doesn't guarantee no circular deps for other entry-points.
Original file line number Diff line number Diff line change 47
47
"integration-tests:view-engine" : " bazel test --test_tag_filters=view-engine-only --build_tests_only -- //integration/... -//integration/size-test/..." ,
48
48
"integration-tests:size-test" : " bazel test //integration/size-test/..." ,
49
49
"check-mdc-tests" : " ts-node --project scripts/tsconfig.json scripts/check-mdc-tests.ts" ,
50
- "check-mdc-exports" : " ts-node --project scripts/tsconfig.json scripts/check-mdc-exports.ts"
50
+ "check-mdc-exports" : " ts-node --project scripts/tsconfig.json scripts/check-mdc-exports.ts" ,
51
+ "check-tools" : " yarn tsc --project tools/tsconfig-ci.json"
51
52
},
52
53
"version" : " 11.2.0-next.0" ,
53
54
"dependencies" : {
Original file line number Diff line number Diff line change
1
+ // A lot of the scripts under `tools` are run manually, rather than on the CI. As such, it's easy
2
+ // to miss compilation errors in them. This config is used to verify the files on the CI. Note that
3
+ // the compiler options are somewhat loose, which is intentional in order to mimic the default
4
+ // options used by `ts-node` when running the scripts.
5
+ {
6
+ "include" : [" ./**/*.ts" ],
7
+ "exclude" : [" ./public_api_guard/**/*.ts" ],
8
+ "compilerOptions" : {
9
+ "outDir" : " ../dist/tools" ,
10
+ "lib" : [" es2015" ],
11
+ "skipLibCheck" : true ,
12
+ // Don't emit to the file system, because we only want to check for compilation errors.
13
+ "noEmit" : true
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ class NoUnescapedHtmlTagWalker extends Lint.RuleWalker {
51
51
// Whether an opening backtick has been found without a closing pair
52
52
let openBacktick = false ;
53
53
54
- for ( const char of fullText ) {
55
- if ( char === '`' ) {
54
+ for ( let i = 0 ; i < fullText . length ; i ++ ) {
55
+ if ( fullText [ i ] === '`' ) {
56
56
openBacktick = ! openBacktick ;
57
- } else if ( matches . test ( char ) && ! openBacktick ) {
57
+ } else if ( matches . test ( fullText [ i ] ) && ! openBacktick ) {
58
58
return false ;
59
59
}
60
60
}
You can’t perform that action at this time.
0 commit comments