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: use eslint v8 #6749

Closed
wants to merge 1 commit into from
Closed

Conversation

cexbrayat
Copy link
Member

Updates the dependencies installed by @vue/cli-plugin-eslint to use eslint v8.
Plugins are alo updated (when possible) to support eslint v8. Some are not yet updated, and a comment with relevant issue has been added in that case.
Tests have been added to check each configuration, and they all succeed, despite some plugins not yet updated.

Fixes #6740

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

@@ -32,6 +32,6 @@
},
"peerDependencies": {
"@vue/cli-service": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
"eslint": ">=7.5.0"
"eslint": "^8.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

I think this is not necessary now that the plugin is still compatible with ESLint 7.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can revert no problem. I was wondering: how to test that there is no issue with eslint v7? Duplicate all tests for v7 and v8? Or do we just assume it works?

Copy link
Member

Choose a reason for hiding this comment

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

For now, it should work, because we didn't touch any code in index.js or lint.js.

In the future, yes, a dedicated test setup for ESlint 7 is needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

All right let's keep >=7.5.0 for now then.
PR updated.

Updates the dependencies installed by `@vue/cli-plugin-eslint` to use eslint v8.
Plugins are alo updated (when possible) to support eslint v8.
Tests have been added to check each configuration.
@cexbrayat cexbrayat closed this Apr 11, 2022
@cexbrayat cexbrayat deleted the feat/support-eslint-v8 branch April 11, 2022 16:46
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.

eslint v8 support (and the removal of eslint-formatter-codeframe used by default by CLI v5 beta.5)
2 participants