Neurological Phenomenon Multiplexer
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

eslint-plugin-json

1.2.0 • Public • Published

eslint-plugin-json

Build Status Code Climate

Lint JSON files

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-json:

$ npm install eslint-plugin-json --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-json globally.

Usage

Add json to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "json"
    ]
}

You can run ESLint on individual JSON files or you can use the --ext flag to add JSON files to the list.

eslint --ext .json --ext .js
eslint example.json

install

npm i eslint-plugin-json

Downloadsweekly downloads

20,456

version

1.2.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar