You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ember new in v3.15.1 resolves an older major version of eslint than v.3.14.0 did #9005
Running ember new <some-name> --yarn with ember-cli v3.15.1 results in [email protected]. Running the same command in ember-cli v3.14.0 results in [email protected].
Reproduction
With v3.15.1 (maybe also with v3.15.0?), run ember new old-eslint --yarn (maybe you don't even need --yarn)
Expected
Eslint version is 6.x
Actual
Eslint version is 5.x
Repercussions
This breaks .eslintrc.js files for those of us that modify by adding an extends rule to an overrides object. I am guessing you didn't notice because you removed the thing that would have tripped you up in d0359cc. There are likely other bugs created for people who modify their configs as well.
In my particular case, because this pulls in an old version of eslint, I get Unexpected top-level property "overrides[1].extends" with a config that includes:
Hmm. The resolutions thing fixes yarn lint:js but still fails when I run ember test. This is only tangential to this bug, but I will document my continued workarounds as I discover them anyway.
The package that seems to be pulling the eslint version down is broccoli-lint-eslint which is pulled in from ember-cli-eslint. Oddly, my 3.14.0 app did not include ember-cli-eslint. Perhaps because I initiated with the octane blueprint? So I guess the workaround is actually to remove ember-cli-eslint
Activity
happycollision commentedon Jan 3, 2020
Hmm. The resolutions thing fixes
yarn lint:jsbut still fails when I runember test. This is only tangential to this bug, but I will document my continued workarounds as I discover them anyway.happycollision commentedon Jan 3, 2020
The package that seems to be pulling the
eslintversion down isbroccoli-lint-eslintwhich is pulled in fromember-cli-eslint. Oddly, my 3.14.0 app did not includeember-cli-eslint. Perhaps because I initiated with the octane blueprint? So I guess the workaround is actually to remove ember-cli-eslint