@stylistic/eslint-plugin-js
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
527914
14412
47
+ Added@types/eslint@9.6.1(transitive)
- Removed@types/eslint@8.56.12(transitive)
Updated@types/eslint@^9.6.0
Updatedacorn@^8.12.1
Updatedespree@^10.1.0