Registry / testing / eslint-config-vocovo

eslint-config-vocovo

JSON →
library2.0.0jsnpmunverified

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.

npm install eslint-config-vocovo
INSTALL
IMPORT
SIG · ESLINT-CONFIG-VOCO
E
eslint-config-vocovo
testingjavascriptv2.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.

vocovo
module.exports = { extends: ['vocovo'] }
Using require('eslint-config-vocovo') without extends
In .eslintrc file, use 'extends': ['vocovo'] (not the full package name).
prettierrc
"prettier": "eslint-config-vocovo/prettierrc"
Using require('eslint-config-vocovo/prettierrc') directly
In package.json, set the prettier key to the path of the shared config file.
setup
npm install --save-dev eslint prettier eslint-config-vocovo
Omitting eslint and prettier peer deps
Both eslint and prettier must be installed separately; they are not included automatically.

Shows installation, ESLint config setup, optional Prettier config, and linting command.

// Install peer deps and config npm install --save-dev eslint@^8.23.0 prettier@^2.7.1 eslint-config-vocovo@^2.0.0 // Create .eslintrc.json { "extends": ["vocovo"] } // Optionally, add to package.json for shared prettier config "prettier": "eslint-config-vocovo/prettierrc" // Run lint npx eslint yourfile.js
Debug
Known issues
breakingVersion 2.0.0 may include new or stricter ESLint rules compared to 1.x; existing projects may see new lint errors.
fix
Run eslint --fix to auto-fix where possible, or temporarily override rules in your .eslintrc.
affects: 2.0.0
gotchaThe config expects Prettier to be run both via ESLint and standalone; disabling formatOnSave for JS is required to avoid double-formatting.
fix
Configure VSCode as shown: set editor.formatOnSave: true but disable for [javascript] and [javascriptreact].
affects: >=1.0.0
gotchaThe package name in npm is eslint-config-vocovo, but the extends value is just 'vocovo'. Using the full name will not work.
fix
Use 'extends': ['vocovo'] in .eslintrc, not 'eslint-config-vocovo'.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'eslint-config-vocovo'
The package is not installed or is missing from node_modules.
fix
Run npm install --save-dev eslint-config-vocovo to install it.
ESLint couldn't find the config 'vocovo'
The extends value is wrong or the package is not installed.
fix
Ensure eslint-config-vocovo is installed and use 'extends': ['vocovo'] in .eslintrc.
Parsing error: The keyword 'const' is reserved
ESLint is not configured for modern JavaScript (ECMAScript 2015+).
fix
The vocovo config should handle this; ensure you are using the correct version and that ESLint is up to date (^8.23.0).
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: required to run ESLint and use the config
prettierrequiredPeer dependency: required for code formatting integration
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-vocovo — npm install eslint-config-vocovo · libregistry