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

feat: add ESLint 6 support #732

Merged
merged 1 commit into from
Apr 18, 2020
Merged

Conversation

Kocal
Copy link
Contributor

@Kocal Kocal commented Apr 17, 2020

Someone on Slack had an issue with Encore and ESLint 6:
Capture d’écran de 2020-04-17 22-12-29

CLIEngine#config does not exists on ESLint 6 anymore, since 6ae21a4b.
Now we can use CLIEngine#getConfigForFile to get the ESLint configuration.

Encore now supports both ESLint 5 and 6.

cc @a-menshchikov 😄

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@Kocal Kocal requested a review from weaverryan April 17, 2020 21:13
@weaverryan
Copy link
Member

@Lyrkan and I are discussing the version. What I can’t remember is if the version here will affect the “yarn add” that’s displayed if eslint is missing. That was my main motivator for allowing 5 or 6 - I want to make sure that it doesn’t give you a command that would allow version 7 to be installed when it comes out (until we can verify we’re compatible). But I’m not at a computer at the moment to check :)

@weaverryan
Copy link
Member

Thank you @Kocal!

@weaverryan weaverryan merged commit aba83cf into symfony:master Apr 18, 2020
weaverryan added a commit that referenced this pull request Apr 18, 2020
This PR was merged into the master branch.

Discussion
----------

build(deps-dev): update eslint-loader to ^3

eslint-loader ^3 is the last version to [support both ESLint 5 and 6](https://github.com/webpack-contrib/eslint-loader/blob/v3.0.4/package.json#L40) (related #732).

Given the [changelog for v3.0.0](https://github.com/webpack-contrib/eslint-loader/blob/master/CHANGELOG.md#300-2019-08-24), the only breaking changes are:
- drop support for Node < 8.9.0 (we did it too #731)
- minimum supported webpack version is 4: not a problem
- minimum supported eslint version is 5: not a problem

Commits
-------

bd641a9 build(deps-dev): update eslint-loader to ^3
@Kocal Kocal deleted the feat/eslint-6-support branch April 18, 2020 05:39
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.

None yet

4 participants