{"name":"eslint-json-compat-utils","version":"0.2.2","keywords":["eslint"],"author":{"url":"https://github.com/ota-meshi","name":"Yosuke Ota"},"license":"MIT","_id":"eslint-json-compat-utils@0.2.2","maintainers":[{"name":"ota-meshi","email":"otameshiyo23@gmail.com"}],"homepage":"https://github.com/ota-meshi/eslint-json-compat-utils#readme","bugs":{"url":"https://github.com/ota-meshi/eslint-json-compat-utils/issues"},"dist":{"shasum":"27edb9bfaa047f2af9891d180659330283931ff4","tarball":"http://registry-npm.ywwl.com/eslint-json-compat-utils/download/eslint-json-compat-utils-0.2.2.tgz","fileCount":8,"integrity":"sha512-KcTUifi8VSSHkrOY0FzB7smuTZRU9T2nCrcCy6k2b+Q77+uylBQVIxN4baVCIWvWJEpud+IsrYgco4JJ6io05g==","signatures":[{"sig":"MEQCIE4L3i78veQH2xPzjpCqyu5R7tUdfaVvZ7fMGUG8Vv5HAiAN5U8keDY5ov1xbx6O/BRx5rS0EM7vdErat3rqeGfeJg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-json-compat-utils@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":54143,"size":7423,"noattachment":false,"key":"/eslint-json-compat-utils/-/eslint-json-compat-utils-0.2.2.tgz"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=12"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"4d1df3670796461c8e9aeddc2d40ac2978199dfd","scripts":{"ts":"node -r esbuild-register","lint":"npm-run-all \"lint:*\"","test":"npm run mocha -- \"tests/src/**/*.ts\" --reporter dot --timeout 60000","build":"unbuild","clean":"rimraf .nyc_output dist coverage","mocha":"npm run ts -- ./node_modules/mocha/bin/mocha.js","lint:js":"eslint .","release":"changeset publish","prebuild":"npm run -s clean","eslint-fix":"eslint . --fix","prerelease":"npm run clean && npm run build","test:cover":"nyc --reporter=lcov npm run test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e2b7fdf-bd71-48eb-bbd2-afdfd4a46a04"}},"repository":{"url":"git+https://github.com/ota-meshi/eslint-json-compat-utils.git","type":"git"},"_npmVersion":"11.6.2","description":"A utility that converts rules made for checking the AST of `jsonc-eslint-parser` into rules compatible with `@eslint/json`.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"esquery":"^1.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.0.0","mocha":"^11.0.0","eslint":"^10.0.0","unbuild":"^3.0.0","prettier":"^3.0.3","@eslint/js":"^10.0.0","typescript":"^5.6.3","@types/node":"^24.0.0","@eslint/json":"^1.0.0","@types/mocha":"^10.0.0","npm-run-all2":"^8.0.0","@types/eslint":"^9.0.0","@types/semver":"^7.5.8","@types/esquery":"^1.5.4","@changesets/cli":"^2.26.2","eslint-plugin-n":"^17.0.0","esbuild-register":"^3.5.0","eslint-plugin-yml":"^3.0.0","typescript-eslint":"^8.13.0","eslint-plugin-jsdoc":"^62.0.0","eslint-plugin-jsonc":"^3.0.0","jsonc-eslint-parser":"^2.4.0","eslint-config-prettier":"^10.0.0","eslint-plugin-prettier":"^5.0.0","@ota-meshi/eslint-plugin":"^0.20.0","@typescript-eslint/parser":"^8.13.0","@typescript-eslint/eslint-plugin":"^8.13.0","eslint-plugin-json-schema-validator":"^6.0.0","@svitejs/changesets-changelog-github-compact":"^1.1.0"},"peerDependencies":{"eslint":"*","jsonc-eslint-parser":"^2.4.0 || ^3.0.0"},"peerDependenciesMeta":{"@eslint/json":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-json-compat-utils_0.2.2_1771749976540_0.016487753988962295","host":"s3://npm-registry-packages-npm-production"},"readme":"# eslint-json-compat-utils\n\nA utility that converts rules made for checking the AST of `jsonc-eslint-parser` into rules compatible with `@eslint/json`.\n\n## Installation\n\n```bash\nnpm install eslint-json-compat-utils\n```\n\n## Usage\n\n```js\nimport { toCompatRule } from \"eslint-json-compat-utils\";\n\nexport default toCompatRule({\n  meta: { /* ... */ },\n  create(context) {\n    return {\n      JSONArrayExpression: check,\n    };\n  },\n})\n```\n\n### API\n\n#### `toCompatRule(rule)`\n\nConverts a rule object for `jsonc-eslint-parser` into a rule object for `@eslint/json` compatible.\n\n#### `toCompatPlugin(plugin)`\n\nConverts a plugin object for `jsonc-eslint-parser` into a plugin object for `@eslint/json` compatible.\n\n[Example]\n\n#### `toCompatCreate(create)`\n\nConverts a `create` function for `jsonc-eslint-parser` into a `create` function for `@eslint/json` compatible.\n\n[Example]: https://eslint-online-playground.netlify.app/#eNqVVMtu2zAQ/BWCpzaIqKhJ0cK9FGhPObQFeixTgJVWDhOJFEgqqGHo37NL0or8SIL4IMuc2dnX0Fs+qPpercGXrbVl/iHuvDV8xbfSyCC5UT1IvmKSf+03ReYQX/LzxHgA57U1iXQhKnExQ752egieoC2LR3jYaYNPIoOndyaQP6MBfEbv4ltSIq2gXEaMbYB5cJgZq5WcKFOW4A08fIcBTAOm1pByz6lto/xtEvl7JapPoqoWKVI9Gf4oPj91MseKBv7Z0dR5Jscava1v1SzxYU/CbOqMVJfLOSE0OAhBg9vhoroSl7kzaSZ+nosTtTWtXmPbuCLdD9YFRgtjrbM9LSnRSjqT/Is0mZMXd72gJmYxdONam91mCwosUxJfOqht39Msm2fEfsXo1yWX4dtgv9l+UCEFTwfRRC8wLxKKMeguLdjA/xjcQKvGLrA/NJq42FZ34Fd4wM/O9kws+U2ebyoISTsnBMJ3w6fx75W6YvsVvjtq+H0KnaJEfOJ3WbLo5+vfP3+wWNVbauyUWY94HK1PS0hwRt0YBeb6M8fYohmHTtcqQHEPm2h3nKRzFq00NyiEWLQgothhBze4IGnQaMf/Awwlw2bInu9tg/FRnYDT943h59CNFNxhoflaJ8ryzj0DnnLES/ST9lsGED/equkRF9i8OQ==\n","publish_time":1771749976709,"_cnpm_publish_time":1771749976709,"dist-tags":{"latest":"0.2.3"}}