Socket
Socket
Sign inDemoInstall

@stylistic/eslint-plugin-js

Package Overview
Dependencies
Maintainers
0
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylistic/eslint-plugin-js - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

2

dist/configs.js

@@ -78,3 +78,3 @@ 'use strict';

// Only include fixable rules
rule.meta.fixable && !rule.meta.deprecated && key === rule.meta.docs.url.split("/").pop() && (!filter )
rule.meta.fixable && !rule.meta.deprecated && key === rule.meta.docs.url.split("/").pop() && (!filter)
)

@@ -81,0 +81,0 @@ ).map(([key]) => [`${name}/${key}`, 2])

@@ -607,3 +607,3 @@ 'use strict';

const indentation = tokenInfo.getTokenIndent(token);
return indentation === desiredIndent || indentation.includes(" ") && indentation.includes(" ");
return indentation === desiredIndent;
}

@@ -610,0 +610,0 @@ function isOuterIIFE(node) {

@@ -246,4 +246,3 @@ 'use strict';

if (hasExcessParensWithPrecedence(callee, precedence(node))) {
if (hasDoubleExcessParens(callee) || !(isIIFE(node) || // @ts-expect-error comment above
callee.type === "NewExpression" && !isNewExpressionWithParens(callee) && !(node.type === "NewExpression" && !isNewExpressionWithParens(node)) || node.type === "NewExpression" && callee.type === "MemberExpression" && doesMemberExpressionContainCallExpression(callee) || (!("optional" in node) || !node.optional) && callee.type === "ChainExpression")) {
if (hasDoubleExcessParens(callee) || !(isIIFE(node) || callee.type === "NewExpression" && !isNewExpressionWithParens(callee) && !(node.type === "NewExpression" && !isNewExpressionWithParens(node)) || node.type === "NewExpression" && callee.type === "MemberExpression" && doesMemberExpressionContainCallExpression(callee) || (!("optional" in node) || !node.optional) && callee.type === "ChainExpression")) {
report(node.callee);

@@ -250,0 +249,0 @@ }

@@ -18,7 +18,7 @@ import type { Linter, Rule } from 'eslint'

*/
'disable-legacy': Linter.FlatConfig
'disable-legacy': Linter.Config
/**
* Enable all rules, in Flat Config Format
*/
'all-flat': Linter.FlatConfig
'all-flat': Linter.Config
/**

@@ -25,0 +25,0 @@ * Enable all rules, in Legacy Config Format

{
"name": "@stylistic/eslint-plugin-js",
"version": "2.3.0",
"version": "2.4.0",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",

@@ -112,10 +112,10 @@ "license": "MIT",

"dependencies": {
"@types/eslint": "^8.56.10",
"acorn": "^8.11.3",
"@types/eslint": "^9.6.0",
"acorn": "^8.12.1",
"eslint-visitor-keys": "^4.0.0",
"espree": "^10.0.1"
"espree": "^10.1.0"
},
"devDependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/parser": "^7.12.0",
"@typescript-eslint/parser": "^7.17.0",
"escape-string-regexp": "^5.0.0"

@@ -122,0 +122,0 @@ },

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