-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add goodparts to project #46
Conversation
…gin to get it working w/ atom otherwise
To be merged after #41 |
Current coverage is 100% (diff: 100%)@@ master #46 diff @@
===================================
Files 4 4
Lines 35 36 +1
Methods 8 8
Messages 0 0
Branches 5 5
===================================
+ Hits 35 36 +1
Misses 0 0
Partials 0 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.
Great work @eliasCodes with the rule just one minor change on he package.json
"lint": "node_modules/.bin/eslint .", | ||
"lint:fix": "node_modules/.bin/eslint . --fix", | ||
"lint": "node_modules/.bin/goodparts .", | ||
"lint:init": "ln -sf node_modules/goodparts/.eslintrc.js ./.eslintrc.js", |
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 how lin and lint fix are handy scripts to add but feel like lint:init should be done on the postinstall of the goodparts module. Strange that those goodparts goodtime guys would expect you to add this script to your package.json before installing to get the linting kicked off..
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.
😒
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/tape ./test/*.test.js", | ||
"codecov": "node_modules/.bin/codecov --token=${CODECOV_TOKEN}" | ||
"codecov": "node_modules/.bin/codecov --token=${CODECOV_TOKEN}", | ||
"postinstall": "npm run lint:init" |
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.
🔥
@@ -3,3 +3,4 @@ node_modules | |||
coverage | |||
npm-debug.log | |||
.eslintrc* | |||
config.env |
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.
strictly shouldn't be in this PR but will let it slide just this once ;)
Also change name back to abase and to version 1.0.0
Changes
lint:xxx
scripts to use goodparts binary instead of eslintlint:init
script to symlink the goodparts.eslintrc.js
into rooteslint
package in the atomlinter-eslint
package settings