eslint-plugin-appjson
v0.1.3
Published
eslint plugin for app.json validation
Downloads
17
Keywords
Readme
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.