From 6837beff63479c4ee44c0e59605047a457fc7ee1 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Fri, 18 Nov 2016 02:27:08 +0100 Subject: [PATCH] Fix typo in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 42f0a5ef..6fe38ba7 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Then configure the rules you want to use under the rules section. "promise/no-native": "off", "promise/no-nesting": "warn", "promise/no-promise-in-callback": "warn", - "promise/no-callback-in-promise: "warn", + "promise/no-callback-in-promise": "warn", "promise/avoid-new": "warn" } } @@ -108,10 +108,10 @@ You can pass an `{ allowThen: true }` as an option to this rule You can pass a `{ terminationMethod: 'done' }` as an option to this rule to require `done()` instead of `catch()` at the end of the promise chain. This is useful for many non-standard Promise implementations. - + You can also pass an array of methods such as `{ terminationMethod: ['catch', 'asCallback', 'finally'] }`. - + This will allow any of ```js Promise.resolve(1).then(() => { throw new Error('oops') }).catch(logerror)