From 5c06b630d54cc5e28d46038ae95b00161a58caac Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Jan 29 2019 14:30:13 +0000 Subject: Add prettier for JS Signed-off-by: Aurélien Bompard --- diff --git a/docs/dev-guide/code-style.rst b/docs/dev-guide/code-style.rst index c943c52..f2a9471 100644 --- a/docs/dev-guide/code-style.rst +++ b/docs/dev-guide/code-style.rst @@ -117,3 +117,13 @@ settings by adding the following snippet to your ``tox.ini`` file:: Remember to add ``format`` to your Tox ``envlist``. .. _Black: https://black.readthedocs.io/ + + +Javascript +========== + +Javascript files should be formatted using the `prettier`_ code formatter. It +has support for many editors and can integrate with ESLint to check the code +automatically. + +.. _prettier: https://prettier.io/