Registry / testing / eslint-config-drupal-bundle

eslint-config-drupal-bundle

JSON →
library2.0.7jsnpmunverified

An ESLint shareable config that bundles Drupal coding standards, Airbnb style, and Prettier formatting into a single package, avoiding peer dependency conflicts. Current stable version is 2.0.7. It is designed for global installation, so you can lint any project without per-project ESLint setup. However, note that as of ESLint 6+, globally installed plugins and configs no longer work due to package loading changes; per-project setup is required for ESLint 6+. This package was primarily used with Drupal 8/9 and Node.js < 12. It is now largely considered outdated; recommended alternative is to use Drupal's official ESLint config or run ESLint per project with yarn/npm.

testing
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Use 'drupal-bundle' (the package's prefix) not the full package name.

module.exports = { extends: ['drupal-bundle'] };

For local install, use the nested node_modules/.bin/eslint path.

./node_modules/eslint-config-drupal-bundle/node_modules/.bin/eslint

Global install still requires .eslintrc with 'drupal-bundle' extends.

module.exports = { extends: ['drupal-bundle'] };

Global install and run ESLint with Drupal config on current directory.

npm install -g eslint-config-drupal-bundle@2.0.7 echo 'module.exports = { extends: ["drupal-bundle"] };' > .eslintrc.js eslint .
Debug
Known footguns
breakingESLint 6+ breaks global plugin loading. This package relies on global installation which no longer works with ESLint >=6.
deprecatedPackage is no longer maintained. Drupal has moved to its own ESLint config in core.
gotchaWhen using with eslint-loader, you must specify the exact path to ESLint binary inside this package's node_modules.
gotchaVSCode ESLint extension requires setting eslint.nodePath to this package's node_modules path.
deprecatedAirbnb base config included but no longer maintained; may bring outdated rules.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
3
ahrefsbot
2
mj12bot
1
Resources