Registry / devops / eslint-config-exzeo

eslint-config-exzeo

JSON →
library2.0.0jsnpmunverified

Shareable ESLint flat config for Exzeo projects, v2.0.0+ built for ESLint v9's flat config system. Exports four presets: base, mocha, typescript (ts), and ts-mocha. Peer depends on @babel/eslint-parser, eslint-plugin-import, and typescript-eslint. Designed for easy composition via spread operator or tseslint.config helper. Ignores node_modules and documentation by default. Node >=18.18.0 required. Minimal customization overhead with explicit overrides.

npm install eslint-config-exzeo
INSTALL
IMPORT
SIG · ESLINT-CONFIG-EXZE
E
eslint-config-exzeo
devopsjavascriptv2.0.0
harness data pending
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.

exzeoBase
import exzeoBase from 'eslint-config-exzeo/base'
const exzeoBase = require('eslint-config-exzeo/base')
ESM-only; requires Node 18.18+ with 'type': 'module' or .mjs extension
exzeoMochaConfig
import exzeoMochaConfig from 'eslint-config-exzeo/mocha'
import { exzeoMochaConfig } from 'eslint-config-exzeo'
Named export not available; import default from subpath, not package root
tseslint.config
import tseslint from 'typescript-eslint'
import { config } from 'typescript-eslint'
Use tseslint.config() helper to compose TypeScript presets; package must be installed separately

Shows importing base and mocha presets, adding extra test file glob, and overriding a rule.

// eslint.config.js import exzeoBase from 'eslint-config-exzeo/base'; import exzeoMochaConfig from 'eslint-config-exzeo/mocha'; export default [ exzeoBase, { ...exzeoMochaConfig, files: [...exzeoMochaConfig.files, 'test/**/*.js'] }, { rules: { 'no-console': 'warn' } } ];
Debug
Known issues
breakingThis package requires ESLint v9 (flat config). Older .eslintrc.* and .eslintignore files are ignored.
fix
Migrate to eslint.config.js and remove all .eslintrc and .eslintignore files.
affects: >=2.0.0
breakingNode.js version must be >=18.18.0. Older versions will fail to load flat config.
fix
Upgrade Node to 18.18+ or use nvm to switch.
affects: >=2.0.0
gotchaSubpath imports are default-only; you cannot named-import from 'eslint-config-exzeo'. Each preset is a separate entry point.
fix
Use `import X from 'eslint-config-exzeo/base'` not `import { X } from 'eslint-config-exzeo'`
affects: >=2.0.0
gotchaTypeScript presets require installing `typescript-eslint` as a dependency. Not included automatically.
fix
Run `npm install typescript-eslint --save-dev` if using ts or ts-mocha presets.
affects: >=2.0.0
deprecated.eslintignore is deprecated in ESLint v9 and ignored by this config. Use `ignores` array in flat config.
fix
Move ignore patterns to eslint.config.js: `{ ignores: ['**/dist'] }`
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-config-exzeo'
Importing from package root instead of subpath ('base', 'mocha', etc.)
fix
Use import exzeoBase from 'eslint-config-exzeo/base'
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'typescript-eslint'
Missing optional peer dependency for TypeScript presets
fix
npm install typescript-eslint --save-dev
ESLint couldn't determine the config file to use.
No eslint.config.js exists, or file is not in project root with proper module format
fix
Create eslint.config.js with 'type': 'module' in package.json, or rename to eslint.config.mjs
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
@babel/eslint-parserrequiredParsing modern JavaScript with Babel for ESLint
eslintrequiredPeer dependency required (v9 or later) for flat config usage
eslint-plugin-importrequiredESLint plugin for import/export syntax linting
typescript-eslintoptionalRequired for TypeScript presets (ts and ts-mocha)
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-exzeo — npm install eslint-config-exzeo · libregistry