From 944a69d8147d11d91282860cf8b706b2baa27b6f Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Mon, 25 Sep 2023 13:37:58 -0700 Subject: [PATCH] add async prop to asyn linter rule (#43274) Co-authored-by: Grace Park --- src/content-linter/lib/linting-rules/image-alt-text-length.js | 1 + src/content-linter/lib/linting-rules/yaml-scheduled-jobs.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content-linter/lib/linting-rules/image-alt-text-length.js b/src/content-linter/lib/linting-rules/image-alt-text-length.js index bc40c3823535..b5689203c79b 100644 --- a/src/content-linter/lib/linting-rules/image-alt-text-length.js +++ b/src/content-linter/lib/linting-rules/image-alt-text-length.js @@ -8,6 +8,7 @@ export const incorrectAltTextLength = { names: ['GHD003', 'incorrect-alt-text-length'], description: 'Images alternate text should be between 40-150 characters', tags: ['accessibility', 'images'], + asynchronous: true, information: new URL('https://github.com/github/docs/blob/main/src/content-linter/README.md'), function: function GHD004(params, onError) { forEachInlineChild(params, 'image', async function forToken(token) { diff --git a/src/content-linter/lib/linting-rules/yaml-scheduled-jobs.js b/src/content-linter/lib/linting-rules/yaml-scheduled-jobs.js index f76bbac716a0..e3793d2108fc 100644 --- a/src/content-linter/lib/linting-rules/yaml-scheduled-jobs.js +++ b/src/content-linter/lib/linting-rules/yaml-scheduled-jobs.js @@ -11,7 +11,6 @@ export const yamlScheduledJobs = { description: 'YAML snippets that include scheduled workflows must not run on the hour and must be unique', tags: ['actions'], - severity: 'error', asynchronous: true, information: new URL('https://github.com/github/docs/blob/main/src/content-linter/README.md'), function: function GHD009(params, onError) {