Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@locomote/eslint-plugin-json-light

1.0.5 • Public • Published

eslint-plugin-json-light

Because eslint-plugin-json install is too heavy (phantomjs download, ~22MB) 😒

Installation

ESLint

npm i eslint --save-dev
npm i eslint-plugin-json-light --save-dev

If 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

Install

npm i @locomote/eslint-plugin-json-light

DownloadsWeekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

6.91 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar