From 4ef26a9e893d473fc0c8d5479856c25e1d2b566c Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Sun, 28 Jan 2024 16:33:31 -0800 Subject: [PATCH] chore: Fix typos in schema definitions --- packages/eslint-plugin/src/rules/class-methods-use-this.ts | 2 +- .../eslint-plugin/src/rules/explicit-module-boundary-types.ts | 2 +- .../tests/schema-snapshots/class-methods-use-this.shot | 4 ++-- .../schema-snapshots/explicit-module-boundary-types.shot | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/eslint-plugin/src/rules/class-methods-use-this.ts b/packages/eslint-plugin/src/rules/class-methods-use-this.ts index 6940f11a7ae8..42991c40f499 100644 --- a/packages/eslint-plugin/src/rules/class-methods-use-this.ts +++ b/packages/eslint-plugin/src/rules/class-methods-use-this.ts @@ -50,7 +50,7 @@ export default createRule({ }, ignoreOverrideMethods: { type: 'boolean', - description: 'Ingore members marked with the `override` modifier', + description: 'Ignore members marked with the `override` modifier', }, ignoreClassesThatImplementAnInterface: { oneOf: [ diff --git a/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts b/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts index b0bcb7d442f8..092179f8187d 100644 --- a/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts +++ b/packages/eslint-plugin/src/rules/explicit-module-boundary-types.ts @@ -81,7 +81,7 @@ export default createRule({ }, allowTypedFunctionExpressions: { description: - 'Whether to ignore type annotations on the variable of a function expresion.', + 'Whether to ignore type annotations on the variable of a function expression.', type: 'boolean', }, }, diff --git a/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot b/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot index 97e773bac407..ccecd0a0f6a9 100644 --- a/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot +++ b/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot @@ -35,7 +35,7 @@ exports[`Rule schemas should be convertible to TS types for documentation purpos ] }, "ignoreOverrideMethods": { - "description": "Ingore members marked with the \`override\` modifier", + "description": "Ignore members marked with the \`override\` modifier", "type": "boolean" } }, @@ -60,7 +60,7 @@ type Options = [ | boolean /** Ignore only the public fields of classes that implement an interface */ | 'public-fields'; - /** Ingore members marked with the \`override\` modifier */ + /** Ignore members marked with the \`override\` modifier */ ignoreOverrideMethods?: boolean; }, ]; diff --git a/packages/eslint-plugin/tests/schema-snapshots/explicit-module-boundary-types.shot b/packages/eslint-plugin/tests/schema-snapshots/explicit-module-boundary-types.shot index cd004e5a22bf..aa3494b2c238 100644 --- a/packages/eslint-plugin/tests/schema-snapshots/explicit-module-boundary-types.shot +++ b/packages/eslint-plugin/tests/schema-snapshots/explicit-module-boundary-types.shot @@ -28,7 +28,7 @@ exports[`Rule schemas should be convertible to TS types for documentation purpos "type": "boolean" }, "allowTypedFunctionExpressions": { - "description": "Whether to ignore type annotations on the variable of a function expresion.", + "description": "Whether to ignore type annotations on the variable of a function expression.", "type": "boolean" } }, @@ -53,7 +53,7 @@ type Options = [ * You must still type the parameters of the function. */ allowHigherOrderFunctions?: boolean; - /** Whether to ignore type annotations on the variable of a function expresion. */ + /** Whether to ignore type annotations on the variable of a function expression. */ allowTypedFunctionExpressions?: boolean; /** An array of function/method names that will not have their arguments or return values checked. */ allowedNames?: string[];