-
Notifications
You must be signed in to change notification settings - Fork 454
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
Migrate tslint to eslint #1590
Migrate tslint to eslint #1590
Conversation
…imas/ts-jest into migrate-tslint-to-eslint
This change is detect where there might be issues with referencing ´this´ from the rule definition (https://github.com/typescript-eslint/typescript-eslint/blob/v2.30.0/packages/eslint-plugin/docs/rules/unbound-method.md) : `Warns when a method is used outside of a method call. Class functions don't preserve the class scope when passed as standalone variables.`
Bumps [jest](https://github.com/facebook/jest) from 25.5.3 to 25.5.4. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](jestjs/jest@v25.5.3...v25.5.4) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
look quite a lot files to review but it's easier to review against |
Sorry about that, bear in mind that the changes to existing files are minimal and should only be linting fixes with tabs and such :) The most noticable changes are done in
|
Pull Request Test Coverage Report for Build 4670
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks strange to me that after migration the line formatting seems to change for all js files. Was it caused by the new rules which are merged from tslint
rules ?
@ahnpnl I think all the review comments are done in the last commit :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are still a few comments :)
I'm reading warning logs in CI. Probably we need to fix them, either disable eslint check for code or fix the code itself. |
…imas/ts-jest into migrate-tslint-to-eslint
It was my vscode that messed things up, I had wrong tabs :) |
…imas/ts-jest into migrate-tslint-to-eslint
…imas/ts-jest into migrate-tslint-to-eslint
…imas/ts-jest into migrate-tslint-to-eslint
…imas/ts-jest into migrate-tslint-to-eslint
@kulshekhar would you please take a look if any rules we need to adjust ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from one minor issue, this looks good!
Summary
Fixes #1566
Making changes to configuration files where we want to migrate from deprecated tslint to eslint.
Does this PR introduce a breaking change?
Currently, there are some errors in the linting which breaks tests, but those are regarding prettier formatting mostly. Other errors have been put to warning. These can either be handled or put to off in .eslintrc
Other information
I was initially considering to add eslint-plugin-import to lint some errors regarding import syntax, ordering and stuff but that heavily degraded the performance of the linting.
Here is with:
Without: