By nod_ on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0-alpha12
Issue links:
Description:
Drupal is now using ESLint to check all core and contrib JavaScript.
The following configuration files have been committed to core: .eslintrc and .eslintignore. The details of their configuration options can be found on the doc page: ESLint settings.
All core patches touching a JS file have to be manually checked with ESLint and must pass without errors. In case the situation is not clear, reach out to the closest JS maintainer.
How to use
If you've installed eslint, then cd /var/www/example.com (go to your Drupal root), and do eslint .
to lint your entire Drupal site (including core, contrib and custom code).
(This change notice replaces and invalidate the previous change notice about using JSHint)
Impacts:
Module developers
Themers