Browse Source

Fixing typo in docs

v5.0.0-beta
Eli Perelman 8 years ago
parent
commit
0ad71379ea
  1. 2
      docs/presets/neutrino-lint-base/README.md
  2. 18
      docs/presets/neutrino-preset-airbnb-base/README.md

2
docs/presets/neutrino-lint-base/README.md

@ -140,7 +140,7 @@ const merge = require('deepmerge');
module.exports = neutrino => { module.exports = neutrino => {
lint(neutrino); lint(neutrino);
neutrino.config neutrino.config.module
.rule('lint') .rule('lint')
.loader('eslint', props => merge(props, { .loader('eslint', props => merge(props, {
options: { options: {

18
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'); const merge = require('deepmerge');
module.exports = neutrino => { module.exports = neutrino => {
neutrino.config neutrino.config.module
.rule('lint') .rule('lint')
.loader('eslint', ({ options }) => { .loader('eslint', props => merge(props, {
return { options: {
options: merge(options, { rules: {
rules: { semi: 'off'
semi: 'off' }
} }
}) }));
};
});
}; };
``` ```

Loading…
Cancel
Save