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

5 Коммитов

Автор SHA1 Сообщение Дата
renovate[bot] d6ba99312c
Update dependency prettier to v2 (#6323)
* Update dependency prettier to v2
* Automatic prettier fixes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Armen Zambrano G <armenzg@mozilla.com>
2020-04-30 15:40:38 -04: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
Ed Morley 7af125f626 Bug 1505758 - Fix/enable ESLint 'prefer-template'
https://eslint.org/docs/rules/prefer-template
2018-11-08 16:27:37 +00:00
Cameron Dawson 135615d308
Bug 1450038 - Stop using dangerouslySetInnerHTML (#3785)
Using components based on react-linkify, we can replace all
usages of dangerouslySetInnerHtml.  This also allowed us
to remove a few related helper functions.

enable no-danger eslint rule
2018-07-16 08:09:17 -07:00
Cameron Dawson bc4e8a7b14
Bug 1450032 - Convert bottom (secondary) nav bar to ReactJS (#3779)
Also convert term resultState back to resultStatus

I had wanted to migrate to using "resultState" instead, as it
seemed more descriptive of what it is.  But the filter params
are using "resultStatus" and it would not be worth
the effort to migrate.  It doesn't really matter, but I want to be
consistent to remove confusion, so moving these terms back
to "resultStatus"-ish names.
2018-07-13 16:04:51 -07:00