-
Notifications
You must be signed in to change notification settings - Fork 1
#490 [Stylelint] disallowed-listを指定する時は回答を用意する #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
#490 [Stylelint] disallowed-listを指定する時は回答を用意する #491
Conversation
Update: 既存のunit-disallowed-listにメッセージを付ける
Feat: `v-`の使用を禁止し、`sv-`, `dv-`, `lv-` を利用するように強制する
Update: 既存のdeclaration-property-value-disallowed-listにメッセージを付ける
Update: <length>単位のFeedbackの値を変更(`vm`は存在しないので削除)
Feat: Option: displayの単一構文を禁止 Feat: Option: z-indexの数値指定を禁止
dz-furukawa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
オプションを含めた各変更点について、「なぜ禁止なのか」「代わりに何を使うべきか」が明示的に示されており、開発者体験の向上に繋がる適切な改善だと思います。Approveいたします。
Fix: block flow list-item などは3値あるので、「複数キーワード構文」のほうがより適切であるためメッセージを修正 Fix: 各メッセージの表記揺れを修正
|
@tak-dcxi z-indexの変数管理とcontentプロパティの値は議論が必要かなと思い、ひとまず保留させてください。
|
|
@tak-dcxi return `Unicode値 "${value}" を指定せず、表示したいテキストをそのまま指定してください。`; |
- fix: contentメッセージ変更
対応しました。 |
変更内容
packages/@d-zero/stylelint-config/values.jsにメッセージを追加v-単位を禁止してsvdvlvを利用するように強制v-単位はアプリ内ブラウザで挙動に差異があるためオプション
追加で以下の2点を導入しています。取り込むも取り込まないのも自由
displayの単一構文を禁止(ボックスモデルの理解を深める、inline-blockなどがになっているなどの理由)z-indexは全て変数管理以下は自分の
z-indexの管理を引用したもの