{"id":25495,"library":"eslint-config-vocovo","title":"eslint-config-vocovo","description":"eslint-config-vocovo is a shareable ESLint configuration package for VoCoVo JavaScript projects, integrating Prettier for code formatting. Version 2.0.0 requires ESLint ^8.23.0 and Prettier ^2.7.1 as peer dependencies. It provides a single 'vocovo' extends preset and a shared .prettierrc file. Unlike many configs, it enforces Prettier both through ESLint and as a standalone formatter for non-JS files. The package is maintained internally by VoCoVo, with releases following a manual process via GitHub and npm.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/vocovo/eslint-config-vocovo","tags":["javascript","ecmascript","eslint","lint","config","prettier"],"install":[{"cmd":"npm install eslint-config-vocovo","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-vocovo","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-vocovo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: required to run ESLint and use the config","package":"eslint","optional":false},{"reason":"Peer dependency: required for code formatting integration","package":"prettier","optional":false}],"imports":[{"note":"In .eslintrc file, use 'extends': ['vocovo'] (not the full package name).","wrong":"Using require('eslint-config-vocovo') without extends","symbol":"vocovo","correct":"module.exports = { extends: ['vocovo'] }"},{"note":"In package.json, set the prettier key to the path of the shared config file.","wrong":"Using require('eslint-config-vocovo/prettierrc') directly","symbol":"prettierrc","correct":"\"prettier\": \"eslint-config-vocovo/prettierrc\""},{"note":"Both eslint and prettier must be installed separately; they are not included automatically.","wrong":"Omitting eslint and prettier peer deps","symbol":"setup","correct":"npm install --save-dev eslint prettier eslint-config-vocovo"}],"quickstart":{"code":"// Install peer deps and config\nnpm install --save-dev eslint@^8.23.0 prettier@^2.7.1 eslint-config-vocovo@^2.0.0\n\n// Create .eslintrc.json\n{\n  \"extends\": [\"vocovo\"]\n}\n\n// Optionally, add to package.json for shared prettier config\n\"prettier\": \"eslint-config-vocovo/prettierrc\"\n\n// Run lint\nnpx eslint yourfile.js\n","lang":"javascript","description":"Shows installation, ESLint config setup, optional Prettier config, and linting command."},"warnings":[{"fix":"Run eslint --fix to auto-fix where possible, or temporarily override rules in your .eslintrc.","message":"Version 2.0.0 may include new or stricter ESLint rules compared to 1.x; existing projects may see new lint errors.","severity":"breaking","affected_versions":"2.0.0"},{"fix":"Configure VSCode as shown: set editor.formatOnSave: true but disable for [javascript] and [javascriptreact].","message":"The config expects Prettier to be run both via ESLint and standalone; disabling formatOnSave for JS is required to avoid double-formatting.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use 'extends': ['vocovo'] in .eslintrc, not 'eslint-config-vocovo'.","message":"The package name in npm is eslint-config-vocovo, but the extends value is just 'vocovo'. Using the full name will not work.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev eslint-config-vocovo to install it.","cause":"The package is not installed or is missing from node_modules.","error":"Cannot find module 'eslint-config-vocovo'"},{"fix":"Ensure eslint-config-vocovo is installed and use 'extends': ['vocovo'] in .eslintrc.","cause":"The extends value is wrong or the package is not installed.","error":"ESLint couldn't find the config 'vocovo'"},{"fix":"The vocovo config should handle this; ensure you are using the correct version and that ESLint is up to date (^8.23.0).","cause":"ESLint is not configured for modern JavaScript (ECMAScript 2015+).","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}