-
Notifications
You must be signed in to change notification settings - Fork 26
Reformat with prettier and more eslint rules included #1695
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
Conversation
This include == should be === More usages let/const
| function parseObject(obj, propertiesToSkip, path) { | ||
| if (path == undefined) path = ""; | ||
| if (path === undefined) path = ""; |
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.
should be comparing to == null rather than === undefined I would think?
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.
We are using the "smart" mode, and it seems to suggest ===.
@PhilBastian is the "smart" mode the wrong setting?
| '<div class="license-warning"><strong>Non-production development license expiring</strong><div>Your non-production development license will expire soon. To continue using the Particular Service Platform you\'ll need to extend your license.</div><a href="http://particular.net/extend-your-trial?p=servicepulse" class="btn btn-license-warning"><i class="fa fa-external-link-alt"></i> Extend your license</a><a href="#/configuration" class="btn btn-license-warning-light">View license details</a></div>'; | ||
|
|
||
| export var license = reactive({ | ||
| export let license = reactive({ |
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.
should be const
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.
We reassign license later on.
Maybe we should not do that!
|
@PhilBastian I have reverted the svg changes and added prettier ignore to it |
d114325 to
47f85c6
Compare
So I did a complete reformat again of the whole code, not many changes from it.
I fixed all the eslint rules that were set as warnings, eg prefer-const, triple equality.
Finally I enabled a few more eslint rules to do with imports.
So lots of files changed but mostly just code style updated.