Skip to content

Rule Change: Add autofix capability to the no-important rule #204

@thecalamiity

Description

@thecalamiity

What rule do you want to change?

no-important

What change do you want to make?

Implement autofix

How do you think the change should be implemented?

Other

Example code

.button {
  color: red !important;
}

What does the rule currently do for this code?

Currently, the rule reports an error for the usage of !important, but does not offer an autofix.

What will the rule do after it's changed?

After the change, the rule will provide an autofix that removes the !important flag from the declaration, resulting in:

.button {
  color: red;
}

Participation

  • I am willing to submit a pull request to implement this change.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionenhancementNew feature or request

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions