Registry / testing / eslint-plugin-eggache

eslint-plugin-eggache

JSON →
library2.0.0jsnpmunverified

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-eggache
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-EGGA
E
eslint-plugin-eggache
testingjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

plugin
module.exports.plugins = ['eggache']
require('eslint-plugin-eggache')
ESLint plugins are specified as names in config, not imported directly.
config with extends
extends: ['plugin:eggache/recommended']
extends: ['eggache/recommended']
Must prefix with 'plugin:' when using extends.
rule 'no-override-exports'
'eggache/no-override-exports': ['error']
'no-override-exports': ['error']
Rules must be prefixed with the plugin name.

Basic ESLint configuration enabling eggache plugin with recommended rules and custom no-only-tests rule.

// .eslintrc.cjs module.exports = { plugins: ['eggache'], extends: ['plugin:eggache/recommended'], rules: { 'eggache/no-only-tests': 'error', }, };
Debug
Known issues
gotchaPlugin must be installed as dev dependency: npm i eslint-plugin-eggache --save-dev
fix
Run npm i eslint-plugin-eggache --save-dev
affects: >=0.0.0
gotchaWhen using extends, must prefix with 'plugin:': extends: ['plugin:eggache/recommended']
fix
Use extends: ['plugin:eggache/recommended']
affects: >=0.0.0
gotchaRule names must be prefixed with plugin name: 'eggache/no-override-exports'
fix
Use 'eggache/no-override-exports' in rules object
affects: >=0.0.0
gotchaThe no-override-exports rule by default only checks config files; set option true to check all files.
fix
Use 'eggache/no-override-exports': ['error', true] to enable for all files
affects: >=0.0.0
Errors
Common errors & fixes
Failed to load plugin 'eggache': Cannot find module 'eslint-plugin-eggache'
Missing installation of eslint-plugin-eggache
fix
Run npm install eslint-plugin-eggache --save-dev
ESLint configuration error: Unable to load config 'eggache/recommended'
Missing 'plugin:' prefix in extends
fix
Change extends to 'plugin:eggache/recommended'
Definition for rule 'no-override-exports' was not found
Missing plugin name prefix in rule key
fix
Use 'eggache/no-override-exports' as rule name
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency for ESLint plugin functionality
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-eggache — npm install eslint-plugin-eggache · libregistry