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

eslint-plugin-sonarjs

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-sonarjs - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0

40

package.json
{
"name": "eslint-plugin-sonarjs",
"version": "0.21.0",
"version": "0.22.0",
"description": "SonarJS rules for ESLint",

@@ -36,11 +36,11 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/core": "7.22.9",
"@babel/eslint-parser": "7.18.9",
"@babel/plugin-proposal-export-default-from": "^7.18.9",
"@babel/plugin-proposal-function-bind": "^7.18.9",
"@babel/preset-env": "7.18.9",
"@babel/preset-flow": "7.18.6",
"@babel/preset-react": "7.18.6",
"@types/eslint": "8.4.5",
"@types/jest": "28.1.6",
"@babel/core": "7.23.2",
"@babel/eslint-parser": "7.22.5",
"@babel/plugin-proposal-export-default-from": "7.18.9",
"@babel/plugin-proposal-function-bind": "7.18.9",
"@babel/preset-env": "7.23.2",
"@babel/preset-flow": "7.22.15",
"@babel/preset-react": "7.22.15",
"@types/eslint": "8.40.0",
"@types/jest": "29.5.2",
"@types/lodash": "4.14.182",

@@ -51,8 +51,8 @@ "@types/minimist": "1.2.2",

"@typescript-eslint/parser": "5.30.7",
"eslint": "8.20.0",
"eslint": "8.47.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-notice": "0.9.10",
"eslint-plugin-sonarjs": "0.20.0",
"jest": "28.1.3",
"eslint-plugin-sonarjs": "0.21.0",
"jest": "29.5.0",
"jest-sonar-reporter": "2.0.0",

@@ -64,3 +64,3 @@ "lint-staged": "13.0.3",

"rimraf": "3.0.2",
"ts-jest": "28.0.7",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",

@@ -84,7 +84,2 @@ "typescript": "4.7.4"

],
"globals": {
"ts-jest": {
"babelConfig": false
}
},
"moduleFileExtensions": [

@@ -96,3 +91,8 @@ "ts",

"transform": {
"^.+\\.ts$": "ts-jest"
"^.+\\.ts$": [
"ts-jest",
{
"babelConfig": false
}
]
},

@@ -99,0 +99,0 @@ "testMatch": [

# eslint-plugin-sonarjs [![npm version](https://badge.fury.io/js/eslint-plugin-sonarjs.svg)](https://badge.fury.io/js/eslint-plugin-sonarjs) [![Build Status](https://api.cirrus-ci.com/github/SonarSource/eslint-plugin-sonarjs.svg?branch=master)](https://cirrus-ci.com/github/SonarSource/eslint-plugin-sonarjs) [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=eslint-plugin-sonarjs&metric=alert_status)](https://sonarcloud.io/dashboard?id=eslint-plugin-sonarjs) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=eslint-plugin-sonarjs&metric=coverage)](https://sonarcloud.io/dashboard?id=eslint-plugin-sonarjs)
SonarJS rules for ESLint to detect bugs and suspicious patterns in your code.
SonarJS rules for ESLint to help developers produce [Clean Code](https://www.sonarsource.com/solutions/clean-code/) by detecting bugs and suspicious patterns.

@@ -9,3 +9,3 @@ ## Rules

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.
Rules in this category aim to find places in code that have a high chance of being bugs, i.e. don't work as intended.

@@ -25,3 +25,3 @@ * All branches in a conditional structure should not have exactly the same implementation ([`no-all-duplicated-branches`])

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.
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 patterns.

@@ -92,3 +92,3 @@ * Cognitive Complexity of functions should not be too high ([`cognitive-complexity`])

* If you don't have ESLint yet configured for your project, follow [these instructions](https://github.com/eslint/eslint#installation-and-usage).
* Install `eslint-plugin-sonarjs` using `npm` (or `yarn`) for you project or globally:
* Install `eslint-plugin-sonarjs` using `npm` (or `yarn`) for your project or globally:

@@ -131,12 +131,12 @@ ```sh

This plugin provides only `recommended` configuration. Almost all rules are activated in this profile with a few exceptions (check `disabled` tag in the rules list). `recommended` configuration activates rules with `error` severity.
This plugin provides only a `recommended` configuration. Almost all rules are activated in this profile with a few exceptions (check the `disabled` tag in the rules list). The `recommended` configuration activates rules with `error` severity.
## ESLint and Sonar
This plugin exposes to ESLint users a subset of JS/TS rules from Sonar-* products (aka [SonarJS](https://github.com/SonarSource/SonarJS)). We extracted the rules which are not available in ESLint core or other ESLint plugins to be beneficial for ESLint community.
This plugin exposes to ESLint users a subset of JS/TS rules from Sonar-* products (aka [SonarJS](https://github.com/SonarSource/SonarJS)). We extracted the rules that are not available in ESLint core or other ESLint plugins to be beneficial for the ESLint community.
If you are a [SonarQube](https://www.sonarqube.org) or [SonarCloud](https://sonarcloud.io) user, to lint your code locally, we suggest to use [SonarLint](https://www.sonarlint.org) IDE extension (available for VSCode, JetBrains IDEs and Eclipse). You can connect SonarLint to your SonarQube/SonarCloud project to synchronize rules configuration, issue statuses, etc.
If you are a [SonarQube](https://www.sonarqube.org) or [SonarCloud](https://sonarcloud.io) user, to lint your code locally, we suggest using [SonarLint](https://www.sonarlint.org) IDE extension (available for VSCode, JetBrains IDEs and Eclipse). You can connect SonarLint to your SonarQube/SonarCloud project to synchronize rules configuration, issue statuses, etc.
## Contributing
You want to participate in the development of the project? Have a look at our [contributing](./docs/CONTRIBUTING.md) guide!
Do you want to participate in the development of the project? Have a look at our [contributing](./docs/CONTRIBUTING.md) guide!
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