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
Stylelintの取扱説明書
Search
moro
October 03, 2019
Programming
800
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stylelintの取扱説明書
moro
October 03, 2019
Other Decks in Programming
See All in Programming
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
120
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
430
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
270
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
550
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
0
130
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
500
VibeCodingからAgenticWorkflowへ
starfish719
0
460
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
260
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
690
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
360
テーブルをDELETEした
yuzneri
0
140
AIが無かった頃の素敵な出会いの話
codmoninc
1
430
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.3k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
390
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
990
Facilitating Awesome Meetings
lara
57
7.1k
How to Think Like a Performance Engineer
csswizardry
28
2.7k
Designing Experiences People Love
moore
143
24k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
480
New Earth Scene 8
popppiees
3
2.5k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
170
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Transcript
Stylelintの 取扱説明書 2019年10月3日 Meguro.css@ラクスル 電気通信大学 実質4年 moro
自己紹介 名 前 moro 出 身 埼玉県 職 業 学生
年 齢 (才) 22 ツ イ ッ タ ー @mo__ro__ ス キ ル React, CSS • 大学2年の終わりに大学を休学。 • 紆余曲折あり現在休学2年目に突入。 • 大学に戻る気はもうなさそう。
もくじ • 概要紹介 • 使用前の準備 • 動作確認 • 上手な使い方
概要紹介
そもそも、Stylelintって? 概要紹介
潜在的なエラーを発見し スタイルに一貫性を持たせるのを 助けてくれるツール 概要紹介
簡単な例 概要紹介
潜在的なエラー 概要紹介
潜在的なエラー “collorなんてプロパティ知らないぞっ” stylelintより 概要紹介
スタイルの統一 概要紹介
スタイルの統一 “オマエのチームだと’#FFF’じゃなくて’#fff’らしいぜ” stylelintより 概要紹介
使用前の準備
使用前の準備 必要なもの Stylelint Config
だけ
手順1. npmモジュールをインストール または 手順2. プロジェクトのルートディレクトリに .stylelintrc.json を作成 使用前の準備
手順3. configファイルを編集 今回は勝手におすすめの設定をしてくれる stylelint-config-standard を使用 詳細はこちら: https://github.com/stylelint/stylelint-config-standard または 使用前の準備
.stylelintrc.json 使用前の準備
だけ
動作確認
上手な使い方
上手な使い方 1. メッセージのカスタマイズ
上手な使い方 Stylelint導入後のある日...
上手な使い方 アンチCSSの Kさん 仕方ねえ、 仕事だしCSS書くかあ
アンチCSSの Kさん 上手な使い方 “オマエのチームだと’#FFF’じゃなくて’#fff’らしいぜ” stylelintより
上手な使い方 アンチCSSの Kさん 誰だ こんなツール入れたの
上手な使い方 Q. Kさんはなぜイラついた?
上手な使い方 A. メッセージがあまりにも無機質だったから
上手な使い方 .stylelintrc.json 解決策
上手な使い方 仕方ねえ、 直すか。。。。
上手な使い方 2. husky & lit-staged
huskyとは commitやpushの前に タスクを走らせてくれる
lit-stagedとは stagingファイルに対して lintを走らせてくれる
上手な使い方 つまり
上手な使い方 lintがかかっていないファイルの commitを防ぐことができる
上手な使い方 package.json
上手な使い方 lintエラーを含んだCSSファイルをコミットしようとすると...
上手な使い方 ただし
上手な使い方 気をつけましょう
おまけ
おまけ インターン先 / 就職先 大募集中でございます。 Twitter: @mo__ro__
None