-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Replace script type strings with constants #679
Conversation
ACK |
@@ -40,6 +40,7 @@ | |||
"coverage": "nyc --check-coverage --branches 90 --functions 90 mocha", | |||
"integration": "mocha test/integration/", | |||
"standard": "standard", | |||
"standard-fixer": "standard --fix", |
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.
this is unnecessary IMHO... it should rarely be needed...
var OP_INT_BASE = OPS.OP_RESERVED // OP_1 - 1 | ||
var scriptTypes = { |
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.
Can this be a constant too? (caps)
concept ACK, a few nits tho |
@afk11 could you do your changes from branches within this repository? |
Needs rebase (though I'd wait on #682) |
Merged into non-master branch so I can rebase it |
I find it's good practice to avoid repetitively using a string values throughout code.
Also added an npm script to fix the code style:
npm run standard-fixer