File tree 4 files changed +8
-17
lines changed
4 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,3 @@ set -o errexit -o pipefail
4
4
5
5
yarn run lint-markdown
6
6
yarn prettier --check .
7
- # shellcheck disable=SC2046 # Intended splitting of file names
8
- yarn tsc --project tsconfig.scripts.json --noEmit
Original file line number Diff line number Diff line change @@ -257,9 +257,7 @@ const filesToLint = getMarkdownFiles(`../../content`);
257
257
*
258
258
* See: https://github.com/DavidAnson/markdownlint
259
259
*/
260
-
261
- // Lint the markdown files.
262
- const result = markdownlint . lint ( {
260
+ const opts = {
263
261
// The array of markdown files to lint.
264
262
files : filesToLint . files ,
265
263
config : {
@@ -308,12 +306,11 @@ const result = markdownlint.lint({
308
306
} ,
309
307
customRules : [
310
308
{
311
- parser : "markdownit" ,
312
309
names : [ "relref" ] ,
313
310
description : "Hugo relrefs are no longer supported. Use standard [Markdown](/links) instead" ,
314
311
tags : [ "hugo-relref" ] ,
315
312
function : ( params , onError ) => {
316
- params . parsers . markdownit . tokens
313
+ params . tokens
317
314
. filter ( token => {
318
315
return token . type === "inline" ;
319
316
} )
@@ -328,7 +325,10 @@ const result = markdownlint.lint({
328
325
} ,
329
326
} ,
330
327
] ,
331
- } ) ;
328
+ } ;
329
+
330
+ // Lint the markdown files.
331
+ const result = markdownlint . lint ( opts ) ;
332
332
333
333
// Group the lint errors by file.
334
334
const errors = groupLintErrorOutput ( result ) ;
Original file line number Diff line number Diff line change @@ -76,6 +76,6 @@ checkSearchURLs(process.argv[2] || "https://www.pulumi.com")
76
76
} ) ;
77
77
78
78
// 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 ) ;
81
81
} ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments