{"id":27144386,"url":"https://github.com/arondight/eslint-plugin-check-json-value","last_synced_at":"2026-02-18T20:10:51.026Z","repository":{"id":44407101,"uuid":"512358066","full_name":"Arondight/eslint-plugin-check-json-value","owner":"Arondight","description":"ESLint plugin to check value of JSON file","archived":false,"fork":false,"pushed_at":"2025-02-18T13:12:31.000Z","size":575,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T05:47:58.181Z","etag":null,"topics":["eslint","eslint-plugin","eslint-plugin-check-json-value","eslintplugin","json"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-plugin-check-json-value","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arondight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-10T06:01:18.000Z","updated_at":"2025-02-18T13:12:28.000Z","dependencies_parsed_at":"2024-07-08T23:09:06.353Z","dependency_job_id":null,"html_url":"https://github.com/Arondight/eslint-plugin-check-json-value","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/Arondight/eslint-plugin-check-json-value","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arondight%2Feslint-plugin-check-json-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arondight%2Feslint-plugin-check-json-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arondight%2Feslint-plugin-check-json-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arondight%2Feslint-plugin-check-json-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arondight","download_url":"https://codeload.github.com/Arondight/eslint-plugin-check-json-value/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arondight%2Feslint-plugin-check-json-value/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29594242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T18:54:29.675Z","status":"ssl_error","status_checked_at":"2026-02-18T18:50:50.517Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","eslint-plugin","eslint-plugin-check-json-value","eslintplugin","json"],"created_at":"2025-04-08T08:59:00.645Z","updated_at":"2026-02-18T20:10:51.006Z","avatar_url":"https://github.com/Arondight.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-check-json-value\n\nESLint plugin to check value of JSON file.\n\n## Installation\n\nYou'll first need to install [ESLint](https://eslint.org/).\n\n```sh\nnpm install --save-dev eslint\n```\n\nNext, install [eslint-plugin-check-json-value](https://www.npmjs.com/package/eslint-plugin-check-json-value).\n\n```sh\nnpm install --save-dev eslint-plugin-check-json-value\n```\n\n## Usage\n\nAdd `check-json-value` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix.\n\n```json\n{\n  \"plugins\": [\"check-json-value\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"check-json-value/json-lint\": [\n      \"error\",\n      {\n        \"lint\": true\n      }\n    ],\n    \"check-json-value/json-value\": [\n      \"error\",\n      [\n        {\n          \"file\": \"member-.+\\\\.json\",\n          \"path\": \"gender\",\n          \"values\": [\n            {\n              \"type\": \"string\",\n              \"value\": \"^(fe)?males$\"\n            }\n          ]\n        },\n        {\n          \"file\": \"data/record-201[0-9]\\\\.json\",\n          \"path\": \"records[{{COUNTER1}}].items[{{COUNTER2]}}\",\n          \"values\": [\n            {\n              \"type\": \"number\",\n              \"value\": \"^\\\\d{4,6}$\"\n            }\n          ],\n          \"if\": [\n            {\n              \"path\": \"status\",\n              \"values\": [\n                {\n                  \"type\": \"string\",\n                  \"value\": \"^need confirm$\",\n                  \"ignoreCase\": true\n                },\n                {\n                  \"type\": \"string\",\n                  \"value\": \"^unconfirmed$\",\n                  \"ignoreCase\": true\n                }\n              ]\n            },\n            {\n              \"path\": \"complete\",\n              \"values\": [\n                {\n                  \"type\": \"boolean\",\n                  \"value\": true\n                }\n              ]\n            }\n          ],\n          \"for\": [\n            {\n              \"replace\": \"{{COUNTER1}}\",\n              \"start\": 0,\n              \"end\": 10,\n              \"step\": 1\n            },\n            {\n              \"replace\": \"{{COUNTER2}}\",\n              \"start\": 0,\n              \"end\": 20,\n              \"step\": 10\n            }\n          ]\n        }\n      ]\n    ]\n  }\n}\n```\n\nSee schemas of rules [check-json-value/json-lint](https://github.com/Arondight/eslint-plugin-check-json-value/blob/master/lib/rules/meta/json_lint.js) and [check-json-value/json-value](https://github.com/Arondight/eslint-plugin-check-json-value/blob/master/lib/rules/meta/json_value.js). Also here are [examples of usage in unit tests](https://github.com/Arondight/eslint-plugin-check-json-value/tree/master/tests/lib/rules) for rules.\n\n## LICENSE\n\n[MIT License](https://github.com/Arondight/eslint-plugin-check-json-value/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farondight%2Feslint-plugin-check-json-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farondight%2Feslint-plugin-check-json-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farondight%2Feslint-plugin-check-json-value/lists"}