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

chore: upgrade vscode-eslint #1787

Merged
merged 1 commit into from
Dec 18, 2019
Merged

Conversation

zhixzhan
Copy link
Contributor

@zhixzhan zhixzhan commented Dec 18, 2019

Description

upgrade vscode-eslint plugin from 1.* to 2.*, rewrite setting to latest recommended config.
https://github.com/microsoft/vscode-eslint#release-notes

Breaking change:

Requires:

  1. vscode@latest(>=1.41.0)
    may not valid if your version can search & install latest vscode-eslint

  2. vscode extension: vscode-eslint@latast(>=2.0.6)

if development environment haven't upgrade to latest, eslint auto format when save may not be work

Task Item

refs #1787
microsoft/vscode-eslint#840

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code refactor (non-breaking change which improve code quality, clean up, add tests, etc)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Doc update (document update)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have functionally tested my change

Screenshots

Please include screenshots or gifs if your PR include UX changes.

{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
"typescript",
"typescriptreact",
Copy link
Contributor Author

@zhixzhan zhixzhan Dec 18, 2019

Choose a reason for hiding this comment

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

vscode-eslint@2.* take "autoFix": true as default.

"editor.formatOnSave": true,
"typescript.tsdk": "./Composer/node_modules/typescript/lib"
"typescript.tsdk": "./Composer/node_modules/typescript/lib",
"editor.codeActionsOnSave": {
Copy link
Contributor Author

@zhixzhan zhixzhan Dec 18, 2019

Choose a reason for hiding this comment

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

imported by vscode-eslint@2.*, replacement of

"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,

@zhixzhan zhixzhan changed the title chore: upgrade vscode-eslint to latest setting chore: upgrade vscode-eslint Dec 18, 2019
Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n left a comment

Choose a reason for hiding this comment

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

👍 Thanks @zhixzhan

@a-b-r-o-w-n a-b-r-o-w-n merged commit 5a98b69 into microsoft:master Dec 18, 2019
@zhixzhan zhixzhan deleted the vscode-eslint branch December 19, 2019 01:38
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