An ESLint plugin to match the Drupal standard for contrib modules and themes.
Extends eslint-config-airbnb and eslint-config-prettier.
For more detail on the rules implemented, see the config itself:
# latest stable
npm install eslint@8 prettier@3 --save-dev
npm install eslint-plugin-drupal-contrib@2 --save-dev
Add the following to your eslint configuration file
extends: ["plugin:drupal-contrib/recommended"]
Add the following to your eslint configuration file
extends: ["plugin:drupal-contrib/jquery"]
Add the following to your eslint configuration file
extends: ["plugin:drupal-contrib/legacy"]
Add the following to your eslint configuration file
extends: ["plugin:drupal-contrib/passing"]
This project uses Semantic Versioning 2.0.0 to keep track of releases.
For more detailed information about SemVer, please see the official documentation.
If you're interested in contributing to the project, please read the Contribution Guidelines. Any and all contributions must follow these guidelines or they will not be accepted.