
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
jsonc-eslint-parser
Advanced tools
JSON, JSONC and JSON5 parser for use with ESLint plugins.
This parser allows us to lint JSON, JSONC and JSON5 files. This parser and the rules of eslint-plugin-jsonc would catch some of the mistakes and code style violations.
See eslint-plugin-jsonc for details.
npm i --save-dev jsonc-eslint-parser
In your ESLint configuration file, set the parser property:
import * as jsoncParser from "jsonc-eslint-parser";
export default [
{
// ...
// Add the following settings.
files: ["**/*.json", "**/*.json5"], // Specify the extension or pattern you want to parse as JSON.
languageOptions: {
parser: jsoncParser, // Set this parser.
}
},
];
In your ESLint configuration file, set the overrides > parser property:
{
// ...
// Add the following settings.
"overrides": [
{
"files": ["*.json", "*.json5"], // Specify the extension or pattern you want to parse as JSON.
"parser": "jsonc-eslint-parser", // Set this parser.
},
],
}
The following additional configuration options are available by specifying them in parserOptions in your ESLint configuration file.
{
// Additional configuration options
"parserOptions": {
"jsonSyntax": "JSON5"
}
}
parserOptions.jsonSyntaxSet to "JSON", "JSONC" or "JSON5". Select the JSON syntax you are using.
If not specified, all syntaxes that express static values are accepted. For example, template literals without interpolation.
Note : Recommended to loosen the syntax checking by the parser and use check rules of eslint-plugin-jsonc to automatically fix it.
jsonc-eslint-parser follows Semantic Versioning.
See the LICENSE file for license rights and limitations (MIT).
This package provides linting rules for JSON files. Unlike jsonc-eslint-parser, it does not support comments within JSON files but offers a similar linting capability for standard JSON.
Similar to jsonc-eslint-parser, this parser allows ESLint to lint YAML files. It supports YAML, a data serialization format that is more extensive than JSONC, providing functionality for linting a different type of data format.
FAQs
JSON, JSONC and JSON5 parser for use with ESLint plugins
We found that jsonc-eslint-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.