Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

add eslint-jest-plugin #48

Merged
merged 2 commits into from
Feb 24, 2017
Merged

Conversation

kebot
Copy link
Contributor

@kebot kebot commented Feb 24, 2017

@@ -65,6 +65,14 @@ module.exports = neutrino => {
};
});

neutrino.config.module
Copy link
Member

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']
})
}))
Copy link
Member

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 }) => ({
Copy link
Member

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",
Copy link
Member

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.

Copy link
Contributor Author

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.

@eliperelman eliperelman merged commit a2f671b into neutrinojs:master Feb 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants