Skip to content

CSS の !important; を禁止するよう Stylelint の設定を変更する #189

Open
@ryamakuchi

Description

@ryamakuchi

解決したい問題

CSS で !important; を使っても Stylelint エラーにならない。
!important; を使ってしまうとスタイルの優先順位が問答無用で高くなってしまいあまり良くないため、Stylelint の設定をしたい。

問題を解決するために

  • Stylelint の設定を調査する
  • Stylelint の設定をする

この Issue の完了条件

  • CSS で !important; を使うと Lint エラーが出ること

参考

https://github.com/stylelint/stylelint/tree/master/lib/rules/declaration-no-important

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions