Gathering detailed insights and metrics for jsonc-eslint-parser
Gathering detailed insights and metrics for jsonc-eslint-parser
Gathering detailed insights and metrics for jsonc-eslint-parser
Gathering detailed insights and metrics for jsonc-eslint-parser
eslint-json-compat-utils
A utility that converts rules made for checking the AST of `jsonc-eslint-parser` into rules compatible with `@eslint/json`.
@yomukizrj/eslint-config-json
eslint中的json配置 ## 依赖 - [eslint-plugin-jsonc](https://www.npmjs.com/package/eslint-plugin-jsonc) json,jsonc,json5 解析器 - [jsonc-eslint-parser](https://www.npmjs.com/package/jsonc-eslint-parser) 提供了lint规则
JSON, JSONC and JSON5 parser for use with ESLint plugins.
npm install jsonc-eslint-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.7
Supply Chain
99.4
Quality
78.4
Maintenance
100
Vulnerability
100
License
TypeScript (81.64%)
Vue (13.86%)
HTML (2.57%)
JavaScript (1.93%)
Total Downloads
184,256,773
Last Day
102,623
Last Week
2,491,846
Last Month
10,814,372
Last Year
107,196,589
MIT License
64 Stars
241 Commits
3 Forks
3 Watchers
11 Branches
4 Contributors
Updated on May 01, 2025
Minified
Minified + Gzipped
Latest Version
2.4.0
Package Id
jsonc-eslint-parser@2.4.0
Unpacked Size
76.01 kB
Size
16.33 kB
File Count
39
NPM Version
9.8.1
Node Version
18.18.2
Published on
Oct 24, 2023
Cumulative downloads
Total Downloads
Last Day
4.4%
102,623
Compared to previous day
Last Week
-7.9%
2,491,846
Compared to previous week
Last Month
0.6%
10,814,372
Compared to previous month
Last Year
83.1%
107,196,589
Compared to previous year
4
31
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.
1npm i --save-dev jsonc-eslint-parser
In your ESLint configuration file, set the overrides
> parser
property:
1{ 2 // ... 3 // Add the following settings. 4 "overrides": [ 5 { 6 "files": ["*.json", "*.json5"], // Specify the extension or pattern you want to parse as JSON. 7 "parser": "jsonc-eslint-parser", // Set this parser. 8 }, 9 ], 10}
The following additional configuration options are available by specifying them in parserOptions in your ESLint configuration file.
1{ 2 // ... 3 "overrides": [ 4 { 5 "files": ["*.json", "*.json5"], 6 "parser": "jsonc-eslint-parser", 7 // Additional configuration options 8 "parserOptions": { 9 "jsonSyntax": "JSON5" 10 } 11 }, 12 ], 13}
parserOptions.jsonSyntax
Set 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).
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More