unfold / eslint-config-appjson

eslint plugin for app.json validation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validation for app.json

install

npm install --save-dev eslint-plugin-appjson

Then in your eslint config add appjson as plugin and the rules to apply.

{
  "plugins": ["appjson"],
  "appjson/require-process-env-defined": 1
}

Rule Details

require-process-env-defined

Enforces that every variable used from process.env is defined in your app.json file.

You can whitelist keys that should not be required in options.

"appjson/require-process-env-defined": [1, [ "NODE_ENV" ]]

Contributing

Right now theres only 1 rule. If you have an idea for a good rule for this plugin, send a pull request or open an issue with your suggestion.

About

eslint plugin for app.json validation


Languages

Language:JavaScript 100.0%