https://github.com/doochik/eslint-plugin-json-processor
Simple plugin to process JSON with ESLint rules
https://github.com/doochik/eslint-plugin-json-processor
Last synced: over 1 year ago
JSON representation
Simple plugin to process JSON with ESLint rules
- Host: GitHub
- URL: https://github.com/doochik/eslint-plugin-json-processor
- Owner: doochik
- License: mit
- Created: 2019-07-24T20:06:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T09:52:43.000Z (about 6 years ago)
- Last Synced: 2025-03-02T08:02:55.659Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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' ],
},
},
....
```