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.
codfish
✓ module.exports = { extends: ['codfish'] }
✗ module.exports = { extends: 'codfish' }
The extends value must be an array in ESLint config. Single string is not valid.
codfish/dapp
✓ module.exports = { extends: ['codfish', 'codfish/dapp'] }
✗ module.exports = { extends: 'codfish/dapp' }
dApp config is a sub-config; best used as additional extend.
codfish/react
✓ module.exports = { extends: ['codfish/react'] }
✗ module.exports = { extends: 'codfish/react' }
Standalone React config; typically not needed as main config detects React automatically.
Shows minimal ESLint configuration extending eslint-config-codfish and recommended Prettier config.
module.exports = {
extends: ['codfish'],
rules: {
'no-console': 'warn',
},
};
// .prettierrc.js
module.exports = {
printWidth: 100,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: false,
proseWrap: 'always',
};
Debug
Known issues
breakingVersion 13.0.0 upgraded to ESLint 10, which may break configs expecting ESLint 8 or 9.fixEnsure your project uses ESLint ^10.0.0. Update peer dependencies accordingly.
affects: >=13.0.0
deprecatedThe dapp sub-config may be deprecated in future versions as core config includes docker-like ignores.fixCheck changelog; consider not using 'codfish/dapp' if core config meets needs.
affects: >=12.0.0
breakingVersion 11.x required ESLint ^8.2.0; older configs with ESLint 7 will fail.fixUpgrade ESLint to ^8.2.0 or use eslint-config-codfish@10.x.
affects: >=11.0.0 <13.0.0
gotchaThe config assumes Jest is installed as a project dependency; otherwise Jest rules are not applied. This may cause confusion if linting test files.fixEnsure jest is in devDependencies if you want Jest-specific lint rules.
affects: all
Errors
Common errors & fixes
Error: Failed to load config "codfish" to extend from.
eslint-config-codfish not installed or not in node_modules.
fixRun `npx install-peerdeps eslint-config-codfish` to install with all peer deps.
Error: Cannot find module 'eslint-config-codfish'
Package not installed or ESLint cannot resolve scoped config.
fixInstall eslint-config-codfish as a devDependency: `npm install --save-dev eslint-config-codfish`.
Error: ESLint configuration is invalid: "extends" value 'codfish' is not defined.
ESLint config file syntax error (extending a single string instead of array).
fixUse `extends: ['codfish']` with array syntax.
Error: Failed to load parser '@typescript-eslint/parser'
TypeScript parser not installed as a dependency.
fixInstall peer dependencies: `npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin`.
Audit
Dependencies
eslintrequiredpeer dependency: ESLint is required to run linting
prettierrequiredpeer dependency: Prettier formatting integrated via plugin
typescriptoptionalpeer dependency: needed for TypeScript support
@babel/coreoptionalpeer dependency: Babel required for parsing when using TypeScript or JSX