Commit 211c9391 authored by Robert Knight's avatar Robert Knight

Update development docs to mention Prettier in Code Style section

 - Advise developers to set up editor integrations for ESLint and Prettier
 - Remove the `eslint --fix` advice since most auto-fixable suggestions
   from ESLint are stylistic changes that are already handled by
   Prettier
parent a1c2b014
...@@ -144,18 +144,20 @@ Code Style ...@@ -144,18 +144,20 @@ Code Style
JavaScript JavaScript
########## ##########
Hypothesis uses ESLint to help maintain style consistency. You can check your Hypothesis uses ESLint_ (a linter) and Prettier_ (an automated code formatter)
changes for conformance using: to ensure style consistency and help prevent common mistakes. Plugins are
available for most editors for these tools. We recommend that you set these up
before making changes to the code.
To auto-format code and run lint checks locally using the CLI, run:
.. code-block:: sh .. code-block:: sh
make format
make lint make lint
Many lint errors can be fixed automatically using: .. _ESLint: https://eslint.org
.. _Prettier: https://prettier.io
.. code-block:: sh
./node_modules/.bin/eslint --fix
CSS CSS
### ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment