-
Notifications
You must be signed in to change notification settings - Fork 383
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
Updated eslint packages #426
Updated eslint packages #426
Conversation
@reconstructions Looks great so far. @alexfedoseev will take a peek. Review status: 0 of 10 files reviewed at latest revision, 1 unresolved discussion. client/package.json, line 108 at r1 (raw file):
we can maybe Comments from Reviewable |
Thanks @justin808. Travis finished building but froze in test failures (tests were green locally), and probably should be restarted. Let me know if it would be easier for me to pull again instead. Comments from Reviewable |
Reviewed 10 of 10 files at r1. client/.eslintrc.yml, line 20 at r1 (raw file):
Just FYI, we don't see this issue on fng. client/package.json, line 108 at r1 (raw file): Previously, justin808 (Justin Gordon) wrote…
FYI Published Comments from Reviewable |
client/.eslintrc.yml, line 20 at r1 (raw file): Previously, alexfedoseev (Alex Fedoseev) wrote…
I bumped the packaged to 16.0.0, and was able to --fix the newline errors (having cleaned up the unfixable ones before). ESLint fixed them by putting everything on one (long) line. Are their line breaks in FNG? Or maybe they got --fixed and are long? I will update this PR with the 16.0.0 package to see if that fixes the build. Let me know if you would prefer the Comments from Reviewable |
aebb89a
to
9c877c2
Compare
9c877c2
to
cb99559
Compare
client/package.json, line 108 at r1 (raw file): Previously, alexfedoseev (Alex Fedoseev) wrote…
I bumped the version to 16.0.0, thx Comments from Reviewable |
Thanks @reconstructions! |
…hakacode#416 * Yarn rolled back from "^1.0.0" to "0.22.0". * Pushes to Heroku, ActionCable working. * All tests and linting pass. * Non-breaking gems and js packages upgraded.
Updating package for
eslint-config-shakacode
:I updated the
eslint-config-shakacode
package from version^14.1.1
to16.0.0-rc.3
. This flagged some minor issues and places where destructuring could be used. These were the same errors seen with the^15.0.0
version:<Link>
anchors invalid:The
<Link>
elements inclient/app/bundles/comments/layout/Layout.jsx
produced ESLint errors with the new config:Rules to fix this are documented, but the examples are in JSON and I couldn't convert or figure out a YAML version which would work in
eslintrc.yml
I tried all of the following with no success, including vanilla JSON > YAML conversions:
And:
I finally turned it off:
jsx-a11y/anchor-is-valid: off
. Maybe someone better at YAML can fix this.Changed an
<a>
link to a<button>
with styling:A link is used instead of a button in
CommentBox.jsx
, which gives the ESLint warning:I replaced the link with a button and styled it to look like the other links.
Newlines after parenthesis:
There were 18 places where newlines after parenthesis were causing ESLint errors, for example in commentsStore.js:17.
It was tough to figure out what the expected behavior should / would be from the docs. These errors were thrown with the
eslintrc.yml
default value of"function-paren-newline": ["error", "multiline"]
, but changing "multiline" to "consistent" took care of it.This change is