-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ESLint #13549
ESLint #13549
Conversation
☔ The latest upstream changes (presumably #13542) made this pull request unmergeable. Please resolve the merge conflicts. |
bf4133a
to
ca20f1a
Compare
All JSHint/JSCS equivalents have been ported and/or enabled now! 🎉 |
looks like I'm being bitten by the |
aefce60
to
3343e3b
Compare
I've extracted the custom ESLint rules into https://github.com/Turbo87/eslint-plugin-ember-internal to avoid the subproject issues that caused the previous CI failures |
☔ The latest upstream changes (presumably b8c5e08) made this pull request unmergeable. Please resolve the merge conflicts. |
eafe29f
to
4b0d84d
Compare
Why are there so many file changes here? I believe that we should be applying the existing rules only... |
@rwjblue except for the last commit: because JSHint apparently isn't that great at catching these things. It's been the same in all the other repos I've converted so far. ESLint usually found a lot more issues than JSHint. |
☔ The latest upstream changes (presumably ee55266) made this pull request unmergeable. Please resolve the merge conflicts. |
this._super(...arguments); | ||
outerComponent = this; | ||
}, | ||
// init() { |
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.
is this still WIP?
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.
The issue here was that outerComponent
was unused. I wasn't sure if it was actually supposed to be used in a test somewhere so I commented it out for now. Let me know if I should remove is completely.
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.
If the tests pass without it, just delete it. We can always get it back if needed 😸
I'm 👍 on this, all changes look good. I did point out some what appears to be WIP |
Please squash |
This must be fixed before landing. The linting failures need to be included in the normal |
@rwjblue @stefanpenner would love to get some feedback on emberjs/emberjs-build#161, then I'll start working on integrating ESLint into |
☔ The latest upstream changes (presumably #13553) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #13775) made this pull request unmergeable. Please resolve the merge conflicts. |
2134c2c
to
6aea607
Compare
☔ The latest upstream changes (presumably #13838) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #14658) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #14776) made this pull request unmergeable. Please resolve the merge conflicts. |
@rwjblue rebased and updated |
Restarted travis build (was failing bizarrely) |
@rwjblue failure might be related to the fact that I didn't update the yarn lockfile (and I still believe that it's stupid that it's failing because of that...) |
🍏 |
Thanks for working so hard on this! |
This PR adds ESLint code checking. JSHint/JSCS are not removed yet and ESLint is only part of the mocha test suite so far until
emberjs-build
supports ESLint too. Most of the JSHint/JSCS rule equivalents have been enabled and only two of the custom JSCS rules are missing at the moment and need to be reimplemented on the ESLint API.partly resolves #13006
require-comments-to-include-access
ruledisallow-const-outside-module-scope
rule/cc @stefanpenner @rwjblue