{"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,"search_vec":"'6.0.159':17 'async/await':33 'cli':10 'command':41 'config':3,51,53 'configur':7 'convent':39 'current':13 'depend':21 'differenti':24 'enforc':35 'eslint':2,6,48,50,52 'eslint-config':49 'eslint-config-oclif':1 'export':42 'framework':11 'frequent':19 'includ':30 'javascript':46 'key':23 'like':40 'mode':29 'oclif':4,9,37,47 'oclif-specif':36 'offici':5 'optim':25 'pattern':45 'project':12 'releas':18 'rule':31 'specif':38 'stabl':14 'strict':28 'topic':44 'typescript':27 'updat':22 'version':15","created_at":"2026-04-25T11:18:24.403659+00:00","updated_at":"2026-04-25T11:18:24.403659+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://oclif.io","github":"https://github.com/oclif/eslint-config-oclif","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-oclif","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}