{"id":19551,"library":"eslint-config-oclif","title":"eslint-config-oclif","description":"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.","status":"active","version":"6.0.159","language":"javascript","source_language":"en","source_url":"https://github.com/oclif/eslint-config-oclif","tags":["javascript","oclif","eslint","eslint-config","eslint config"],"install":[{"cmd":"npm install eslint-config-oclif","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-oclif","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-oclif","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Provides TypeScript ESLint parser and rules","package":"typescript-eslint","optional":false}],"imports":[{"note":"Use 'oclif' not the full package name.","wrong":"module.exports = {\n  extends: ['eslint-config-oclif'],\n};","symbol":"default","correct":"module.exports = {\n  extends: ['oclif'],\n};"},{"note":"Config is a module export with extends.","wrong":"// Wrong: missing 'extends' property\nmodule.exports = 'eslint-config-oclif';","symbol":"extends","correct":"// .eslintrc.js\nmodule.exports = {\n  extends: ['oclif'],\n};"},{"note":"Rules overlay is fine; no spread needed.","wrong":"// Wrong: modifying base rules without spreading\nmodule.exports = {\n  extends: ['oclif'],\n  rules: {\n    'no-console': 'off',\n  },\n};","symbol":"rules","correct":"// .eslintrc.js\nmodule.exports = {\n  extends: ['oclif'],\n  rules: {\n    'no-console': 'off',\n  },\n};"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['oclif'],\n  // Override rules if needed\n  rules: {\n    'no-console': 'off',\n  },\n};\n// package.json script\n\"lint\": \"eslint . --ext .ts,.js\"","lang":"javascript","description":"Set up ESLint for oclif project using recommended config."},"warnings":[{"fix":"Upgrade Node to >=18.18.0 or use eslint-config-oclif@5.x","message":"Version 6.0.0 dropped support for Node < 18.18.0","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Remove TSLint config and use ESLint with typescript-eslint","message":"Version 6.0.0 migrated from TSLint to ESLint with typescript-eslint","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Install eslint-plugin-oclif as dev dependency","message":"Requires eslint-plugin-oclif peer dependency","severity":"gotcha","affected_versions":">=6.0.0"},{"fix":"Use extends: ['oclif'] only, which now includes TypeScript rules","message":"extends: ['oclif', 'oclif/typescript'] is deprecated since 6.0","severity":"deprecated","affected_versions":">=6.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install eslint-config-oclif: npm install eslint-config-oclif --save-dev","cause":"Missing package installation or typo in extends array","error":"ESLint couldn't find the config 'oclif'"},{"fix":"Install eslint-plugin-oclif: npm install eslint-plugin-oclif --save-dev","cause":"Missing peer dependency eslint-plugin-oclif","error":"Failed to load config 'oclif' to extend from"},{"fix":"Ensure typescript-eslint/parser is installed and configured via extends: ['oclif']","cause":"ESLint parser not configured for TypeScript","error":"Parsing error: The keyword 'const' is reserved"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}