Registry / testing / eslint-plugin-json-light

eslint-plugin-json-light

JSON →
library1.0.3jsnpmunverified

ESLint plugin for validating JSON files. Version 1.0.3 (last updated in 2016, no releases since). Lightweight alternative to eslint-plugin-json, which required downloading PhantomJS (~22MB). This plugin has zero dependencies and simply parses JSON files to report syntax errors. Key differentiator is its minimal footprint, but it lacks features like auto-fix or extended syntax checks. Suitable for basic JSON linting in ESLint workflows.

npm install eslint-plugin-json-light
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-JSON
E
eslint-plugin-json-light
testingjavascriptv1.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
module.exports = { plugins: ['json-light'] }
require('eslint-plugin-json-light')
This is an ESLint plugin loaded via ESLint's plugins configuration, not imported directly in code.

Shows installation and configuration to lint JSON files with ESLint.

// Install // npm install eslint eslint-plugin-json-light --save-dev // .eslintrc.js module.exports = { plugins: ['json-light'] }; // Then lint JSON files: // eslint . --ext .json --ext .js // eslint fixture.json
Debug
Known issues
gotchaThis plugin only validates JSON syntax; it does not provide any rules (like 'no-trailing-comma'). It only reports parse errors.
fix
If you need JSON rules, consider eslint-plugin-json or write custom rules.
affects: >=1.0.0
deprecatedLast release was in 2016. Consider using modern alternatives like eslint-plugin-jsonc or eslint-plugin-json-format.
fix
Migrate to eslint-plugin-jsonc (supports comments) or other actively maintained plugins.
affects: >=1.0.0
gotchaPlugin is installed as 'eslint-plugin-json-light' but used in plugins array as 'json-light' (drop the prefix).
fix
Add 'json-light' to plugins, not 'eslint-plugin-json-light'.
affects: >=1.0.0
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-plugin-json-light".
Plugin not installed or not in package.json dependencies.
fix
Run: npm install eslint-plugin-json-light --save-dev
Parsing error: Unexpected token }
JSON file contains a syntax error (e.g., extra comma).
fix
Fix the JSON syntax in the file.
Error: .json files are ignored by default in ESLint. Use --ext .json or add 'json' to lint-staged patterns.
ESLint does not lint .json files by default.
fix
Run: eslint . --ext .json or configure lint-staged to include *.json
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-json-light — npm install eslint-plugin-json-light · libregistry