-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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 from tslint to eslint #19413
Comments
Hi, I would like to look into this issue if it is available. |
@tiuweehan Due to the “good to take” label I would say it’s available and feel free to investigate it. |
Hopefully microsoft/TypeScript#36014 gets released. Then we could already switch from
|
For declare function expectType<T>(value: T): T; from tsd. |
There are some other rules where it's not obvious that eslint-typescript implements them:
|
What is the status of this issue? I would like to start on this. |
We're looking for a replacement of the following
|
Hi, I'm happy to pick this up, but I see that there is already EsLint in this project. The contributing guidelines also talks about EsLint. I found two packages to fix the above issues, https://github.com/gund/eslint-plugin-deprecation and https://github.com/fr0stf0x/eslint-plugin-absolute-imports. What are the steps left that are needed to fully transition over to EsLint or is this issue outdated? |
I played around with this and have a few questions: Current situation from what I read above:We use tslint deprecation rule to warn us when using deprecated things. In mui base package, running yarn typescript will run tslint which will alert us to problems. What i experience:I wanted to make sure I understood what deprecation rule was doing. So i tried to trigger it in mui-base. but the typescript command glob pattern in mui-base is overriding what is in muibase/tsconfig.json and only checking spec and d.ts files i believe. So I made a pr to change that and now a ton of stuff fails tslint. In addition the deprecation rule itself seems to be throwing an error. Outcome:So now I'm not sure what was intended or where this should go from here. Same thing about what files are tslinted goes for some other packages like mui-joy. |
Also I tried out https://github.com/gund/eslint-plugin-deprecation which jennifer mentioned and it works. But boy is it slow. I guess eslint is caching so it's only slow the first time. But I limited linting to one package, like mui-joy, and it took over 50 seconds. |
Looking for replacements of the following
tslint
rules:deprecation
dtslint/no-relative-import-from-test
The text was updated successfully, but these errors were encountered: