Registry / testing / web-code-lint

web-code-lint

JSON →
library1.0.0jsnpmunverified

A one-stop code lint tool integrating ESLint 9 (flat config), Prettier, Stylelint, Husky, lint-staged, Commitlint, and Vue/TypeScript support. v1.0.0 requires Node.js >=20.19.0 and is installable globally via pnpm or npm. It auto-generates configurations and Git hooks for new projects, using the project's lock file to select the appropriate package manager. Key differentiators: bundled VSCode auto-format config, ESLint flat config support, and no runtime peer dependencies beyond the project's own development stack.

npm install web-code-lint
INSTALL
IMPORT
SIG · WEB-CODE-LINT
W
web-code-lint
testingjavascriptv1.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.

init
✓ import { init } from 'web-code-lint'
✗ const init = require('web-code-lint')
ESM-only package, no CommonJS support.
lint
✓ npm run lint
✗ import { lint } from 'web-code-lint'
lint is a script added to package.json by init, not an exported symbol.
lint:fix
✓ npm run lint:fix
✗ const lintFix = require('web-code-lint').lintFix
Same as lint, this is a script entry, not an importable function.

Installs the tool globally, initializes lint config in a project, and runs the lint script.

pnpm add -g web-code-lint cd /path/to/your/project web-code-lint init pnpm install npm run lint
web-code-lint --version
Debug
Known issues
breakingRequires Node.js >=20.19.0; older versions will fail installation.
fix
Upgrade Node.js to >=20.19.0.
affects: <20.19
deprecatedThe init command overwrites existing lint configuration files without backup.
fix
Manually backup or commit your existing config before running init.
affects: >=1.0.0
gotchaHusky hooks use npx --no-install to run lint-staged; ensure lint-staged is installed as a dev dependency by init.
fix
If hooks fail, run 'pnpm install' (or equivalent) in the project root after init.
affects: >=1.0.0
gotchaVSCode ESLint extension requires 'eslint.useFlatConfig' setting enabled; the init script adds a .vscode/settings.json with this setting, but it may conflict with an existing settings file.
fix
Merge the generated .vscode/settings.json with your existing settings manually.
affects: >=1.0.0
Errors
Common errors & fixes
Error: The module was not found. ESLint couldn't find the plugin 'xxx'.
Missing or incompatible peer dependency for ESLint plugin installed by init.
fix
Run `pnpm install` (or npm/yarn) to ensure all plugins are installed.
eslint: command not found
Global web-code-lint tries to use local ESLint but it hasn't been installed yet.
fix
Run `pnpm add eslint --save-dev` in the project root first, or re-run `web-code-lint init`.
SyntaxError: Cannot use import statement outside a module
ESLint flat config file (eslint.config.mjs) requires 'type: module' in package.json or .mjs extension, but the project may not have it set.
fix
Add `"type": "module"` to package.json, or rename config to eslint.config.cjs as CommonJS fallback.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
web-code-lint — npm install web-code-lint · libregistry