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

Add goodparts to project #46

Merged
merged 10 commits into from
Sep 28, 2016
Merged

Add goodparts to project #46

merged 10 commits into from
Sep 28, 2016

Conversation

eliasmalik
Copy link
Contributor

@eliasmalik eliasmalik commented Sep 28, 2016

Changes

  • Add goodparts as a dev dependency and remove eslint
  • Change lint:xxx scripts to use goodparts binary instead of eslint
  • Linter errors should be fixed now
  • Hack to get goodparts working in atom:
    • Add lint:init script to symlink the goodparts .eslintrc.js into root
    • NOTE: Must be using the global eslint package in the atom linter-eslint package settings

@samhstn
Copy link
Member

samhstn commented Sep 28, 2016

To be merged after #41

@samhstn samhstn assigned jrans and unassigned samhstn Sep 28, 2016
@codecov-io
Copy link

codecov-io commented Sep 28, 2016

Current coverage is 100% (diff: 100%)

Merging #46 into master will not change coverage

@@           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          

Powered by Codecov. Last update c3f36ec...2098399

@eliasmalik eliasmalik mentioned this pull request Sep 28, 2016
@eliasmalik eliasmalik changed the title [WIP] Add goodparts to project Add goodparts to project Sep 28, 2016
@eliasmalik
Copy link
Contributor Author

eliasmalik commented Sep 28, 2016

@jrans, @nelsonic Have a look!

Copy link
Member

@jrans jrans left a 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",
Copy link
Member

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..

Copy link
Contributor Author

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

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

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
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.

5 participants