From 70fefb5113f021c9f2fe15a3945c2c037a6ae1ae Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Thu, 18 Jul 2019 09:28:01 +0800 Subject: [PATCH] fix no-magic-number docs --- 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 b5a1e92fd092..cf647833887d 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,