From 00b3dd2fd99cdc25eb6e1e201e29cc2f377296f3 Mon Sep 17 00:00:00 2001 From: James Henry Date: Fri, 20 Sep 2024 17:31:10 +0400 Subject: [PATCH] fix(linter): do not generate docs.recommended property (#28009) --- .../workspace-rule/__snapshots__/workspace-rule.spec.ts.snap | 3 --- .../src/generators/workspace-rule/files/__name__.ts__tmpl__ | 1 - .../__snapshots__/update-typescript-eslint.spec.ts.snap | 1 - .../migrations/update-17-1-0/update-typescript-eslint.spec.ts | 1 - 4 files changed, 6 deletions(-) diff --git a/packages/eslint/src/generators/workspace-rule/__snapshots__/workspace-rule.spec.ts.snap b/packages/eslint/src/generators/workspace-rule/__snapshots__/workspace-rule.spec.ts.snap index 4bbdf4096bd63..d29ad3aabaa28 100644 --- a/packages/eslint/src/generators/workspace-rule/__snapshots__/workspace-rule.spec.ts.snap +++ b/packages/eslint/src/generators/workspace-rule/__snapshots__/workspace-rule.spec.ts.snap @@ -28,7 +28,6 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({ type: 'problem', docs: { description: \`\`, - recommended: 'recommended', }, schema: [], messages: {}, @@ -84,7 +83,6 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({ type: 'problem', docs: { description: \`\`, - recommended: 'recommended', }, schema: [], messages: {}, @@ -140,7 +138,6 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({ type: 'problem', docs: { description: \`\`, - recommended: 'recommended', }, schema: [], messages: {}, diff --git a/packages/eslint/src/generators/workspace-rule/files/__name__.ts__tmpl__ b/packages/eslint/src/generators/workspace-rule/files/__name__.ts__tmpl__ index d795c64ac6956..0977b518a9b4b 100644 --- a/packages/eslint/src/generators/workspace-rule/files/__name__.ts__tmpl__ +++ b/packages/eslint/src/generators/workspace-rule/files/__name__.ts__tmpl__ @@ -25,7 +25,6 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({ type: 'problem', docs: { description: ``, - recommended: 'recommended', }, schema: [], messages: {}, diff --git a/packages/eslint/src/migrations/update-17-1-0/__snapshots__/update-typescript-eslint.spec.ts.snap b/packages/eslint/src/migrations/update-17-1-0/__snapshots__/update-typescript-eslint.spec.ts.snap index 6ec2ac1b08201..43e3a3b39d2d3 100644 --- a/packages/eslint/src/migrations/update-17-1-0/__snapshots__/update-typescript-eslint.spec.ts.snap +++ b/packages/eslint/src/migrations/update-17-1-0/__snapshots__/update-typescript-eslint.spec.ts.snap @@ -43,7 +43,6 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({ type: 'problem', docs: { description: \`\`, - recommended: 'recommended', }, schema: [], messages: {}, diff --git a/packages/eslint/src/migrations/update-17-1-0/update-typescript-eslint.spec.ts b/packages/eslint/src/migrations/update-17-1-0/update-typescript-eslint.spec.ts index 985e1bca74745..7e02a51fa25f5 100644 --- a/packages/eslint/src/migrations/update-17-1-0/update-typescript-eslint.spec.ts +++ b/packages/eslint/src/migrations/update-17-1-0/update-typescript-eslint.spec.ts @@ -84,7 +84,6 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({ type: 'problem', docs: { description: \`\`, - recommended: 'error', }, schema: [], messages: {},