https://github.com/okitan/eslint-plugin-jsonschema
eslint plugin for jsonschema
https://github.com/okitan/eslint-plugin-jsonschema
eslint-plugin json-schema npm
Last synced: 8 months ago
JSON representation
eslint plugin for jsonschema
- Host: GitHub
- URL: https://github.com/okitan/eslint-plugin-jsonschema
- Owner: okitan
- Created: 2017-03-15T07:14:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T03:22:10.000Z (over 8 years ago)
- Last Synced: 2025-10-04T00:51:37.197Z (9 months ago)
- Topics: eslint-plugin, json-schema, npm
- Language: JavaScript
- Size: 42 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# eslint-plugin-jsonschema
eslint plugin for jsonschema
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ 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:
```json
{
"plugins": [
"jsonschema"
],
"settings": {
"jsonschema": {
"schemaDirectory": [ "/path/to/schema" ]
}
}
}
```