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
React / TypeScript_の_コード品質について考えた.pdf
Search
taikishiino
September 01, 2019
Technology
0
72
React / TypeScript_の_コード品質について考えた.pdf
taikishiino
September 01, 2019
Tweet
Share
More Decks by taikishiino
See All by taikishiino
Reactを使ったWebフロントエンドに_アーキテクチャを導入する.pptx.pdf
taikishiino
0
130
Rails / GraphQLでAPIサーバーを開発して感じた使い勝手.pdf
taikishiino
0
110
webにおけるサイトの表示速度と検索順位の研究.pdf
taikishiino
0
49
Other Decks in Technology
See All in Technology
TypeScript の抽象構文木を用いた、数百を超える API の大規模リファクタリング戦略
yanaemon
6
1.3k
CockroachDB はどのくらい「しぶとい」のか? / How tough is CockroachDB?
kota2and3kan
13
4.9k
My road to OSEE Part1
yunolay
0
120
PHP 9 に備えよ - 動的プロパティ、どうすればいぃ?
taisukearase
0
350
20240516 OpenID TechNight Vol.21 「OIDFシェアードシグナルフレームワーク(ID2)を利用してリアルタイムでセキュリティシグナルを共有するための最新情報」
oidfj
0
120
PhpStorm超絶技巧40分集中講義 #phpconkagawa
yusuke
4
780
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
15
36k
.NET GraphQL Client のリアル
sansantech
PRO
1
390
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
170
The depthes of profiling Ruby - RubyKaigi 2024
osyoyu
0
170
「できる!」を増やすGitHub Copilot活用法 / How to use GitHub Copilot to expand your possibilities
sansan_randd
1
240
OPENLOGI Company Profile
hr01
0
46k
Featured
See All Featured
Web Components: a chance to create the future
zenorocha
306
41k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
12
1.1k
The Brand Is Dead. Long Live the Brand.
mthomps
49
30k
Optimizing for Happiness
mojombo
370
69k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Designing the Hi-DPI Web
ddemaree
276
33k
Clear Off the Table
cherdarchuk
86
310k
Building Applications with DynamoDB
mza
88
5.7k
Building an army of robots
kneath
300
41k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
Transcript
React / TypeScript の コード品質について考える created_at: 2019-07-19 updated_at: 2019-07-20
椎野 太喜 (22) > 出身 茨城県出身 > 所属 redish株式会社 新卒エンジニア >
アカウント Twitter: buena926 GitHub: taikishiino 自己紹介
コード品質
プロダクトが立ち上げフィーズ から 運用フェーズに入った テーマのきっかけ
テーマのきっかけ 3ヶ月のフロントエンドリプレイス
テーマのきっかけ 3ヶ月のフロントエンドリプレイス
ソースコードがきたない テーマのきっかけ
たまにキャメルケースがあったり たまにセミコロンがあったり たまにダブルクォートがあったり たまに変な改行があったり ソースコードがきたない テーマのきっかけ
自分のきたないコードをどうやって 隠そうか考えた テーマのきっかけ
方法 Lint達にまかせる
ESLint ・コードクオリティーチェック ・フォーマットルールチェック Prettier (プリティア??) ・フォーマットルールチェック ・自動修正 に特化したツール Component (.tsx)
フォーマット整形 ESLint と Prettireを併用する @eslint-config-prettier ×
Styleライブラリ
styled-component フォーマット整形 stylelint @stylelint-processor-styled-components styled-components用のStyleLint Processor ライブラリ ・フォーマットチェック ・自動修正
いつ フォーマットチェックと自動整形を 走らせるか?
コミット時にチェック/整形 pre-commit機能でgit commit時にeslint --fixが実行
共同開発でのコード品質を一定に commit push
プロジェクトフロー commit push
プロジェクトフロー commit push build & test
プロジェクトフロー commit push build & test masterマージ Trigger build &
deploy
まとめ コーディングルールは 自動整形ツールにまかせよう