-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add actual
stylelint
configuration
- Loading branch information
Showing
4 changed files
with
19 additions
and
8 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged --config ./.lintstagedrc.yaml | ||
yarn lint-staged |
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
{ | ||
"src/**/*.scss": [ | ||
"stylelint --config ./.stylelintrc.yaml --allow-empty-input --fix" | ||
], | ||
} | ||
src/**/*.scss: | ||
- stylelint --allow-empty-input --fix |
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 @@ | ||
module.exports = { | ||
extends: [ | ||
'@morev/stylelint-config/scss/warn-autofixable', | ||
], | ||
rules: { | ||
// Well, `stylelint-config` designed to be used with style files, | ||
// but it's the library, and some rules make it worse | ||
'max-line-length': null, | ||
'scss/dollar-variable-first-in-block': null, | ||
'scss/dollar-variable-empty-line-before': null, | ||
'length-zero-no-unit': null, | ||
'number-leading-zero': null, | ||
'aditayvm/at-rule-no-children': null, | ||
'declaration-empty-line-before': null, | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.