Registry / testing / eslint-config-oclif

eslint-config-oclif

JSON →
library6.0.159jsnpmunverified

Official ESLint configuration for oclif CLI framework projects. Current stable version is 6.0.159. Released frequently with dependency updates. Key differentiator: optimized for TypeScript strict mode, includes rules for async/await, and enforces oclif-specific conventions like command exports and topic patterns.

npm install eslint-config-oclif
INSTALL
IMPORT
SIG · ESLINT-CONFIG-OCLI
E
eslint-config-oclif
testingjavascriptv6.0.159
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.

default
module.exports = { extends: ['oclif'], };
module.exports = { extends: ['eslint-config-oclif'], };
Use 'oclif' not the full package name.
extends
// .eslintrc.js module.exports = { extends: ['oclif'], };
// Wrong: missing 'extends' property module.exports = 'eslint-config-oclif';
Config is a module export with extends.
rules
// .eslintrc.js module.exports = { extends: ['oclif'], rules: { 'no-console': 'off', }, };
// Wrong: modifying base rules without spreading module.exports = { extends: ['oclif'], rules: { 'no-console': 'off', }, };
Rules overlay is fine; no spread needed.

Set up ESLint for oclif project using recommended config.

// .eslintrc.js module.exports = { extends: ['oclif'], // Override rules if needed rules: { 'no-console': 'off', }, }; // package.json script "lint": "eslint . --ext .ts,.js"
Debug
Known issues
breakingVersion 6.0.0 dropped support for Node < 18.18.0
fix
Upgrade Node to >=18.18.0 or use eslint-config-oclif@5.x
affects: >=6.0.0
breakingVersion 6.0.0 migrated from TSLint to ESLint with typescript-eslint
fix
Remove TSLint config and use ESLint with typescript-eslint
affects: >=6.0.0
gotchaRequires eslint-plugin-oclif peer dependency
fix
Install eslint-plugin-oclif as dev dependency
affects: >=6.0.0
deprecatedextends: ['oclif', 'oclif/typescript'] is deprecated since 6.0
fix
Use extends: ['oclif'] only, which now includes TypeScript rules
affects: >=6.0.0
Errors
Common errors & fixes
ESLint couldn't find the config 'oclif'
Missing package installation or typo in extends array
fix
Install eslint-config-oclif: npm install eslint-config-oclif --save-dev
Failed to load config 'oclif' to extend from
Missing peer dependency eslint-plugin-oclif
fix
Install eslint-plugin-oclif: npm install eslint-plugin-oclif --save-dev
Parsing error: The keyword 'const' is reserved
ESLint parser not configured for TypeScript
fix
Ensure typescript-eslint/parser is installed and configured via extends: ['oclif']
Upgrade
Version history
6.0.159latest on npm
Audit
Dependencies
typescript-eslintrequiredProvides TypeScript ESLint parser and rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-oclif — npm install eslint-config-oclif · libregistry