Skip to content

Remove linter option TSLint - #5065

Merged
haoqunjiang merged 9 commits into
vuejs:nextfrom
Shinigami92:remove-linter-option-tslint
Sep 10, 2020
Merged

Remove linter option TSLint#5065
haoqunjiang merged 9 commits into
vuejs:nextfrom
Shinigami92:remove-linter-option-tslint

Conversation

@Shinigami92

@Shinigami92 Shinigami92 commented Jan 9, 2020

Copy link
Copy Markdown
Contributor

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:

References #5064

Comment thread packages/@vue/cli-plugin-typescript/generator/index.js
Comment thread packages/@vue/cli-plugin-typescript/generator/index.js
@Shinigami92

Shinigami92 commented Jan 9, 2020

Copy link
Copy Markdown
Contributor Author

I don't know if removing the two tests is the right way, but in the past it seemed that they only passed if tsLint was set to true anyway?!

@haoqunjiang

haoqunjiang commented Jan 10, 2020

Copy link
Copy Markdown
Member

Thanks for the PR!
But FYI, it is a breaking change

@Shinigami92

Copy link
Copy Markdown
Contributor Author

Thanks for the PR!
But FYI, it is a breaking change

Thanks for your review
You are absolutely right, of course, and that was actually not intended at all.
This PR is only intended to remove the selection option and the associated code.
No code should be removed that has nothing to do with the generation and I probably removed a little too much here last night. I will revert this parts.

This PR should aim a cli version 4.2.0.
The complete removal of non-generating code should be done in another PR and could be in a cli version 5.0.

@Shinigami92

Copy link
Copy Markdown
Contributor Author

Ok ... since some tests use the generator to test linting with TSLint, I will completely revert the second commit

@Shinigami92

Copy link
Copy Markdown
Contributor Author

And because I just revert the changes and didn't use reset, we don't have to find the parts again for the upcoming breaking change PR :)

@haoqunjiang
haoqunjiang changed the base branch from dev to next September 7, 2020 12:56
@haoqunjiang

Copy link
Copy Markdown
Member

I just started working on the next major version.
I think we can revert the previous reversion, to introduce breaking changes :)

@Shinigami92
Shinigami92 force-pushed the remove-linter-option-tslint branch from 1bea82e to 4405277 Compare September 8, 2020 13:21
@Shinigami92

Copy link
Copy Markdown
Contributor Author

@sodatea Thanks for notifying me, I have updated this PR
Please have a look / review

@Shinigami92

Copy link
Copy Markdown
Contributor Author

The one test lint with no lintOnSave wants to have lintOnSave to be false
Maybe we should assign false as default value were it's defined? 🤔 (same for scripts.lint)

Or remove the expectations?

@haoqunjiang

Copy link
Copy Markdown
Member

Yeah, I think we can just remove the two test cases

Comment thread packages/@vue/cli-plugin-typescript/generator/index.js Outdated
Comment thread packages/@vue/cli-plugin-typescript/generator/index.js Outdated
Comment thread packages/@vue/cli-plugin-typescript/prompts.js Outdated

@haoqunjiang haoqunjiang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@haoqunjiang
haoqunjiang merged commit adb8c7d into vuejs:next Sep 10, 2020
@Shinigami92
Shinigami92 deleted the remove-linter-option-tslint branch September 10, 2020 12:34
@Shinigami92

Shinigami92 commented Sep 10, 2020

Copy link
Copy Markdown
Contributor Author

Thanks!

I'm happy to be part of the Vue ecosystem and community

I am happy to return your thanks to the community ❤️

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.

2 participants