Skip to content

Commit 0a8038d

Browse files
committed
Revert "Run the typechecker on scripts (#14069)"
This reverts commit 9ead6bf.
1 parent af36da6 commit 0a8038d

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

scripts/lint.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ set -o errexit -o pipefail
44

55
yarn run lint-markdown
66
yarn prettier --check .
7-
# shellcheck disable=SC2046 # Intended splitting of file names
8-
yarn tsc --project tsconfig.scripts.json --noEmit

scripts/lint/lint-markdown.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ const filesToLint = getMarkdownFiles(`../../content`);
257257
*
258258
* See: https://github.com/DavidAnson/markdownlint
259259
*/
260-
261-
// Lint the markdown files.
262-
const result = markdownlint.lint({
260+
const opts = {
263261
// The array of markdown files to lint.
264262
files: filesToLint.files,
265263
config: {
@@ -308,12 +306,11 @@ const result = markdownlint.lint({
308306
},
309307
customRules: [
310308
{
311-
parser: "markdownit",
312309
names: ["relref"],
313310
description: "Hugo relrefs are no longer supported. Use standard [Markdown](/links) instead",
314311
tags: ["hugo-relref"],
315312
function: (params, onError) => {
316-
params.parsers.markdownit.tokens
313+
params.tokens
317314
.filter(token => {
318315
return token.type === "inline";
319316
})
@@ -328,7 +325,10 @@ const result = markdownlint.lint({
328325
},
329326
},
330327
],
331-
});
328+
};
329+
330+
// Lint the markdown files.
331+
const result = markdownlint.lint(opts);
332332

333333
// Group the lint errors by file.
334334
const errors = groupLintErrorOutput(result);

scripts/search/check-urls.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ checkSearchURLs(process.argv[2] || "https://www.pulumi.com")
7676
});
7777

7878
// Exit non-zero when something goes wrong in the promise chain.
79-
process.on("unhandledRejection", (err: string) => {
80-
throw new Error(err);
79+
process.on("unhandledRejection", error => {
80+
throw new Error(error);
8181
});

tsconfig.scripts.json

-7
This file was deleted.

0 commit comments

Comments
 (0)