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

How to migrate to the new eslint/typescript ? #61

Open
colthreepv opened this issue Feb 16, 2020 · 2 comments
Open

How to migrate to the new eslint/typescript ? #61

colthreepv opened this issue Feb 16, 2020 · 2 comments

Comments

@colthreepv
Copy link

Hello, as an avid user of this ruleset, how can current users easily migrate to the new ESlint + Typescript parsing ?

For anyone not tracking JS world as their first news outlet:
TSlint is going to die in 2020, long live Typescript

REF: https://eslint.org/blog/2019/01/future-typescript-eslint

@colthreepv
Copy link
Author

colthreepv commented Feb 16, 2020

Migration it's not hard, what I did was:

1 - Remove extends: ['tslint-config-standard'] from tslint.json
2 - Run tslint -> eslint migration tool npx tslint-to-eslint-config --config .eslintrc.json
3 - Install the new alternative to this project
4 - npm install --save-dev eslint@6 eslint-plugin-standard@4 eslint-plugin-promise@4 eslint-plugin-import@2 eslint-plugin-node@9 @typescript-eslint/eslint-plugin@2 eslint-config-standard-with-typescript
5 - add in eslint.json: "extends": "standard-with-typescript",

The resulting configuration should be 99% compatible to what you actually have

I am not sure how the author @blakeembrey feels about this input, but I hope he can contribute towards the standard/ts-standard project

@blakeembrey
Copy link
Owner

blakeembrey commented Mar 15, 2020

@colthreepv Thanks, this is great! Would you like to contribute these instructions to the README?

Edit: I can also deprecate this package with a link to the instructions once we add them.

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

No branches or pull requests

2 participants