Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@envdoctor/envdoctor-config-essentials

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envdoctor/envdoctor-config-essentials

Essentials rules for Envdoctor

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@envdoctor/envdoctor-config-essentials

This configuration holds an essential check of version

Utils

  • Helper object defining possible comparators
const { COMPARATORS } = require("@envdoctor/envdoctor-config-essentials");

Possible comparators:

  • COMPARATORS.EQ
  • COMPARATORS.GT
  • COMPARATORS.GTE
  • COMPARATORS.LT
  • COMPARATORS.LTE
  • COMPARATORS.SATISFIES

Rules

node-version

Configuration
interface INodeVersion {
  file?: string;
  comparator?: string;
  version?: string;
}
Usage
{
  "node-version": [2, { comparator: COMPARATORS.GT, version: "9" ]
}

⚠️ There is also experimental API which takes the name of the file: { file: ".nvmrc"} for instance. This will look for .nvmrc file for the version and then ensure that user uses the same major version.

yarn-version

Configuration
interface INodeVersion {
  comparator?: string;
  version?: string;
}
Usage
{
  "yarn-version": [2, { comparator: COMPARATORS.GT, version: "9" }]
}

Install

yarn add @envdoctor/core @envdoctor/envdoctor-config-essentials -D

Usage

In your .envdoctorrc file

const { COMPARATORS } = require("@envdoctor/envdoctor-config-essentials");

module.exports = {
  extends: ["@envdoctor/essentials"],
  rules: {
    "node-version": [2, { comparator: COMPARATORS.GT, version: "9" }],
    "yarn-version": [2, { comparator: COMPARATORS.EQ, version: "1.12.3" }]
  }
};

FAQs

Package last updated on 17 Sep 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc