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
叱られて覚えるES2015
Search
Sota Sugiura
July 02, 2016
Programming
1
1.5k
叱られて覚えるES2015
YAP(achimon)C::Asia Hachioji 2016 LT 発表資料
Sota Sugiura
July 02, 2016
Tweet
Share
More Decks by Sota Sugiura
See All by Sota Sugiura
内製したSlack Appで頑張るIncident Response@Waroom Meetup #1 / Incident Response with Slack App in 10X
sota1235
0
1.1k
20220926_セキュリティチームの今_for_Drs._Prime_公開用.pdf
sota1235
0
75
再発防止策を考える技術 / #phpconsen
sota1235
10
3.7k
How to choose the best npm module for your team?
sota1235
9
550
Realtime Database for high traffic production application
sota1235
7
3.9k
Road to migrate JP Web as a microservice
sota1235
4
1.5k
インターフェース再入門 / Think Interface again
sota1235
6
10k
再発防止策を考える技術 #phpconfuk_rej
sota1235
1
1.1k
Update around Firebase #io18
sota1235
3
4.2k
Other Decks in Programming
See All in Programming
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
ヤプリ新卒SREの オンボーディング
masaki12
0
130
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
910
Outline View in SwiftUI
1024jp
1
320
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
2
660
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
受け取る人から提供する人になるということ
little_rubyist
0
230
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
1
290
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
Featured
See All Featured
The Language of Interfaces
destraynor
154
24k
A designer walks into a library…
pauljervisheath
203
24k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
120
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Making Projects Easy
brettharned
115
5.9k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
What's in a price? How to price your products and services
michaelherold
243
12k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Bash Introduction
62gerente
608
210k
Code Reviewing Like a Champion
maltzj
520
39k
Transcript
ࣤΒΕ֮ͯ͑Δ &4 !TPUB :"1 BDIJNPO $"TJB)BDIJPKJ-JHIUJOH5BML
ࣗݾհ w !TPUB w +4ྺ w ͖ͳݴ༿ɿ7 w ݏ͍ͳݴ༿ɿ*OUFSOFU&YQMPSFS
&4
&4 w ࡢϦϦʔε͞Εͨ&$."4DSJQUͷ৽͍͠όʔ δϣϯ w ʲॕʳ&4͜ͷલग़ͨΑ
&4ͱͷҧ͍ w લճόʔδϣϯ͔Βͷมߋ͕ΊͪΌͪ͘Όଟ͍ w ྆खͷࢦͰऩ·Βͳ͍ͷ৽ػߏ͕ʜ w ࠓ·ͰͭΒ͔ͬͨ+4ͷͷଟ͕͘ղܾ͞Εͨ
#VU ৽ػೳଟ͓͗͢΅͑ΒΕͳ͍ʜ Ňŏ﹏ŏ
/FXGFBUVSFT w DPOTUMFU w BSSPXGVODUJPO w PCKFDUMJUFSBM w DMBTTTZOUBY w
1SPYZ w 4ZNCPM w FYQPSUJNQPSU w TQSFBEPQFSBUPS w EFGBVMUQBSBNFUFS w BOENPSF ꒪⌓꒪
֮͑Δͷେมʜ
͜͏͍͏࣌Ͳ͏͖͚ͯͨͬ͠ʜ ɾТɾʆ
ࠓ·Ͱͷਓੜ w ॓
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ w Ոࣄ
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ w ՈࣄˠࣤΒΕ͔ͯΒΔ
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ w ՈࣄˠࣤΒΕ͔ͯΒΔ w डݧษڧ
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ w ՈࣄˠࣤΒΕ͔ͯΒΔ w डݧษڧˠࣤΒΕ͔ͯΒΔ
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ w ՈࣄˠࣤΒΕ͔ͯΒΔ w डݧษڧˠࣤΒΕ͔ͯΒΔ w ࣄ
ࠓ·Ͱͷਓੜ w ॓ˠࣤΒΕ͔ͯΒΔ w ՈࣄˠࣤΒΕ͔ͯΒΔ w डݧษڧˠࣤΒΕ͔ͯΒΔ w ࣄˠࣤΒΕ͔ͯΒຊؾͩ͢
ʮ͓ࣤΓʯͦ͜Ϟνϕʔγϣϯ w ਓࣤΒΕΔͱؤுΕΔ w զʑͷۀքͰ SZ
ٹੈओΛ୳͢ʜ +4จ๏Λࣤͬͯ͘ΕΔਓ͍ͳ͍ͩΖ͏͔
ٹੈओΛ୳͢ʜ +4จ๏Λࣤͬͯ͘ΕΔਓ͍ͳ͍ͩΖ͏͔
&4-JOU w +BWB4DSJQUͷจ๏νΣοΧʔ w ඇৗʹ๛ͳϧʔϧ͕༻ҙ͞ΕͯΔ w ଞͷਓͷϧʔϧϑΝΠϧΛJNQPSU͢Δ͜ͱ͕Մೳ
͍ΖΜͳϧʔϧ w FTMJOUDPOpHFTMJOU w FTMJOUDPOpHBJSCOC w FTMJOUDPOpHHPPHMF w FTMJOUDPOpHTUBOEBSE w
FUD
FTMJOUDPOpHBJSCOC w &4༻ϧʔϧΛҰ൪࠷ॳʹ࡞Γ࢝Ίͨ w ਓؾϧʔϧ w &4ه๏Ͱॻ͘ͱΊͪΌͪ͘ΌౖΒΕΔ w IUUQTHJUIVCDPNBJSCOCKBWBTDSJQUCMPCNBTUFS QBDLBHFTFTMJOUDPOpHBJSCOCCBTFSVMFTFTKT
ͯ͜ͱͰ w "JSCOCϧʔϧͰ&4Λ֮͑Δ
ҧ͏ ʄшʄ ސ٬ͷٻΊͯΔͷͦ͏͡Όͳ͍
ސ٬ͷຊʹඞཁͩͬͨͷ ʴ
ސ٬ͷຊʹඞཁͩͬͨͷ ⋵ ʴ
͜͜·Ͱ৺ߏ͑ͷ ࣮ࡍʹࢼͯ͠ΈΔ
ਓப w IUUQTHJUIVCDPNTPUB1BSUZ w 3FBDU /PEFKTͷੲॻ͍ͨΞϓϦΛνΣοΫ ͢Δ
*OTUBMM $ npm i -D eslint \ eslint-config-airbnb \ eslint-plugin-import
\ eslint-plugin-react
FTMJOUSD { "extends": "airbnb" }
$PNNBOE $ ./node_modules/eslint/bin/eslint.js src/ # or $ npm run lint
# package.jsonͰ”eslint src/“Λఆٛ
%&.0
݁Ռ w ίʔυྔߦ w ͷΤϥʔͱͷܯࠂ͕ग़ͨ w զʑͷۀքE SZ
&4༝དྷͷΤϥʔ • Unexpected var, use let or const instead •
'option' is never reassigned, use 'const' instead • Expected property shorthand
&4༝དྷͷΤϥʔ • Unexpected var, use let or const instead •
'option' is never reassigned, use 'const' instead • Expected property shorthand WBS͡Όͳͯ͘MFU DPOTUΛ͑ ࠶ೖ͠ͳ͍ͳΒDPOTU͑ 0CKFDUTIPSUIBOEͰॻ͚Δͥ
ଞʹʜ w ඇৗʹଟ͘ͷϧʔϧ͕ఆٛ͞Ε͍ͯΔ w ͬͯΔه๏Ͱؤுͬͯॻ͍ͯɺ࿙ΕͨͷΛ &4-JOUʹࣤͬͯΒ͏ͱΑ͍
·ͱΊ
େࣄͳͷϞνϕʔγϣϯ w ࣤΒΕΔͱؤுΕΔ w ࣤͬͯ͘ΕΔ͜ͱΛ͝๙ඒͩͱࢥ͑ͬͱؤ ுΕΔ w &4-JOUʹࣤͬͯΒָͬͯ͘͠&4ֶश
Ҏ্ɺղࢄʂ