Currently, the pre-commit hook will output all files that prettier analyzes. The changed lines are highlighted in the terminal, but this highlighting is not always successful (e.g. we have seen the highlighting disappear when running inside Jenkins) This sets prettier (when running within pre-commit) to only output changed files
17 lines
265 B
YAML
17 lines
265 B
YAML
- id: prettier
|
|
name: prettier
|
|
entry: prettier --write --list-different
|
|
language: node
|
|
files: "\\.(\
|
|
css|less|scss\
|
|
|graphql|gql\
|
|
|html\
|
|
|js|jsx\
|
|
|json\
|
|
|md|markdown|mdown|mkdn\
|
|
|mdx\
|
|
|ts|tsx\
|
|
|vue\
|
|
|yaml|yml\
|
|
)$"
|