From 0ad71379eae0b17d5e0f69885a6849059a4b2ffe Mon Sep 17 00:00:00 2001 From: Eli Perelman Date: Sun, 26 Feb 2017 16:27:32 -0600 Subject: [PATCH] Fixing typo in docs --- docs/presets/neutrino-lint-base/README.md | 2 +- .../neutrino-preset-airbnb-base/README.md | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/presets/neutrino-lint-base/README.md b/docs/presets/neutrino-lint-base/README.md index dd714fa..a823920 100644 --- a/docs/presets/neutrino-lint-base/README.md +++ b/docs/presets/neutrino-lint-base/README.md @@ -140,7 +140,7 @@ const merge = require('deepmerge'); module.exports = neutrino => { lint(neutrino); - neutrino.config + neutrino.config.module .rule('lint') .loader('eslint', props => merge(props, { options: { diff --git a/docs/presets/neutrino-preset-airbnb-base/README.md b/docs/presets/neutrino-preset-airbnb-base/README.md index 9e256a3..8ede4f8 100644 --- a/docs/presets/neutrino-preset-airbnb-base/README.md +++ b/docs/presets/neutrino-preset-airbnb-base/README.md @@ -185,17 +185,15 @@ _Example: Turn off semicolons from being required as defined by the Airbnb rules const merge = require('deepmerge'); module.exports = neutrino => { - neutrino.config + neutrino.config.module .rule('lint') - .loader('eslint', ({ options }) => { - return { - options: merge(options, { - rules: { - semi: 'off' - } - }) - }; - }); + .loader('eslint', props => merge(props, { + options: { + rules: { + semi: 'off' + } + } + })); }; ```