Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

unfold/eslint-config-appjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published