Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@locomote/eslint-plugin-json-light

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locomote/eslint-plugin-json-light

Light ESLint plugin for JSON validating

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

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

Keywords

FAQs

Package last updated on 12 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc