Skip to content

Commit

Permalink
[3.0.x] Refs #22463 -- Replaced JSHint with ESLint in contributing docs.
Browse files Browse the repository at this point in the history
Backport of 7b4bd2a from master
  • Loading branch information
JK-0 authored and felixxm committed Apr 20, 2020
1 parent 192c1ec commit abe33c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/internals/contributing/writing-code/javascript.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Code style
Different JavaScript files sometimes use a different code style. Please try to
conform to the code style of each file.

* Use the `JSHint`_ code linter to check your code for bugs and style errors.
JSHint will be run when you run the JavaScript tests. We also recommended
installing a JSHint plugin in your text editor.
* Use the `ESLint`_ code linter to check your code for bugs and style errors.
ESLint will be run when you run the JavaScript tests. We also recommended
installing a ESLint plugin in your text editor.

* Where possible, write code that will work even if the page structure is later
changed with JavaScript. For instance, when binding a click handler, use
Expand Down Expand Up @@ -147,6 +147,6 @@ Then run the tests with:
.. _Closure Compiler: https://developers.google.com/closure/compiler/
.. _EditorConfig: https://editorconfig.org/
.. _Java: https://www.java.com
.. _jshint: https://jshint.com/
.. _eslint: https://eslint.org/
.. _node.js: https://nodejs.org/
.. _qunit: https://qunitjs.com/

0 comments on commit abe33c1

Please sign in to comment.