Socket
Socket
Sign inDemoInstall

eslint-plugin-detect-hard-code

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-detect-hard-code

Detect hardcoded strings.


Version published
Maintainers
1
Install size
8.30 kB
Created

Readme

Source

eslint-plugin-detect-hard-code

Detect hard coded strings.

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-hard-code:

$ npm install eslint-plugin-detect-hard-code --save-dev

or

$ yarn add eslint-plugin-detect-hard-code -D

Usage

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

{
  "plugins": ["detect-hard-code"],
  "rules": {
    "detect-hard-code/detect-hard-code": "error"
  }
}

Keywords

FAQs

Last updated on 28 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