check if .stylelintrc* configuration exist

This commit is contained in:
Serhiy Mytrovtsiy 2019-11-11 13:30:12 +01:00
parent fd2e4cb297
commit 56d5d77d89
3 changed files with 8 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,6 +1,6 @@
.idea
.git
node_modules
.stylelintrc
.stylelintr2c
yarn.lock
package.json

6
.stylelintrc Normal file
View file

@ -0,0 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2
}
}

View file

@ -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\": {