Skip to content

Commit

Permalink
feat: Adds stylelint with recommended configs and rules from Indicati…
Browse files Browse the repository at this point in the history
…ve (#82)

Co-authored-by: jared-dickman <zenador15@gmail.com>
  • Loading branch information
tibuurcio and jared-dickman committed Jan 29, 2024
1 parent 8dcdd14 commit 4dd5380
Show file tree
Hide file tree
Showing 3 changed files with 733 additions and 12 deletions.
55 changes: 55 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"extends": [
"stylelint-config-standard"
],
"plugins": [
"stylelint-no-indistinguishable-colors"
],
"rules": {
"block-no-empty": true,
"comment-no-empty": true,
"no-duplicate-selectors": true,
"selector-type-no-unknown": null,
"no-descending-specificity": null,
"media-feature-name-no-unknown": null,
"function-calc-no-unspaced-operator": true,
"declaration-block-single-line-max-declarations": 1,
"selector-type-case": "lower",
"rule-empty-line-before": [
"always-multi-line",
{
"ignore": [
"first-nested",
"after-comment"
]
}
],
"property-no-unknown": [
true,
{
"severity": "warning"
}
],
"property-disallowed-list": [
"margin-top",
"font-size",
"stroke",
"fill"
],
"unit-allowed-list": [
"em",
"rem",
"s",
"px",
"%",
"vw",
"vh",
"ms",
"deg",
"ch",
"cm",
"dpi",
"fr"
]
}
}
Loading

0 comments on commit 4dd5380

Please sign in to comment.