Package Exports
- eslint-plugin-json-light
- eslint-plugin-json-light/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-json-light) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-json-light
Because eslint-plugin-json install is too heavy (phantomjs download, ~22MB) 😒
Installation
ESLint
npm i eslint --save-devnpm i eslint-plugin-json-light --save-devIf you installed ESLint package globally - you should also install this plugin globally
Usage
.eslintrc.js (or other ESLint config)
{
"plugins": [
"json-light"
]
}If you are using lint-staged don't forget about .json extension:
{
"lint-staged": {
"*.{js,json}": [
"eslint"
]
}
}Also you can run ESLint on individual JSON files or through --ext flag to add JSON files to the list.
eslint . --ext .json --ext .js
eslint fixture.json