Socket
Socket
Sign inDemoInstall

eslint-plugin-appjson

Package Overview
Dependencies
6
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-appjson

eslint plugin for app.json validation


Version published
Weekly downloads
2
decreased by-71.43%
Maintainers
1
Install size
33.7 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 13 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc