Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TSLint will be deprecated. Migration to typescr...
Search
Masashi Hirano
September 06, 2019
Programming
0
650
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
You may not need XXX in Node.js
masashi
5
1.3k
OSSとコミュニティを支える
masashi
1
1.1k
英語ができなかった自分達が、グローバルチーム立ち上げに挑戦!?
masashi
1
3.2k
フロントエンド開発のためのセキュリティ入門について
masashi
1
470
フロントエンド開発のためのセキュリティ入門
masashi
49
17k
Node.jsの2022年と未来 / Node.js in 2022 and Future
masashi
1
1.1k
Corepack ~Node.jsに追加されたパッケージマネージャーマネージャー~ / #tng37
masashi
3
12k
Node.js + Web Compatibility
masashi
2
620
サイボウズが行うフロントエンドの品質保証 / Frontend Quality Assurance at Cybozu
masashi
10
2.9k
Other Decks in Programming
See All in Programming
さいきょうのレイヤードアーキテクチャについて考えてみた
yahiru
3
750
バックエンドのためのアプリ内課金入門 (サブスク編)
qnighy
8
1.8k
AIの力でお手軽Chrome拡張機能作り
taiseiue
0
170
Honoのおもしろいミドルウェアをみてみよう
yusukebe
1
210
なぜイベント駆動が必要なのか - CQRS/ESで解く複雑系システムの課題 -
j5ik2o
10
3.6k
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
160
Immutable ActiveRecord
megane42
0
140
CSS Linter による Baseline サポートの仕組み
ryo_manba
1
100
pylint custom ruleで始めるレビュー自動化
shogoujiie
0
120
CDK開発におけるコーディング規約の運用
yamanashi_ren01
2
120
Writing documentation can be fun with plugin system
okuramasafumi
0
120
昭和の職場からアジャイルの世界へ
kumagoro95
1
380
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.6k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Writing Fast Ruby
sferik
628
61k
KATA
mclloyd
29
14k
The Invisible Side of Design
smashingmag
299
50k
Fireside Chat
paigeccino
34
3.2k
Building Adaptive Systems
keathley
40
2.4k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
We Have a Design System, Now What?
morganepeng
51
7.4k
Rails Girls Zürich Keynote
gr2m
94
13k
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