Registry / devops / eslint-formatter-gcq

eslint-formatter-gcq

JSON →
library0.0.5jsnpmunverified

An opinionated ESLint formatter that outputs GitLab Code Quality compatible JSON (v0.0.5, last updated 2024). It always writes a stylish formatted report to the terminal and JSON to the ESLint output. Supports ESLint 8.x, 9.x, and 10.x. Differentiator: simplifies GitLab CI integration by producing both console output and the required codequality.json artifact in one pass.

npm install eslint-formatter-gcq
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-G
E
eslint-formatter-gcq
devopsjavascriptv0.0.5
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.

formatter
eslint -f gcq
eslint -f eslint-formatter-gcq
The formatter name is 'gcq', not the full package name. Using the full name also works but 'gcq' is shorter.

Installs the dependency and runs ESLint with the gcq formatter, writing Code Quality JSON output and showing stylish terminal output.

npm install -D eslint eslint-formatter-gcq # Then run: eslint . -f gcq -o codequality.json # The formatter outputs both stylish terminal output and JSON file.
Debug
Known issues
breakingRequires Node >=18. Older Node versions (16 and below) are not supported.
fix
Upgrade Node to version 18 or higher.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-formatter-gcq'
The formatter is not installed as a dev dependency or eslint cannot resolve it.
fix
Run 'npm install -D eslint-formatter-gcq' from the project root.
Error: Invalid format 'gcq'
Using an older version of ESLint that does not support the custom formatter short name.
fix
Use 'eslint -f eslint-formatter-gcq -o codequality.json' or upgrade to ESLint >=8.
Upgrade
Version history
0.0.5latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for formatter integration
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-formatter-gcq — npm install eslint-formatter-gcq · libregistry