{"repo":"azeemba/eslint-plugin-json","free":true,"listed":false,"github":"https://github.com/azeemba/eslint-plugin-json","clone":"git clone https://github.com/azeemba/eslint-plugin-json.git","description":"Lint your JSON files","language":"JavaScript","stars":216,"topics":["eslint-plugin","json","linter","eslint"],"license":"MIT","category":"dev-tools","readme_excerpt":"eslint-plugin-json Eslint plugin for JSON files :warning: If you are using eslint v10 or newer, use eslint-plugin-json v5 or newer. Installation Install eslint-plugin-json along eslint : Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-json globally. Usage Basic configuration (Flat Config ESLint Format) The json plugin ship with two recommended config you can use to easily activate it via the extends key. It comes in two flavor: one strict ( recommended ) and one allowing comments recommended-with-comments . Basic configuration (Legacy ESLint Format) The json plugin ship with two recommended config you can use to easily activate it via the extends key. It comes in two flavor: one strict ( recommended-legacy ) and one allowing comments recommended-with-comments-legacy . You can run ESLint on individual JSON files or you can use the --ext flag to add JSON files to the list. Custom Configuration (Flat Config ESLint Format) If you want more granular control over which rules, and which severity you want. If you want them all, add the json/json rule (or its alias json/ ). (this is what the recommended config does) Global rules The global rules ( json/json or its alias json/ ) activate all the rules. Note it can be configured to ignore errors cause by comments. To do so, add option 'allowComments' or {allowComments: true} For instance: Custom Configuration (Legacy ESLint Format) If you want more granular control over which rules, an","default_branch":null,"files":null,"tree":[],"storefront":"/r/azeemba","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/azeemba/eslint-plugin-json/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}