eslint-plugin-appjson

0.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-appjson

Weekly Downloads

2

Version

0.1.3

License

MIT

Last publish

Collaborators

  • cheerypick
  • einarlove
  • pawelkocot
  • hjnilsson
  • unfold-oslo