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

Add eslint and use ES6 #33

Merged
merged 6 commits into from
Feb 16, 2017
Merged

Add eslint and use ES6 #33

merged 6 commits into from
Feb 16, 2017

Conversation

michalsnik
Copy link
Member

Resolves #17

This PR:

  • adds eslint (airbnb-base config)
  • fixes code
  • introduces es6 in all rules

Copy link

@netes netes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍!


var ember = require(resolve(__dirname, 'lib/utils/ember'));
var utils = require(resolve(__dirname, 'lib/utils/utils'));
/* eslint-disable import/no-dynamic-require */
Copy link
Contributor

@bardzusny bardzusny Feb 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it makes sense to disable it globally, in our case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is literally the only place with dynamic requires, and for a clear reason. In other places we'd rather want to be explicit about this.

Copy link
Contributor

@bardzusny bardzusny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, 👍.

@michalsnik michalsnik merged commit 1f2df17 into master Feb 16, 2017
@michalsnik michalsnik deleted the 17/add-eslint branch February 16, 2017 08:06
@michalsnik michalsnik added Done and removed Approved labels Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESLint setup for plugin codebase
4 participants