{"id":19810,"library":"eslint-plugin-json-light","title":"eslint-plugin-json-light","description":"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.","status":"maintenance","version":"1.0.3","language":"javascript","source_language":"en","source_url":"https://github.com/locomote/eslint-plugin-json-light","tags":["javascript","eslint","eslintplugin","eslint-plugin","json","eslint-plugin-json","eslint-plugin-json-light"],"install":[{"cmd":"npm install eslint-plugin-json-light","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-json-light","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-json-light","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is an ESLint plugin loaded via ESLint's plugins configuration, not imported directly in code.","wrong":"require('eslint-plugin-json-light')","symbol":"plugin","correct":"module.exports = { plugins: ['json-light'] }"}],"quickstart":{"code":"// Install\n// npm install eslint eslint-plugin-json-light --save-dev\n\n// .eslintrc.js\nmodule.exports = {\n  plugins: ['json-light']\n};\n\n// Then lint JSON files:\n// eslint . --ext .json --ext .js\n// eslint fixture.json","lang":"javascript","description":"Shows installation and configuration to lint JSON files with ESLint."},"warnings":[{"fix":"If you need JSON rules, consider eslint-plugin-json or write custom rules.","message":"This plugin only validates JSON syntax; it does not provide any rules (like 'no-trailing-comma'). It only reports parse errors.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Migrate to eslint-plugin-jsonc (supports comments) or other actively maintained plugins.","message":"Last release was in 2016. Consider using modern alternatives like eslint-plugin-jsonc or eslint-plugin-json-format.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Add 'json-light' to plugins, not 'eslint-plugin-json-light'.","message":"Plugin is installed as 'eslint-plugin-json-light' but used in plugins array as 'json-light' (drop the prefix).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install eslint-plugin-json-light --save-dev","cause":"Plugin not installed or not in package.json dependencies.","error":"ESLint couldn't find the plugin \"eslint-plugin-json-light\"."},{"fix":"Fix the JSON syntax in the file.","cause":"JSON file contains a syntax error (e.g., extra comma).","error":"Parsing error: Unexpected token }"},{"fix":"Run: eslint . --ext .json or configure lint-staged to include *.json","cause":"ESLint does not lint .json files by default.","error":"Error: .json files are ignored by default in ESLint. Use --ext .json or add 'json' to lint-staged patterns."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}