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

Fixes #990 - Bring linting up to date #994

Merged
merged 6 commits into from
Jan 24, 2019
Merged

Fixes #990 - Bring linting up to date #994

merged 6 commits into from
Jan 24, 2019

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jan 24, 2019

This is a duplicate of #991 (which I don't want to touch right now because Travis is wobbly and is actually green on that one) but with two more commits added on top because I just realized that we weren't running lints or formatting on JSX files.

🤦

I didn't realize these weren't being picked up in the initial
configuration of Prettier and ESLint.
Previous commit updated our package.json scripts; this one shows what
the actual results are.
Drops us from:

  ✖ 801 problems (801 errors, 0 warnings)

To:

  ✖ 529 problems (529 errors, 0 warnings)
Like `CKEDITOR`, this gets assigned as a globally-accessible property on
the `window` object.

Before:

    ✖ 529 problems (529 errors, 0 warnings)

After:

    ✖ 436 problems (436 errors, 0 warnings)
We have too many of these to fix right now. If even warnings turn out to
be too noisy we can turn this off entirely by switching 'warn' to 'off'.
(Note that I also changed an existing 2 → "error", because
"off"/"warn"/"error" is more readable than 0/1/2.)

Before:

    ✖ 436 problems (436 errors, 0 warnings)

After:

    ✖ 436 problems (324 errors, 112 warnings)
We'll have to chew through these slowly over time.

Before:

    ✖ 436 problems (324 errors, 112 warnings)

After:

    ✖ 436 problems (272 errors, 164 warnings)

If the warnings get too noisy you can always suppress them with:

    npm run lint -- --quiet
@julien julien merged commit 637eee7 into liferay:2.x-develop Jan 24, 2019
@wincent wincent deleted the more-linting-and-formatting branch January 24, 2019 14:25
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