tslint-config-standard icon indicating copy to clipboard operation
tslint-config-standard copied to clipboard

How to migrate to the new eslint/typescript ?

Open colthreepv opened this issue 5 years ago • 2 comments
trafficstars

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 avatar Feb 16 '20 10:02 colthreepv

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

colthreepv avatar Feb 16 '20 10:02 colthreepv

@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.

blakeembrey avatar Mar 15 '20 04:03 blakeembrey