Socket
Socket
Sign inDemoInstall

eslint-plugin-disallow-property

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-disallow-property

ESLint plugin for disallowing specified properties


Version published
Maintainers
1
Created
Source

eslint-plugin-disallow-property

ESLint plugin for disallowing specified properties

Usage

This plugin requires ESLint to also be installed. With both ESLint and this plugin installed, you will need to enable the plugin and configure what methods are disallowed.

Installation

Install ESLint if you have not already:

npm install eslint --save-dev

Install the plugin:

npm install eslint-plugin-disallow-property --save-dev

Configuration

Configure the plugin and its rules in your .eslintrc file or your shareable config.

Sample .eslintrc:

{
  "plugins": [
    // other plugins would go here

    "disallow-property"
  ],

  rules: {
    // other rules here

    // disallow-property rules
    "disallow-property/disallow-property": [2, ["myDisallowedProperty"]]
  }
}

Configuring rule to 1 will set it to warn and configuring it to 2 will set it to error.

License

MIT

Keywords

FAQs

Package last updated on 18 Dec 2015

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