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
630
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.2k
OSSとコミュニティを支える
masashi
1
1.1k
英語ができなかった自分達が、グローバルチーム立ち上げに挑戦!?
masashi
1
3.1k
フロントエンド開発のためのセキュリティ入門について
masashi
1
460
フロントエンド開発のためのセキュリティ入門
masashi
49
17k
Node.jsの2022年と未来 / Node.js in 2022 and Future
masashi
1
1k
Corepack ~Node.jsに追加されたパッケージマネージャーマネージャー~ / #tng37
masashi
3
12k
Node.js + Web Compatibility
masashi
2
610
サイボウズが行うフロントエンドの品質保証 / Frontend Quality Assurance at Cybozu
masashi
10
2.9k
Other Decks in Programming
See All in Programming
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.7k
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
350
ドメインイベント増えすぎ問題
h0r15h0
2
550
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
400
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
270
命名をリントする
chiroruxx
1
620
rails newと同時に型を書く
aki19035vc
5
690
良いユニットテストを書こう
mototakatsu
11
3.5k
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
150
php-conference-japan-2024
tasuku43
0
420
テストコード書いてみませんか?
onopon
2
310
ATDDで素早く安定した デリバリを実現しよう!
tonnsama
1
1.5k
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Automating Front-end Workflow
addyosmani
1366
200k
Measuring & Analyzing Core Web Vitals
bluesmoon
5
200
jQuery: Nuts, Bolts and Bling
dougneiner
62
7.6k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
YesSQL, Process and Tooling at Scale
rocio
170
14k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Agile that works and the tools we love
rasmusluckow
328
21k
Producing Creativity
orderedlist
PRO
343
39k
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