diff --git a/build/.eslintrc.yml b/build/.eslintrc.yml deleted file mode 100644 index 4fd6856d09..0000000000 --- a/build/.eslintrc.yml +++ /dev/null @@ -1,2 +0,0 @@ -rules: - '@typescript-eslint/naming-convention': off diff --git a/plugins/a11y/rate-limit/src/index.ts b/plugins/a11y/rate-limit/src/index.ts index ba63843dad..969eeff296 100644 --- a/plugins/a11y/rate-limit/src/index.ts +++ b/plugins/a11y/rate-limit/src/index.ts @@ -66,7 +66,8 @@ export function apply(ctx: Context) { let isUsage = true for (const { name, notUsage } of Object.values(command._options)) { - if (name in options && notUsage) isUsage = false + // --help is not a usage (#772) + if (name in options && (notUsage || name === 'help')) isUsage = false } // check usage