mirror of
https://github.com/actions-hub/stylelint.git
synced 2024-11-21 23:40:56 -05:00
check if .stylelintrc* configuration exist
This commit is contained in:
parent
fd2e4cb297
commit
56d5d77d89
3 changed files with 8 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
|||
.idea
|
||||
.git
|
||||
node_modules
|
||||
.stylelintrc
|
||||
.stylelintr2c
|
||||
yarn.lock
|
||||
package.json
|
6
.stylelintrc
Normal file
6
.stylelintrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules": {
|
||||
"indentation": 2
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@ if [ ! -e stylelint_path ]; then
|
|||
yarn add stylelint stylelint-config-standard --silent
|
||||
fi
|
||||
|
||||
if [ ! -e "${configPath}.stylelintrc" ] && [ ! -e "${configPath}.stylelint.json" ]; then
|
||||
if [ ! "$(echo ${configPath}.stylelintrc*)" != "${configPath}.stylelintrc*" ]; then
|
||||
echo "{
|
||||
\"extends\": \"stylelint-config-standard\",
|
||||
\"rules\": {
|
||||
|
|
Loading…
Reference in a new issue