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

Upgrade standard to v14 #1860

Merged
merged 15 commits into from
Oct 9, 2019
Merged

Upgrade standard to v14 #1860

merged 15 commits into from
Oct 9, 2019

Conversation

goto-bus-stop
Copy link
Contributor

This has some pretty invasive changes, especially for JSX alignment rules.

Previously, this was fine:

return <p>
  something
</p>

but now standard wants the open and close tag to be at the same indent level, so it has to be

return (
  <p>
    something
  </p>
)

That changes the indent level of the something, too, so it's where the majority of the diff in this PR comes from.

This disables the new react/jsx-handler-names rule because I didn't want to rename a bunch of functions or add dummy functions. It's kept as a warning so we can follow it for new code.

This disables the no-unused-vars rule because it has an issue with loops like for (const entry in iterator), where entry is flagged even if it is used. I've added an asana task for me for next week to check if that bug still exists.

@goto-bus-stop goto-bus-stop requested a review from arturi October 4, 2019 10:09
bin/locale-packs.js Outdated Show resolved Hide resolved
Copy link
Contributor

@arturi arturi left a comment

Choose a reason for hiding this comment

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

Looks good! I like the new return () rule, actually.

@goto-bus-stop goto-bus-stop merged commit 733de65 into master Oct 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the chore/standard-14 branch October 9, 2019 12:53
HeavenFox pushed a commit to docsend/uppy that referenced this pull request Jun 27, 2023
* Update eslint dependencies.

* standard --fix

* build: disable handler name lint rule

* status-bar: manually fix lint errors

* webcam: manually fix lint errors

* url: manually fix lint errors

* react-native: manually fix lint errors

* dashboard: manually fix lint errors

* informer: manually fix linting errors

* progress-bar: manually fix lint errors

* provider-views: manually fix lint errors

* redux-dev-tools: manually fix lint errors

* build: disable buggy no-unused-vars rule

* examples: manually fix lint errors

* ` quotes for code things, ' for text things
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.

3 participants