diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 59500adff..a62936ccf 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -155,7 +155,6 @@ module.exports = { "@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }], // These on-by-default rules don't work well for this repo and we like them off. - "no-case-declarations": "off", "no-constant-condition": "off", "no-inner-declarations": "off", "no-mixed-spaces-and-tabs": "off", diff --git a/src/shared/options/augmentOptionsWithExcludes.ts b/src/shared/options/augmentOptionsWithExcludes.ts index 4f42fa138..e9a415b66 100644 --- a/src/shared/options/augmentOptionsWithExcludes.ts +++ b/src/shared/options/augmentOptionsWithExcludes.ts @@ -71,7 +71,7 @@ export async function augmentOptionsWithExcludes( base, ...getExclusions(options, base), }; - case "prompt": + case "prompt": { const exclusionsNotEnabled = new Set( filterPromptCancel( await prompts.multiselect({ @@ -99,6 +99,7 @@ export async function augmentOptionsWithExcludes( ), ), }; + } } } diff --git a/src/shared/options/ensureRepositoryExists.ts b/src/shared/options/ensureRepositoryExists.ts index 00644d10a..39a236585 100644 --- a/src/shared/options/ensureRepositoryExists.ts +++ b/src/shared/options/ensureRepositoryExists.ts @@ -66,7 +66,7 @@ export async function ensureRepositoryExists( }); return { github, repository }; - case "different": + case "different": { const newRepository = filterPromptCancel( await prompts.text({ message: `What would you like to call the repository?`, @@ -79,6 +79,7 @@ export async function ensureRepositoryExists( repository = newRepository; break; + } case "local": github = undefined; diff --git a/src/steps/writing/creation/createESLintRC.test.ts b/src/steps/writing/creation/createESLintRC.test.ts index 3a5c65b26..3fff69798 100644 --- a/src/steps/writing/creation/createESLintRC.test.ts +++ b/src/steps/writing/creation/createESLintRC.test.ts @@ -97,7 +97,6 @@ describe("createESLintRC", () => { "@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }], // These on-by-default rules don't work well for this repo and we like them off. - "no-case-declarations": "off", "no-constant-condition": "off", "no-inner-declarations": "off", "no-mixed-spaces-and-tabs": "off", @@ -238,7 +237,6 @@ describe("createESLintRC", () => { "@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }], // These on-by-default rules don't work well for this repo and we like them off. - "no-case-declarations": "off", "no-constant-condition": "off", "no-inner-declarations": "off", "no-mixed-spaces-and-tabs": "off", diff --git a/src/steps/writing/creation/createESLintRC.ts b/src/steps/writing/creation/createESLintRC.ts index 782e761d4..c96379fc7 100644 --- a/src/steps/writing/creation/createESLintRC.ts +++ b/src/steps/writing/creation/createESLintRC.ts @@ -189,7 +189,6 @@ module.exports = { "@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }], // These on-by-default rules don't work well for this repo and we like them off. - "no-case-declarations": "off", "no-constant-condition": "off", "no-inner-declarations": "off", "no-mixed-spaces-and-tabs": "off",