📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

eslint-plugin-radar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-radar

Radar rules for ESLint

0.2.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

eslint-plugin-radar npm version Build Status Quality Gate Coverage

Radar rules for ESLint to detect bugs and suspicious patterns in your code.

This is a currently maintained fork of SonarJS.

Rules

Bug Detection :bug:

Rules in this category aim to find places in code which have a high chance of being bugs, i.e. don't work as intended.

Code Smell Detection :pig:

Code Smells, or maintainability issues, are raised for places of code which might be costly to change in the future. These rules also help to keep the high code quality and readability. And finally some rules report issues on different suspicious code patters.

Prerequisites

Node.js (>=6.x).

Usage

  • If you don't have ESLint yet configured for your project, follow these instructions.
  • Install eslint-plugin-radar using npm (or yarn) for you project or globally:
npm install eslint-plugin-radar --save-dev # install for your project
npm install eslint-plugin-radar -g         # or install globally
  • Add eslint-plugin-radar to the plugins option of your .eslintrc:
{
  "plugins": ["radar"]
}
  • Add plugin:radar/recommended to the extends option to enable all recommended rules:
{
  "extends": ["plugin:radar/recommended"]
}
  • or enable only some rules manually:
{
  "rules": {
    "radar/cognitive-complexity": "error",
    "radar/no-identical-expressions": "error"
    // etc.
  }
}

Contributing

You want to participate in the development of the project? Have a look at our contributing guide!

Keywords

radar

FAQs

Package last updated on 06 Feb 2021

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