项目作者: okitan

项目描述 :
eslint plugin for jsonschema
高级语言: JavaScript
项目地址: git://github.com/okitan/eslint-plugin-jsonschema.git
创建时间: 2017-03-15T07:14:09Z
项目社区:https://github.com/okitan/eslint-plugin-jsonschema

开源协议:

下载


eslint-plugin-jsonschema

eslint plugin for jsonschema

Installation

You’ll first need to install ESLint:

  1. $ npm i eslint --save-dev

Next, install eslint-plugin-jsonschema:

  1. $ 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:

  1. {
  2. "plugins": [
  3. "jsonschema"
  4. ],
  5. "settings": {
  6. "jsonschema": {
  7. "schemaDirectory": [ "/path/to/schema" ]
  8. }
  9. }
  10. }