eslint-plugin-jsonc icon indicating copy to clipboard operation
eslint-plugin-jsonc copied to clipboard

pathsPattern for object-curly-newline, object-curly-spacing, and object-property-newline

Open bennypowers opened this issue 3 years ago • 1 comments

Hello!

Say I want to exclude the "engines" key in a package.json from the object-curly-newline, object-curly-spacing, and object-property-newline rules, but apply those rules everywhere else,

Or if I only want to apply those rules to the "references" key in a tsconfig.json

Please consider adding pathsPattern to those rules

bennypowers avatar Dec 07 '21 09:12 bennypowers

Thank you for posting this issue. I don't like that option because I think it's inconsistent, but if someone implements it I can merge it.

ota-meshi avatar Jan 05 '22 04:01 ota-meshi