dev-infra: run TSLint rules on top of TSSLint#59364
dev-infra: run TSLint rules on top of TSSLint#59364johnsoncodehk wants to merge 2 commits intoangular:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Hi, |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
I am the author of TSSLint 👋. TSSLint is a newer linting solution. It is mainly built to improve the linting experience and performance in TS projects.
Since the TSLint related tool chain is no longer maintained, and the API design of TSSLint has good compatibility with TSLint, I think running TSLint rules on top of TSSLint is a feasible solution to regain a good linting experience.
The switch required very few changes, mainly rewriting tslint.json to tsslint.config.ts, and we found some clear benefits:
tslint:disable-next-line:,tslint:disable:are supported through the plugin API. By enabling the second parameter ofcreateIgnorePlugin()we found many unusedtslint:disable-next-line:,tslint:disable:comments.I hope this PR helps you simply start testing TSSLint, but if Angular team ultimately decide that staying with TSLint is more appropriate, that's a perfectly acceptable conclusion and feel free to close this PR.
Thank you for reading this far!