Refs #22463 -- Replaced JSHint with ESLint in contributing docs.

This commit is contained in:
Jignesh Kotadiya 2020-04-20 14:23:00 +05:30 committed by GitHub
parent 35a67b3731
commit 7b4bd2a82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -20,9 +20,9 @@ Code style
Different JavaScript files sometimes use a different code style. Please try to Different JavaScript files sometimes use a different code style. Please try to
conform to the code style of each file. conform to the code style of each file.
* Use the `JSHint`_ code linter to check your code for bugs and style errors. * Use the `ESLint`_ code linter to check your code for bugs and style errors.
JSHint will be run when you run the JavaScript tests. We also recommended ESLint will be run when you run the JavaScript tests. We also recommended
installing a JSHint plugin in your text editor. installing a ESLint plugin in your text editor.
* Where possible, write code that will work even if the page structure is later * 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 changed with JavaScript. For instance, when binding a click handler, use
@ -147,6 +147,6 @@ Then run the tests with:
.. _Closure Compiler: https://developers.google.com/closure/compiler/ .. _Closure Compiler: https://developers.google.com/closure/compiler/
.. _EditorConfig: https://editorconfig.org/ .. _EditorConfig: https://editorconfig.org/
.. _Java: https://www.java.com .. _Java: https://www.java.com
.. _jshint: https://jshint.com/ .. _eslint: https://eslint.org/
.. _node.js: https://nodejs.org/ .. _node.js: https://nodejs.org/
.. _qunit: https://qunitjs.com/ .. _qunit: https://qunitjs.com/