Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Kyle Lahnakoski 7f7ce81589
Support test environment outside of Docker container (#5716)
Work to support running Python tests outside of the Docker container.
This also helps with integration with IDEs and is prework for using Git hooks for precommit/prepush features.
2020-02-05 14:55:03 -05:00
Ed Morley 4cfdae3f41 Bug 1522101 - Use Prettier to format JSON 2019-01-23 20:19:04 +00:00
Ed Morley 2d787000bd Bug 1522101 - Use Prettier to format Markdown 2019-01-23 20:19:04 +00:00
Ed Morley 96fb922072 Bug 1522101 - Use Prettier to format YAML 2019-01-23 20:19:04 +00:00
Ed Morley dc5fc9e6ad Bug 1522101 - Use Prettier to format CSS 2019-01-23 20:19:04 +00:00
Ed Morley ed17bd5a92 Bug 1522101 - Use Prettier to format HTML 2019-01-23 20:19:04 +00:00
Ed Morley 3decefed0b
Clean up the location of generated output directories (#4289)
So that their purposes are clearer and it's easier to differentiate
between generated content and files committed to the repository.

* Neutrino build: `build/` -> `.build/`
* Sphinx build: `_build/` -> `.build-docs/`
* Django collectstatic: `treeherder/static/` -> `.django-static/`
2018-11-16 19:18:18 +00:00
Ed Morley c3567a2a0c
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.
2018-11-16 11:31:00 +00:00
Ed Morley 65b7f4ab45
Bug 1507172 - Use Prettier for formatting JS/JSX (#4276)
Since it's more reliable (and strict) at code formatting than ESLint.
We use it via an ESLint plugin, and so disable the style-related AirBnB
preset rules, leaving the AirBnB guide to handle only correctness and
best practices rules.

It's highly encouraged to use an IDE integration or Git commit hook
to run Prettier (or `yarn lint --fix`) automatically. See:
* https://prettier.io/docs/en/editors.html
* https://prettier.io/docs/en/precommit.html

We may consider enabling a git commit hook out of the box (using eg
Husky) in the future, however they have previously been known to
interfere with partial-staging workflows, so would need to test the
fixes they have made for them thoroughly first.

In future PRs we may also want to start formatting JSON/CSS/Markdown
using Prettier too.
2018-11-16 08:28:34 +00:00