-
Notifications
You must be signed in to change notification settings - Fork 122
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
throwing exception when registry is initialised with invalid conf #25 #28
throwing exception when registry is initialised with invalid conf #25 #28
Conversation
@@ -13,7 +13,7 @@ | |||
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()` | |||
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` | |||
"noempty" : true, // true: Prohibit use of empty blocks | |||
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment) | |||
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment) |
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.
uhm, what is this for?
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.
https://jslinterrors.com/do-not-use-new-for-side-effects
lint was not allowing me to write new oc.Registry(args); without assigning to a variable.
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't you assign a variable there?
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.
done.
Can you remove if(registry.err){
return console.log(registry.err);
} from the README too? Thanks! |
README done, looking if I can find a way not to change .jshintrc |
throwing exception when registry is initialised with invalid conf #25
yeah, looks good, thanks |
issue #25