okitan / eslint-plugin-jsonschema

eslint plugin for jsonschema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-jsonschema

eslint plugin for jsonschema

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-jsonschema:

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

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

Usage

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

{
    "plugins": [
        "jsonschema"
    ],
    "settings": {
        "jsonschema": {
            "schemaDirectory": [ "/path/to/schema" ]
        }
    }
}

About

eslint plugin for jsonschema


Languages

Language:JavaScript 100.0%