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
Formatting TypeScript
Search
Taketoshi Aono(青野健利 a.k.a brn)
October 02, 2017
Programming
1
430
Formatting TypeScript
TypeScriptのフォーマットに関して
We Are Javascritpters #13
Taketoshi Aono(青野健利 a.k.a brn)
October 02, 2017
Tweet
Share
More Decks by Taketoshi Aono(青野健利 a.k.a brn)
See All by Taketoshi Aono(青野健利 a.k.a brn)
document.write再考
brn
6
2.8k
Parsing Javascript
brn
12
8.6k
JSON & Object Tips
brn
1
360
CA 1Day Youth Bootcamp for Frontend LT
brn
0
750
Modern TypeScript
brn
2
720
javascript - behind the scene
brn
3
660
tc39 proposals
brn
0
750
プロダクト開発とTypeScript
brn
8
2.8k
React-Springでリッチなアニメーション
brn
1
570
Other Decks in Programming
See All in Programming
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
390
いまから追い上げる、Jetpack Compose トレーニング
nyafunta9858
0
590
Increased Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
380
Pythonで改めて考える「クラス(class)」の使いどころ
os1ma
2
660
watsonx.ai Dojo #2 生成AIを使ったアプリ開発入門編
oniak3ibm
PRO
0
220
Android開発以外のAndroid開発経験の活かしどころ
konifar
2
1k
Amazon BedrockでサーバレスなAIお料理ボットを作成する!!
tosuri13
0
230
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
660
GenU導入でCDKに初挑戦し、悪戦苦闘した話
hideg
0
170
GoのIteratorに詳しくなってしまう
inatonix
1
200
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
200
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
A Philosophy of Restraint
colly
202
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
How to Think Like a Performance Engineer
csswizardry
16
960
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
The Pragmatic Product Professional
lauravandoore
31
6.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Become a Pro
speakerdeck
PRO
22
4.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
663
120k
Code Review Best Practice
trishagee
62
16k
Building Applications with DynamoDB
mza
90
6k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Transcript
Formatting TypeScript
せ: @brn (ꫬꅿ⨳ⵃ) 耵噟: ؿٗٝزؒٝسؒٝآص،٥ط؎ذ؍ـؒٝآص، ⠓爡: Cyberagent ،سذؙأةآؔRightSegment٥AI Messenger ـؚٗ:
http://abcdef.gets.b6n.ch/ Twitter: https://twitter.com/brn227 GitHub: https://github.com/brn
鳞ְֿה ؝٦ر؍ؚٝ鋉秈⡲ֻזְկ ٖؽُ٦׃ֻזְկ
tslintָ֮ ֽוְְׇfixתד׃ַ׃גֻזְկ
prettier ׅ׀ֻؿؓ٦وحز׃גֻתׅיկ
Conflict ֮ծֽוֿֿtslintהעאַגתׅי…
tslint-plugin-prettier conflictׅٕ٦ٕכ搀⸬ח׃ת׃׳ֲկֲ׃ת׃׳ֲկ
tslint׃䘌 ➂דַׅיկ pre-commitؿحؙ剅ֹת׃׳ֲ
#!/bin/sh! ! for file in $(git diff --cached --name-only --diff-
filter=ACM | grep '\.tsx\?$' | tr '\n' ' ')! do! echo "prettier $file";! # Prettify all staged .js files! ./node_modules/.bin/tslint $file -c ./tslint.json -- exclude 'src/**/*.css' --project tsconfig.json --fix! ! # Add back the modified/prettified files to staging! git add $file! ! done!
husky and lint-staged 荈ⴓד剅ֻ״嚂דׅיկ huskyדpre-commit鏣㹀׃גlint-stagedדlint剅ֻ
TypeScriptFormatter https://github.com/vvakame/typescript-formatter @vvakameָׁ⡲װא LanguageService⢪גؿؓ٦وحز׃תׅ
None
תה ؝٦سךؿؓ٦وحزכⰋג荈⹛⻉ׅװד