Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Stylelintの取扱説明書
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
moro
October 03, 2019
Programming
810
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
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
880
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
140
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
sbt 2.0: takeoff
eed3si9n
0
160
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
300
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
460
Workers Cache を知る
syumai
0
360
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
440
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
Done Done
chrislema
187
17k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
How GitHub (no longer) Works
holman
316
150k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
ラッコキーワード サービス紹介資料
rakko
1
5.3M
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
410
It's Worth the Effort
3n
188
29k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
Building an army of robots
kneath
307
47k
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