eslint-plugin-json-processor

1.0.0 • Public • Published

eslint-plugin-json-processor

Simple plugin to lint JSON with ESLint rules

Installation

npm install --save-dev eslint-plugin-json-processor

eslintrc.js

"plugins": [
    "es5",
    "jest",
    "react",
    'eslint-plugin-json-processor',
],
....
"overrides": [
    // NOTE: basically you should override JS rules to be compatible with JSON
    {
        files: [ '*.json' ],
        rules: {
            'comma-dangle': [ 'error', 'never' ],
            'eol-last': [ 'error', 'never' ],
            'max-len': 'off',
            quotes: [ 'error', 'double' ],
            'quote-props': [ 'error', 'always' ],
            semi: [ 'error', 'never' ],
        },
    },
....

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-json-processor

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

2.78 kB

Total Files

4

Last publish

Collaborators

  • doochik