Added default option for prettier

This commit is contained in:
2020-01-16 16:59:41 +01:00
parent 07dc95a6c7
commit a7de566991
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ A GitHub action for styling files with [prettier](prettier.io).
| Parameter | Required | Default | Description | | Parameter | Required | Default | Description |
| - | - | - | - | | - | - | - | - |
| prettier_options | :white_check_mark: | - | Prettier options | | prettier_options | :x: | '--write "{,!(node_modules)/**/}*.js"' | Prettier options (by default it applies to the whole repository) |
| commit_options | :x: | - | Custom git commit options | | commit_options | :x: | - | Custom git commit options |
| commit_message | :x: | 'Prettified Code!' | Custom git commit message | | commit_message | :x: | 'Prettified Code!' | Custom git commit message |
| file_pattern | :x: | '*' | Custom git add file pattern | | file_pattern | :x: | '*' | Custom git add file pattern |

View File

@@ -17,7 +17,8 @@ inputs:
default: '*' default: '*'
prettier_options: prettier_options:
description: Options for the 'prettier' command description: Options for the 'prettier' command
required: true required: false
default: '--write "{,!(node_modules)/**/}*.js"'
branch: branch:
description: Branch which the changes are merged to description: Branch which the changes are merged to
required: true required: true