Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(lint): enable node/no-unsupported-features rule #66

Merged
merged 3 commits into from
Feb 11, 2018

Conversation

macklinu
Copy link
Collaborator

Related:

Enabling this rule should help prevent object destructuring errors on Travis CI for Node 4.

@macklinu macklinu mentioned this pull request Feb 10, 2018
4 tasks
package.json Outdated
@@ -47,5 +47,8 @@
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
},
"dependencies": {
"eslint-plugin-es5": "^1.2.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev dependency

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, good catch!

.eslintrc.js Outdated
@@ -8,7 +8,7 @@ module.exports = {
'plugin:eslint-plugin/recommended',
'prettier',
],
plugins: ['eslint-plugin', 'prettier'],
plugins: ['es5', 'eslint-plugin', 'prettier'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a look at this and push up a new commit - thank you for the review. 🙂

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments

@macklinu macklinu changed the title style(lint): enable es5/no-destructuring rule style(lint): enable node/no-unsupported-features rule Feb 11, 2018
@macklinu
Copy link
Collaborator Author

@SimenB ready for another look

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SimenB SimenB merged commit 18203aa into jest-community:master Feb 11, 2018
@macklinu macklinu deleted the lint/no-destructuring branch February 11, 2018 16:20
@@ -11,6 +11,9 @@
"url": "jkimbo.com"
},
"files": ["docs/", "rules/", "processors/", "index.js"],
"engines": {
"node": ">= 6"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this prevent users from installing the eslint-plugin-jest package on Node 4?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh oops, that was supposed to be 4. I just copied Jest's. Nice catch!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants