-
Notifications
You must be signed in to change notification settings - Fork 141
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
Code linting #154
Code linting #154
Conversation
Fixes #151 |
@@ -1,80 +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.
Removed because we don't use jshint anymore.
@@ -1,32 +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.
Removed because we don't use jshint anymore.
@@ -4,53 +4,96 @@ import layout from 'ember-tooltips/templates/components/tether-popover'; | |||
|
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 file (full version here) is a good example of what code conventions we're actually enforcing. The conventions and rules are too numerous to list.
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.
LGTM, did you make these changes manually or use a tool?
Thank you. I thought about using the |
This PR adds code linting to this addon using the following third-party code:
Where our preferred code conventions differs from the eslint plugins above, overriding configuration is defined in the
.eslintrc.js
file here.The only rules I wanted to add that isn't yet supported are 1) enforcing empty lines before and after blocks and 2) enforcing empty lines before and after computed properties and methods. As such, I expect some PR reviews will still touch on issues on code conventions and styling.
You can see the eslint tests being run on Travis in this job.