Socket
Socket
Sign inDemoInstall

eslint-plugin-detect-no-assignment

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-detect-no-assignment

Detect functions like map, filter and reduce without being assigned to a variable


Version published
Weekly downloads
30
decreased by-57.14%
Maintainers
1
Install size
4.51 kB
Created
Weekly downloads
 

Readme

Source

eslint-plugin-detect-no-assignment

Detect functions like map, filter and reduce without being assigned to a variable.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

or if you use yarn

$ yarn add eslint -D

Next, install eslint-plugin-detect-no-assignment:

$ npm install eslint-plugin-detect-no-assignment --save-dev

or

$ yarn add eslint-plugin-detect-no-assignment -D

Usage

Add detect-no-assignment to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["detect-no-assignment"],
  "rules": {
    "detect-no-assignment/detect-no-assignment": "error"
  }
}

Keywords

FAQs

Last updated on 23 Sep 2020

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