{"id":19733,"library":"eslint-plugin-eggache","title":"eslint-plugin-eggache","description":"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.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/eggjs/eslint-plugin-eggache","tags":["javascript"],"install":[{"cmd":"npm install eslint-plugin-eggache","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-eggache","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-eggache","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for ESLint plugin functionality","package":"eslint","optional":false}],"imports":[{"note":"ESLint plugins are specified as names in config, not imported directly.","wrong":"require('eslint-plugin-eggache')","symbol":"plugin","correct":"module.exports.plugins = ['eggache']"},{"note":"Must prefix with 'plugin:' when using extends.","wrong":"extends: ['eggache/recommended']","symbol":"config with extends","correct":"extends: ['plugin:eggache/recommended']"},{"note":"Rules must be prefixed with the plugin name.","wrong":"'no-override-exports': ['error']","symbol":"rule 'no-override-exports'","correct":"'eggache/no-override-exports': ['error']"}],"quickstart":{"code":"// .eslintrc.cjs\nmodule.exports = {\n  plugins: ['eggache'],\n  extends: ['plugin:eggache/recommended'],\n  rules: {\n    'eggache/no-only-tests': 'error',\n  },\n};","lang":"javascript","description":"Basic ESLint configuration enabling eggache plugin with recommended rules and custom no-only-tests rule."},"warnings":[{"fix":"Run npm i eslint-plugin-eggache --save-dev","message":"Plugin must be installed as dev dependency: npm i eslint-plugin-eggache --save-dev","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use extends: ['plugin:eggache/recommended']","message":"When using extends, must prefix with 'plugin:': extends: ['plugin:eggache/recommended']","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use 'eggache/no-override-exports' in rules object","message":"Rule names must be prefixed with plugin name: 'eggache/no-override-exports'","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use 'eggache/no-override-exports': ['error', true] to enable for all files","message":"The no-override-exports rule by default only checks config files; set option true to check all files.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install eslint-plugin-eggache --save-dev","cause":"Missing installation of eslint-plugin-eggache","error":"Failed to load plugin 'eggache': Cannot find module 'eslint-plugin-eggache'"},{"fix":"Change extends to 'plugin:eggache/recommended'","cause":"Missing 'plugin:' prefix in extends","error":"ESLint configuration error: Unable to load config 'eggache/recommended'"},{"fix":"Use 'eggache/no-override-exports' as rule name","cause":"Missing plugin name prefix in rule key","error":"Definition for rule 'no-override-exports' was not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}