Skip to content

bayesimpact/eslint-plugin-json5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A plugin for eslint to process json5 files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •