You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-json5

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-json5

Simple preprocessor to be able to lint json5 files

0.1.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ESlint-plugin-JSON5

A processor for JSON5 files to lint them with eslint rules as JavaScript object.

Installation

Install ESLint either locally or globally. (Note that locally, per project, is strongly preferred)

$ npm install eslint --save-dev

If you installed ESLint globally, you have to install React plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-json5 --save-dev

Configuration

Add the plugin in your eslint configuration eslintrc.json or equivalent.

{
    // ...
    plugins: [
        // ...
        "json5",
    ],
}

The preprocessor is then directly used for json5 files. You still have to add them to the linted file extensions when calling eslint.

eslint . --ext json5

Keywords

eslint

FAQs

Package last updated on 05 Dec 2021

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