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

Replace tslint with typescript-eslint #1030

Merged
merged 15 commits into from
May 29, 2024
Merged

Conversation

diksipav
Copy link
Contributor

No description provided.

@diksipav diksipav marked this pull request as ready for review May 27, 2024 14:31
@diksipav diksipav requested a review from scotttrinh May 27, 2024 14:36
Copy link
Collaborator

@scotttrinh scotttrinh left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines 30 to 31
// We need to use the tseslint.configs.stylistic, but some stylistic rules are erroring.
// These 4 pass. We can gradually add the rest and at the end replace with the tseslint config.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have an idea here:

What if we added the tseslint.configs.stylistic rule here but change any rules that are currently breaking to warn so we can notice them when we're working on a file that might contain a rule violation so maybe we can fix it while we're working on some related code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, I am not completely sure what exactly is breaking (except for one rule), alos there are hundreds of changes and only some of them is making a problem... but yes, I can do that, just wanted to finish asap : )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and I mean this can be tracked down, just I need maybe 2 more h...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't sweat it for now, these rules are already beyond what we had in tslint, so I'm not super worried.

Copy link
Contributor Author

@diksipav diksipav May 29, 2024

Choose a reason for hiding this comment

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

3 rules at the end make problems... I will return to this when I get more time, I turned them off for now because lint:fix will automatically fix them (and we don't want them, because that will result in an err). Will research if lint:fix can fix only errors and not warning.

package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@scotttrinh scotttrinh left a comment

Choose a reason for hiding this comment

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

👏 Looks good! Can you update the title of this PR before merging to something like: "Replace tslint with typescript-eslint".

@diksipav diksipav changed the title Go back when tests work Replace tslint with typescript-eslint May 29, 2024
@diksipav diksipav merged commit 6db71ef into master May 29, 2024
10 checks passed
@diksipav diksipav deleted the go-back-when-tests-work branch May 29, 2024 13:04
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.

None yet

2 participants