ota-meshi / eslint-plugin-jsonc

ESLint plugin for JSON(C|5)? files
https://ota-meshi.github.io/eslint-plugin-jsonc/
MIT License
201 stars 17 forks source link

Support typescript for node object #360

Open ofir-rifo opened 3 months ago

ofir-rifo commented 3 months ago

Thanks for awesome library 😁 I created a custom eslint rule using this package to lint json files.

I have similar code to what you have in this file lib/rules/key-name-casing.ts return { JSONProperty(node) {

But my code doesn't recognize the node type and I need to use any. Can you please add types ?

ota-meshi commented 2 months ago

I'm not sure what needs to be exposed to get it to type check properly. Would you consider opening a PR?