Last updated October 22, 2018
Theming8.6.x

ESLint is the linting tool of choice for Drupal 8 JavaScript. In this tutorial we'll show how to install the ESLint application and then use it to verify that your JavaScript files are meeting the Drupal coding standards.

Drupal (as of version 8.4) has adopted the Airbnb JavaScript coding standards. In this tutorial, we'll walk through how to install the necessary package dependencies to run eslint on JavaScript files within your Drupal site.