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

Fix linting issues #22062

Closed
wants to merge 2 commits into from
Closed

Conversation

ignacioola
Copy link
Contributor

@ignacioola ignacioola commented Nov 1, 2018

Fixes lots of ESLint warnings. Many of them where in PR #20877 by @janicduplessis which requested to split the linting fixes from configuration and package changes.

I solved only the issues that I was most certain about but I would love to get hands on all of them with a little bit of input.

Test Plan:

Run linting from the React Native project:

> cd react-native
> yarn
> yarn lint

And see less linting issues than before.

Release Notes:

[INTERNAL] [ENHANCEMENT] [eslint] - Fix eslint issues

@ignacioola ignacioola requested a review from shergin as a code owner November 1, 2018 15:04
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Tests This PR adds or edits a test case. labels Nov 1, 2018
@@ -30,7 +30,7 @@ describe('Sanity', () => {
await element(by.text('OK')).tap();
});

it(`Two buttons with JustifyContent:'space-between' should be tappable`, async () => {
it('Two buttons with JustifyContent:\'space-between\' should be tappable', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

The linter would be happy with double quotes here and then you don't need to escape the inner ones.

Suggested change
it('Two buttons with JustifyContent:\'space-between\' should be tappable', async () => {
it("Two buttons with JustifyContent:'space-between' should be tappable", async () => {

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Nov 1, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@TheSavior is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@elicwhite
Copy link
Member

Thanks for these fixes!

@react-native-bot
Copy link
Collaborator

@ignacioola merged commit ae8ec39 into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Nov 1, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 1, 2018
grabbou pushed a commit to react-native-community/cli that referenced this pull request Nov 6, 2018
Summary:
Fixes lots of ESLint warnings. Many of them where in PR #20877 by janicduplessis which requested to split the linting fixes from configuration and package changes.

I solved only the issues that I was most certain about but I would love to get hands on all of them with a little bit of input.
Pull Request resolved: facebook/react-native#22062

Differential Revision: D12889447

Pulled By: TheSavior

fbshipit-source-id: 35f7a08104a5b859c860afdde4af2b32c0685c50
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
rozele pushed a commit to microsoft/react-native-windows that referenced this pull request Apr 14, 2019
Summary:
Fixes lots of ESLint warnings. Many of them where in PR #20877 by janicduplessis which requested to split the linting fixes from configuration and package changes.

I solved only the issues that I was most certain about but I would love to get hands on all of them with a little bit of input.
Pull Request resolved: facebook/react-native#22062

Differential Revision: D12889447

Pulled By: TheSavior

fbshipit-source-id: 35f7a08104a5b859c860afdde4af2b32c0685c50
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
Fixes lots of ESLint warnings. Many of them where in PR facebook#20877 by janicduplessis which requested to split the linting fixes from configuration and package changes.

I solved only the issues that I was most certain about but I would love to get hands on all of them with a little bit of input.
Pull Request resolved: facebook#22062

Differential Revision: D12889447

Pulled By: TheSavior

fbshipit-source-id: 35f7a08104a5b859c860afdde4af2b32c0685c50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Tests This PR adds or edits a test case.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants