Bug 1507172 - Add additional .prettierignore entries (#4288)

For:
* generated directories such as `build/`
* filetypes that are supported by Prettier, but that we haven't yet
  converted to its style (eg CSS, HTML, JSON, YAML)

These entries are not needed when running Prettier via ESLint, but
help prevent the "format on save" feature of IDE prettier plugins
from auto-formatting files when making unrelated changes to them.

As and when we use Prettier with more filetypes, these can be removed.
This commit is contained in:
Ed Morley 2018-11-16 11:31:00 +00:00 коммит произвёл GitHub
Родитель 65b7f4ab45
Коммит c3567a2a0c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -1,2 +1,17 @@
# Ignore generated directories.
.*/
_build/
build/
treeherder/static/
# Ignore our legacy JS since it will be rewritten when converted to React.
ui/js/
# Ignore Prettier-supported filetypes that we haven't yet converted to its style,
# so that "format on save" doesn't try to format them when making unrelated changes.
*.css
*.html
*.json
*.md
*.yaml
*.yml