An ESLint image for Drupal 8.
docker run -it --rm -v /path/to/code:/app millerrs/eslint-drupal8
stage('Run ESLint') {
agent {
docker {
image 'millerrs/eslint-drupal8'
}
}
steps {
sh 'eslint web/modules/custom'
}
}