Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
f0f64465
Unverified
Commit
f0f64465
authored
Feb 06, 2019
by
Robert Knight
Committed by
GitHub
Feb 06, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #936 from hypothesis/eslint-prettier-docs
Update Code Style docs to mention ESLint and Prettier
parents
a1c2b014
fbec5307
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
developing.rst
docs/developers/developing.rst
+9
-7
package.json
package.json
+1
-1
No files found.
docs/developers/developing.rst
View file @
f0f64465
...
...
@@ -144,18 +144,20 @@ Code Style
JavaScript
##########
Hypothesis uses ESLint to help maintain style consistency. You can check your
changes for conformance using:
Hypothesis uses ESLint_ (a linter) and Prettier_ (an automated code formatter)
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
make format
make lint
Many lint errors can be fixed automatically using:
.. code-block:: sh
./node_modules/.bin/eslint --fix
.. _ESLint: https://eslint.org
.. _Prettier: https://prettier.io
CSS
###
...
...
package.json
View file @
f0f64465
...
...
@@ -147,7 +147,7 @@
"deps"
:
"check-dependencies"
,
"lint"
:
"eslint ."
,
"checkformatting"
:
"prettier --check 'src/**/*.js'"
,
"format"
:
"prettier --write 'src/**/*.js'"
,
"format"
:
"prettier --
list-different --
write 'src/**/*.js'"
,
"test"
:
"gulp test"
,
"report-coverage"
:
"codecov -f coverage/coverage-final.json"
,
"version"
:
"make clean build/manifest.json"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment