Skip to content

Commit

Permalink
check if .stylelintrc* configuration exist
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Nov 11, 2019
1 parent fd2e4cb commit 56d5d77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.idea
.git
node_modules
.stylelintrc
.stylelintr2c
yarn.lock
package.json
6 changes: 6 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2
}
}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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\": {
Expand Down

0 comments on commit 56d5d77

Please sign in to comment.