generated from aifrak/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(lint): Add
stylelint
command with its config to lint CSS (#141)
- Loading branch information
Showing
13 changed files
with
4,765 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
last 1 year | ||
>= 1% | ||
not op_mini all | ||
not IE <= 11 | ||
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Local history (VSCode extension) | ||
.history/ | ||
|
||
# NodeJS | ||
node_modules/ | ||
npm_cache/ | ||
|
||
# Elixir | ||
_build/ | ||
cover/ | ||
deps/ | ||
doc/ | ||
.fetch/ | ||
|
||
# ElixirLS (VSCode extension) | ||
.elixir_ls/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Order is important: top configs are overridden by bottom ones | ||
extends: | ||
- stylelint-config-standard | ||
- stylelint-config-recommended | ||
- stylelint-config-sass-guidelines | ||
- stylelint-config-idiomatic-order | ||
- stylelint-a11y/recommended | ||
- stylelint-config-prettier # Must be last | ||
|
||
plugins: | ||
- stylelint-at-rule-no-children | ||
- stylelint-a11y | ||
- stylelint-csstree-validator | ||
- stylelint-color-format | ||
- stylelint-declaration-block-no-ignored-properties | ||
- stylelint-declaration-strict-value | ||
- stylelint-high-performance-animation | ||
- stylelint-no-unsupported-browser-features | ||
- stylelint-use-logical-spec | ||
- stylelint-use-nesting | ||
|
||
rules: | ||
# Rules from core | ||
alpha-value-notation: number | ||
hue-degree-notation: number | ||
font-weight-notation: numeric | ||
color-function-notation: modern | ||
color-no-hex: true | ||
|
||
# Rules from plugins | ||
color-format/format: | ||
format: hsl | ||
csstools/use-nesting: always | ||
csstree/validator: true | ||
liberty/use-logical-spec: true | ||
order/properties-alphabetical-order: null | ||
plugin/declaration-block-no-ignored-properties: true | ||
plugin/no-low-performance-animation-properties: true | ||
plugin/no-unsupported-browser-features: | ||
- true | ||
- severity: warning | ||
scale-unlimited/declaration-strict-value: | ||
- - /color/ | ||
- fill | ||
- stroke | ||
- font-family | ||
- font-size | ||
- line-height | ||
- z-index | ||
- ignoreValues: | ||
/color/: &keywords [currentColor, inherit, transparent] | ||
fill: *keywords | ||
stroke: *keywords | ||
disableFix: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.