Commit Graph
9 Commits
Author SHA1 Message Date
ed49bf10a0 Moved pre-commit support to github.com/pre-commit/mirrors-prettier (#8937)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-11-16 18:27:34 +08:00
e3d1f0dee0 CLI: Add --ignore-unknown (#8829)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-08-21 09:11:59 +08:00
Jonathan Morley 5ccb1b44ab fix: configure pre-commit hook to only output changed files (#7129)
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
2020-06-24 15:11:31 +03:00
Ika fa40f2ddd3 docs(blog): 1.15 release (#5296) 2018-11-07 09:09:04 +08:00
Calum Lind b8ebcd910c Add YAML file extensions to pre-commit hooks config (#5182)
- Prettier support YAML but pre-commit hook was not checking those
  files so added file extensions to hooks config.
- Used double-quoted flow scalar style to make the list of file
  extensions easier to read. Backslash for regex needed escaping and
  backslash each line to prevent YAML including spaces.
- Added alternative markdown file extensions.
2018-11-02 00:21:51 +08:00
Chris Adams 4cc0363b40 Remove HTML from pre-commit hooks until available (#5274)
The pre-commit hook registers for HTML files but that will always fail until #5098 is completed. This means that anyone following [the instructions](https://prettier.io/docs/en/precommit.html#option-3-pre-commit-https-githubcom-pre-commit-pre-commit) will have the hook fail any time they attempt to commit an HTML file.
2018-10-17 08:40:04 +08:00
Mark Larah d298c51cba Add support for markdown with pre-commit (#4021)
Prettier now runs on markdown files! Let's let pre-commit run on those files!
2018-02-21 12:10:25 -05:00
Anthony Sottile 4d68faf195 Use files: over types: in pre-commit configuration (#2759)
See https://github.com/prettier/prettier/issues/2745
2017-09-05 12:17:02 -07:00
Anthony Sottile 19cd7d3227 Add pre-commit metadata directly to prettier (#2414) 2017-07-06 20:13:52 +02:00