Skip to content

Commit 5be2981

Browse files
authored
Merge pull request #41121 from github/repo-sync
Repo sync
2 parents 24a6d00 + 3755f4c commit 5be2981

File tree

76 files changed

+652
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+652
-239
lines changed

eslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export default [
9696
camelcase: 'off', // Many gh apis use underscores, 600+ uses
9797

9898
// Disabled rules to review
99-
'@typescript-eslint/ban-ts-comment': 'off', // 50+
10099
'github/array-foreach': 'off', // 250+
101100
'no-console': 'off', // 800+
102101
'@typescript-eslint/no-explicit-any': 'off', // 1000+

src/assets/scripts/validate-asset-images.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import path from 'path'
1717
import { program } from 'commander'
1818
import chalk from 'chalk'
1919
import cheerio from 'cheerio'
20-
// @ts-ignore see https://github.com/sindresorhus/file-type/issues/652
2120
import { fileTypeFromFile } from 'file-type'
2221
import walk from 'walk-sync'
2322
import isSVG from 'is-svg'

src/content-linter/lib/helpers/get-rules.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { customConfig } from '@/content-linter/style/github-docs'
44
import type { Rule } from '@/content-linter/types'
55

66
// Import markdownlint rules - external library without TypeScript declarations
7-
// @ts-ignore - markdownlint doesn't provide TypeScript declarations
87
import markdownlintRules from '../../../../node_modules/markdownlint/lib/rules'
98

109
export const customRules: Rule[] = gitHubDocsMarkdownlint.rules

src/content-linter/lib/helpers/print-annotations.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
export function printAnnotationResults(
99
// Using 'any' type as results structure is dynamic and comes from various linting tools with different formats
1010
results: any,
11-
{ skippableRules = [], skippableFlawProperties = [] } = {},
11+
{
12+
skippableRules = [],
13+
skippableFlawProperties = [],
14+
}: { skippableRules?: string[]; skippableFlawProperties?: string[] } = {},
1215
) {
1316
for (const [file, flaws] of Object.entries(results)) {
1417
// Using 'any' type for flaws as they have varying structures depending on the linting rule

src/content-linter/lib/helpers/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore - markdownlint-rule-helpers doesn't provide TypeScript declarations
21
import { addError, filterTokens } from 'markdownlint-rule-helpers'
32
import matter from '@gr2m/gray-matter'
43

src/content-linter/lib/linting-rules/code-annotation-comment-spacing.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore - markdownlint-rule-helpers doesn't provide TypeScript declarations
21
import { addError, filterTokens } from 'markdownlint-rule-helpers'
32

43
import type { RuleParams, RuleErrorCallback, MarkdownToken } from '@/content-linter/types'

src/content-linter/lib/linting-rules/code-annotations.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore - markdownlint-rule-helpers doesn't provide TypeScript declarations
21
import { addError, filterTokens } from 'markdownlint-rule-helpers'
32

43
import { getFrontmatter } from '@/content-linter/lib/helpers/utils'

src/content-linter/lib/linting-rules/ctas-schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore - markdownlint-rule-helpers doesn't have TypeScript declarations
21
import { addError } from 'markdownlint-rule-helpers'
32
import Ajv from 'ajv'
43

src/content-linter/lib/linting-rules/early-access-references.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore - markdownlint-rule-helpers doesn't provide TypeScript declarations
21
import { addError } from 'markdownlint-rule-helpers'
32
import yaml from 'js-yaml'
43

src/content-linter/lib/linting-rules/expired-content.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-ignore - markdownlint-rule-helpers doesn't provide TypeScript declarations
21
import { addError, newLineRe } from 'markdownlint-rule-helpers'
32

43
import type { RuleParams, RuleErrorCallback, MarkdownToken, Rule } from '@/content-linter/types'

0 commit comments

Comments
 (0)