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

Update eslint dependencies #2896

Merged
merged 16 commits into from
Oct 18, 2017
Merged

Update eslint dependencies #2896

merged 16 commits into from
Oct 18, 2017

Conversation

fbarl
Copy link
Contributor

@fbarl fbarl commented Oct 17, 2017

Resolves #2895.

Everything should feel and work exactly as before, most of the new rules are purely syntactic. Two new rules that weren't applied have to do with converting some divs, spans and as into buttons and their scope of (semantic) changes is too big for this PR so they're left temporarily disabled.

New/updated rules
  • function-paren-newline
  • indent
  • jsx-a11y/anchor-is-valid
  • jsx-a11y/label-has-for
  • jsx-a11y/no-noninteractive-element-interactions
  • no-multi-spaces
  • no-restricted-globals
  • object-curly-newline
  • padded-blocks
  • prefer-destructuring
  • react/default-props-match-prop-types
  • react/jsx-closing-tag-location
  • react/jsx-max-props-per-line
  • react/jsx-wrap-multilines
  • spaced-comment
Disabled rules
  • jsx-a11y/click-events-have-key-events
  • jsx-a11y/mouse-events-have-key-events

@fbarl fbarl self-assigned this Oct 17, 2017
@fbarl fbarl requested a review from jpellizzari October 17, 2017 17:24
@fbarl fbarl changed the title [WIP] Update eslint dependencies Update eslint dependencies Oct 17, 2017
@fbarl fbarl force-pushed the 2895-update-eslint-deps branch from 8f4430f to ce97b00 Compare October 17, 2017 17:26
@jpellizzari
Copy link
Contributor

Is this in sync with the service-ui eslint file? If so, LGTM.

@fbarl
Copy link
Contributor Author

fbarl commented Oct 17, 2017

Is this in sync with the service-ui eslint file?

It's not in sync as the eslint libraries in service-ui haven't been updated yet. However, I get no issues when running PROXY_SCOPE_COMPONENT=true SCOPE_PATH=/home/fbarl/Projects/weaveworks/scope/ SERVICE_HOST=frontend.dev.weave.works npm start locally, presummably because the new rules are strictly stricter and the fixes still obey the old rules in both repos :)

p.s. There was a failing test I had to fix in the meantime but that was a one liner in a test file.

@fbarl fbarl merged commit 6cc98fd into master Oct 18, 2017
@fbarl fbarl deleted the 2895-update-eslint-deps branch October 20, 2017 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants