Skip to content

feat!: require ESLint as a peer dependency - #3852

Merged
haoqunjiang merged 2 commits into
vuejs:next-majorfrom
haoqunjiang:eslint-as-project-dep
Apr 22, 2019
Merged

haoqunjiang merged 2 commits into
vuejs:next-majorfrom
haoqunjiang:eslint-as-project-dep

Conversation

@haoqunjiang

Copy link
Copy Markdown
Member

BREAKING CHANGE:
Users will have to explicitly list their required ESLint version in the
project's package.json.

The major concern behind this change is that ESLint release schedule is
never aligned with Vue CLI's.
See https://eslint.org/blog/2019/04/eslint-v6.0.0-alpha.0-released
So even if we upgraded our built-in ESLint version to v5, we'll see a
new major release of ESLint in the coming months. Meanwhile the built-in
ESLint version can't be easily upgraded again without bumping Vue CLI's
major version number. This could become a maintenance nightmare.

BREAKING CHANGE:
Users will have to explicitly list their required ESLint version in the
project's package.json.

The major concern behind this change is that ESLint release schedule is
never aligned with Vue CLI's.
See https://eslint.org/blog/2019/04/eslint-v6.0.0-alpha.0-released
So even if we upgraded our built-in ESLint version to v5, we'll see a
new major release of ESLint in the coming months. Meanwhile we can't
easily upgrade the built-in ESLint version again without bumping our
major version number. This could become a maintenance nightmare.
@haoqunjiang

Copy link
Copy Markdown
Member Author

Note:
If I recall correctly, the babel-eslint dependency in @vue/cli-plugin-eslint is only used for support of dynamic import parsing in ESLint.

babel/babel-eslint#711
Bad news: babel-eslint v11 requires a peer dependency of @babel/core, which, will definitely confuses those who don't need babel support in their projects.

Good news:
ESLint does not support dynamic import only because it is still a stage-3 proposal.
According to the TC39 meeting notes in March https://github.com/rwaldron/tc39-notes/blob/master/es10/2019-03/mar-28.md#dynamic-import-for-stage-4-in-june
The proposal is likely to move to stage 4 in June. Hopefully ESLint will follow up soon and then we can get rid of this extraneous dependency (Well, will need to move it to @vue/cli-plugin-babel, actually).

@haoqunjiang
haoqunjiang merged commit 42c2b71 into vuejs:next-major Apr 22, 2019
haoqunjiang added a commit that referenced this pull request Apr 30, 2019
BREAKING CHANGE:
Users will have to explicitly list their required ESLint version in the
project's package.json.

The major concern behind this change is that ESLint release schedule is
never aligned with Vue CLI's.
See https://eslint.org/blog/2019/04/eslint-v6.0.0-alpha.0-released
So even if we upgraded our built-in ESLint version to v5, we'll see a
new major release of ESLint in the coming months. Meanwhile we can't
easily upgrade the built-in ESLint version again without bumping our
major version number. This could become a maintenance nightmare.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant