From 6be0d811fd7d28fe96a8632da4cd4e81cb517617 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Thu, 18 Jul 2019 10:03:39 +0800 Subject: [PATCH] docs(eslint-plugin): correct `no-magic-number` docs (#717) --- packages/eslint-plugin/docs/rules/no-magic-numbers.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/no-magic-numbers.md b/packages/eslint-plugin/docs/rules/no-magic-numbers.md index b5a1e92fd09..cf647833887 100644 --- a/packages/eslint-plugin/docs/rules/no-magic-numbers.md +++ b/packages/eslint-plugin/docs/rules/no-magic-numbers.md @@ -45,20 +45,20 @@ type SmallPrimes = 2 | 3 | 5 | 7 | 11; A boolean to specify if enums used in Typescript are considered okay. `false` by default. -Examples of **incorrect** code for the `{ "ignoreEnum": false }` option: +Examples of **incorrect** code for the `{ "ignoreEnums": false }` option: ```ts -/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnum": false }]*/ +/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": false }]*/ enum foo = { SECOND = 1000, } ``` -Examples of **correct** code for the `{ "ignoreEnum": true }` option: +Examples of **correct** code for the `{ "ignoreEnums": true }` option: ```ts -/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnum": true }]*/ +/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": true }]*/ enum foo = { SECOND = 1000,