Custom ESLint plugin for enforcing best practices in Egg.js applications. Version 2.0.0, stable maintenance. It provides rules to catch common mistakes like overriding module.exports/exports, unexpected keys in plugin.js, and leftover .only in tests. Differentiates from generic ESLint rules by being specifically tailored to Egg.js conventions. Released under the Egg.js organization.
npm install eslint-plugin-eggacheVerified import paths — ran on the pinned version, not inferred.
Basic ESLint configuration enabling eggache plugin with recommended rules and custom no-only-tests rule.
Run npm i eslint-plugin-eggache --save-dev
Use extends: ['plugin:eggache/recommended']
Use 'eggache/no-override-exports' in rules object
Use 'eggache/no-override-exports': ['error', true] to enable for all files
Run npm install eslint-plugin-eggache --save-dev
Change extends to 'plugin:eggache/recommended'
Use 'eggache/no-override-exports' as rule name