eslint-plugin-ghost provides shared ESLint configurations and custom rules for Ghost projects. As of version 3.5.0, it offers presets for Node, browser, Ember, TypeScript, and test environments, with style-disabled variants. It is actively maintained by the Ghost Foundation and follows Ghost's code style documented in base.js. Unlike generic ESLint configs, it is tightly coupled to the Ghost ecosystem, ensuring consistency across official Ghost repos. Release cadence is irregular, driven by changes in Ghost's code style or ESLint updates.
npm install eslint-plugin-ghostVerified import paths — ran on the pinned version, not inferred.
Shows basic setup with 'ghost' plugin and 'plugin:ghost/node' config for a Node.js project.
Update extends to use 'plugin:ghost/[config]' format.
Switch to 'plugin:ghost/ember-no-style' or use @ember/eslint-plugin.
Use configs like 'plugin:ghost/node-no-style' instead of 'plugin:ghost/node'.
Update ESLint to >=5.11.0.
Run 'npm install eslint-plugin-ghost --save-dev' or 'yarn add eslint-plugin-ghost --dev'.
Ensure extends is 'plugin:ghost/node' not 'ghost/node' and that the plugin is installed.
Change extends to 'plugin:ghost/node'.