eslint-plugin-json5

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-json5

Weekly Downloads

7,400

Version

0.1.4

License

MIT

Unpacked Size

3.45 kB

Total Files

4

Last publish

Collaborators

  • zozoens31