-
Notifications
You must be signed in to change notification settings - Fork 236
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
Conversation
package.json
Outdated
@@ -47,5 +47,8 @@ | |||
}, | |||
"commitlint": { | |||
"extends": ["@commitlint/config-conventional"] | |||
}, | |||
"dependencies": { | |||
"eslint-plugin-es5": "^1.2.0" |
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.
dev dependency
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.
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'], |
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 would prefer https://github.com/mysticatea/eslint-plugin-node and no-unsupported-features
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'll take a look at this and push up a new commit - thank you for the review. 🙂
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.
See inline comments
236d098
to
255e1b6
Compare
@SimenB ready for another look |
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.
Thanks!
@@ -11,6 +11,9 @@ | |||
"url": "jkimbo.com" | |||
}, | |||
"files": ["docs/", "rules/", "processors/", "index.js"], | |||
"engines": { | |||
"node": ">= 6" |
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.
Will this prevent users from installing the eslint-plugin-jest package on Node 4?
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.
oh oops, that was supposed to be 4. I just copied Jest's. Nice catch!
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.
Related:
Enabling this rule should help prevent object destructuring errors on Travis CI for Node 4.