Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
TSLint will be deprecated. Migration to typescript-eslint / #kansaits 2
Masashi Hirano
September 06, 2019
Programming
0
330
TSLint will be deprecated. Migration to typescript-eslint / #kansaits 2
kansai.ts #2(
https://kansaits.connpass.com/event/131541/)で飛び入りLTをしました
。
Masashi Hirano
September 06, 2019
Tweet
Share
More Decks by Masashi Hirano
See All by Masashi Hirano
Corepack ~Node.jsに追加されたパッケージマネージャーマネージャー~ / #tng37
masashi
3
6.1k
Node.js + Web Compatibility
masashi
2
360
サイボウズが行うフロントエンドの品質保証 / Frontend Quality Assurance at Cybozu
masashi
10
2.5k
実践 OSSことはじめ / First Step for OSS Contribution
masashi
4
6.7k
Prettier Plugins
masashi
1
880
2019年のコミュニティ活動報告 / Community Activity in 2019
masashi
0
170
W3K World Wide Web Kansai
masashi
0
310
フロントエンドエンジニアのためのセキュリティ対策 ~XSS編~ / #frontkansai 2019
masashi
23
6.1k
Node.js v13の気になる変更点 / #kng8
masashi
1
1.3k
Other Decks in Programming
See All in Programming
kintone × LINE Bot で餃子検定Botを作った話
naberina
0
330
閱讀原始碼 - 再戰十年的 jQuery
eddie
1
300
モデルの定義に基づくバリデーションを実現するためのpydantic入門
daikikatsuragawa
0
120
クラウド KMS の活用 / TOKYO BLOCKCHAIN TECH MEETUP 2022
odanado
PRO
0
190
Babylon.jsで作ったsceneをレイトレーシングで映えさせる
turamy
1
210
Better Angular Architectures: Architectures with Standalone Components @DWX2022
manfredsteyer
PRO
1
420
2022年のモダンCSS改
tonkotsuboy_com
24
17k
プロダクトの成長とSREと
takuyatezuka
0
120
Pluggable Storage in PostgreSQL
sira
1
190
NestJS_meetup_atamaplus
atamaplus
0
220
パラメタライズドテスト
ledsun
0
220
パスワードに関する最近の動向
kenchan0130
1
330
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
324
55k
Support Driven Design
roundedbygravity
87
8.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
269
12k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
349
27k
The MySQL Ecosystem @ GitHub 2015
samlambert
239
11k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
37
3.3k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
11
4.9k
BBQ
matthewcrist
74
7.9k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
223
49k
Stop Working from a Prison Cell
hatefulcrawdad
262
17k
The Straight Up "How To Draw Better" Workshop
denniskardys
225
130k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
212
20k
Transcript
TSLint will be deprecated Migration to typescript-eslint Masashi Hirano @shisama
kansai.ts #2
ฏ ণ࢜ / Masashi Hirano αΠϘζגࣜձࣾ ɹɹ ϑϩϯτΤϯυΤΩεύʔτνʔϜ @shisama_ @shisama
Node.js Core Collaborator ؔNodeֶԂOrganizer
Agenda • TSLint Roadmap • typescript-eslint • Migration to typescript-eslint
https://palantir.github.io/tslint/
TSLint • TypeScript༻ͷ੩తղੳπʔϧ • CLIΛ࣮ߦ͢ΔͱTypeScriptͷϑΝΠϧͷղੳΛͯ͠ఆٛͨ͠ ϧʔϧΛνΣοΫ͢Δ͜ͱ͕Ͱ͖Δπʔϧ • Πϯσϯτͱ͔ίʔυͷελΠϧͷνΣοΫͳͲ • ϩδοΫͷෳࡶͳͲνΣοΫͰ͖Δ
ΊͬͪΌศརͳΜ͚ͩͲɺ 2019ϝϯςφϯεΛऴྃ͠·͢
https://github.com/Microsoft/TypeScript/issues/29288
https://github.com/Microsoft/TypeScript/issues/29288 54-JOUύϑΥʔϚϯε͕ѱ͍ɻΞʔΩς Ϋνϟ্ʹ͕͋Δ͔Β5ZQF4DSJQUͱͯ͠ &4-JOUΛ͍ͬͯ͘Α
https://github.com/palantir/tslint 54-JOUXJMMCFEFQSFDBUFETPNFUJNFJO
https://github.com/palantir/tslint/issues/4534
https://github.com/palantir/tslint/issues/4534
TSLint Roadmap • 2019/8/1ɾɾɾίΞͷϧʔϧՃΛετοϓ • 2019/11/1ɾɾɾػೳՃɺϧʔϧ֦ுΛετοϓ • 2020/1/1ɾɾɾηΩϡϦςΟҎ֎ͷߋ৽Λͯ͢ετοϓ • 2020/12/1ɾɾɾͯ͢ͷPull
RequestͷडΛετοϓ
https://github.com/typescript-eslint/typescript-eslint
typescript-eslintͱ • TypeScriptΛESLintͰνΣοΫ͢ΔͨΊͷϓϥάΠϯͳͲΛཧ ͍ͯ͠Δ • ESLintνʔϜͱTypeScriptνʔϜ͕ڠྗ͍ͯ͠Δ • ͱͱ͋ͬͨeslint/typescript-eslint-parserͳͲDeprecated
https://teppeis.hatenablog.com/entry/2019/02/typescript-eslint UZQFTDSJQUFTMJOUͷ͍ํͳͲͪ͜Β
Migrate to typescript-eslint • ҎԼͷύοέʔδ͕ඞཁ • @typescript-eslint/eslint-plugin • tslint.jsonΛ.eslintrcʹॻ͖͑Δඞཁ͕͋Δ
https://teppeis.hatenablog.com/entry/2019/02/typescript-eslint QMVHJOTɺQBSTFSɺQBSTFS0QUJPOTͷઃఆ͕ඞཁ
https://github.com/typescript-eslint/tslint-to-eslint-config
tslint-to-eslint-configͱ • tslint.jsonΛ.eslintʹίϯόʔτ͢ΔCLIπʔϧ • typescript-eslintνʔϜ͕։ൃ • ੜ͢ΔܗࣜJSΦϒδΣΫτͱJSONΛαϙʔτ • npx tslint-to-eslint-configΛ࣮ߦ͢Δͱtslint.jsonΛಡΜͰeslintrc.js
ͱ͍͏ϑΝΠϧΛੜ͠·͢
https://qiita.com/shisama/items/b3d63142797b07cb554e ϑΝΠϧ໊ͷࢦఆ+40/ग़ྗͳͲ Φϓγϣϯʹ͍ͭͯͪ͜Β
https://qiita.com/shisama/items/b3d63142797b07cb554e ͱ͍͑ɺᘳͰͳ͍ʂ ੜ͞ΕͨFTMJOUSDΛ खͰमਖ਼͢Δඞཁ͕͋ΔͷͰҙʂ
·ͱΊ • TSLint͍ͬͯΔਓૣΊʹESLintʹҠߦ͢Δඞཁ͕͋Δ • ࠓޙtypescript-eslint + ESLintͰTypeScriptͷLintΛ͠·͠ΐ͏ • tslint-to-eslint-configΛ͏ͱҠߦΘΓͱεϜʔζʹ͍͔͘ •
typescript-eslintνʔϜ։ൃͳͷͰվળ͞Ε͍ͯ͘ͷΛظ
Thanks. @shisama_ @shisama