ESlint with Drupal8

https://www.drupal.org/docs/develop/standards/javascript/eslint-settings

npm install --global eslint-config-drupal-bundle
- Core developers: cd core && npm run-script lint:core-js - Contrib developers using new standards: ./core/node_modules/eslint/.bin/eslint.js --config=./core/.eslintrc.json --ext=.es6.js modules/my_module/js - Contrib developers using legacy standards: ./core/node_modules/eslint/.bin/eslint.js --config=./core/.eslintrc.legacy.json --ext=.js modules/my_module/js.
Other notes:

Comments

Popular posts from this blog

Programatically create layout builder section in Drupal

Code quality analysis of Drupal. Can I use Sonar?

Set up Drupal7 to Drupal8 migration in simple steps (using Drush)