-
Notifications
You must be signed in to change notification settings - Fork 213
Conversation
@@ -65,6 +65,14 @@ module.exports = neutrino => { | |||
}; | |||
}); | |||
|
|||
neutrino.config.module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't known for sure whether a linting rule has been added, so this needs to be wrapped in a conditional.
if (neutrino.config.rules.has('lint')) {
options: merge(options, { | ||
plugins: ['jest'] | ||
}) | ||
})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
@@ -65,6 +65,14 @@ module.exports = neutrino => { | |||
}; | |||
}); | |||
|
|||
neutrino.config.module | |||
.rule('lint') | |||
.loader('eslint', ({ options }) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I've established the pattern elsewhere, but I'm currently changing it. Could you move the merge here to the top level?
.loader('eslint', props => merge(props, {
@@ -19,6 +19,7 @@ | |||
"babel-plugin-transform-es2015-modules-commonjs": "^6.22.0", | |||
"babel-preset-jest": "^18.0.0", | |||
"deepmerge": "^1.3.2", | |||
"eslint-plugin-jest": "^19.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this plugin version support the version of Jest we are using here? Jest 19 was recently released but we can't yet switch to it because it's a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plugin only turns on/off some configs of ESLint, it only depends on ESlint package.
Check it's package.json for some details.
Please review
https://www.npmjs.com/package/eslint-plugin-jest