blakeembrey / tslint-config-standard

A TSLint config for JavaScript Standard Style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to migrate to the new eslint/typescript ?

colthreepv opened this issue · comments

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

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