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

Code linting #154

Merged
merged 4 commits into from
Jan 4, 2017
Merged

Code linting #154

merged 4 commits into from
Jan 4, 2017

Conversation

sir-dunxalot
Copy link
Owner

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.

@sir-dunxalot
Copy link
Owner Author

Fixes #151

@@ -1,80 +0,0 @@
{
Copy link
Owner Author

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 @@
{
Copy link
Owner Author

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';

Copy link
Owner Author

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.

@sir-dunxalot sir-dunxalot mentioned this pull request Jan 1, 2017
8 tasks
Copy link
Contributor

@a15n a15n left a 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?

@sir-dunxalot
Copy link
Owner Author

Thank you. I thought about using the eslint --fix option but due to installation complications where I wanted to avoid installing eslint globally I opted to make all the changes manually.

@sir-dunxalot sir-dunxalot merged commit cb86cc1 into master Jan 4, 2017
@sir-dunxalot sir-dunxalot deleted the code-linting branch September 21, 2018 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants