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

@stylistic/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylistic/eslint-plugin - npm Package Compare versions

Comparing version 2.10.0 to 2.10.1

5

dist/rules/indent-binary-ops.js

@@ -80,5 +80,2 @@ 'use strict';

}
function hasExclusivelyCloseBracketOfLine(line) {
return !sourceCode.tokensAndComments.some((token) => token.loc.start.line === line && ![")", "}", "]"].includes(token.value));
}
function handler(node, right) {

@@ -103,3 +100,3 @@ if (node.loc.start.line === node.loc.end.line)

const needAdditionIndent = firstTokenOfLineLeft?.type === "Keyword" && !["typeof", "instanceof", "this"].includes(firstTokenOfLineLeft.value) || firstTokenOfLineLeft?.type === "Identifier" && firstTokenOfLineLeft.value === "type" && node.parent?.type === "TSTypeAliasDeclaration" || [":", "[", "(", "<", "="].includes(lastTokenOfLineLeft?.value || "") || ["[", "(", "=>", ":"].includes(tokenBeforeAll?.value || "") && firstTokenOfLineLeft?.loc.start.line === tokenBeforeAll?.loc.start.line || ["||", "&&"].includes(lastTokenOfLineLeft?.value || "") && node.loc.start.line === tokenLeft.loc.start.line && node.loc.start.column !== getIndentOfLine(node.loc.start.line).length;
const needSubtractionIndent = lastTokenOfLineLeft?.value === ")" && isGreaterThanCloseBracketOfLine(tokenLeft.loc.start.line) && !hasExclusivelyCloseBracketOfLine(tokenLeft.loc.start.line);
const needSubtractionIndent = lastTokenOfLineLeft?.value === ")" && isGreaterThanCloseBracketOfLine(tokenLeft.loc.start.line) && !["]", ")", "}"].includes(firstTokenOfLineLeft?.value || "");
const indentLeft = getIndentOfLine(tokenLeft.loc.start.line);

@@ -106,0 +103,0 @@ const indentRight = getIndentOfLine(tokenRight.loc.start.line);

2

dist/rules/key-spacing.js

@@ -448,2 +448,4 @@ 'use strict';

return;
if (!node.attributes.length)
return;
if (isSingleLineImportAttributes(node, sourceCode))

@@ -450,0 +452,0 @@ verifyListSpacing(node.attributes, singleLineOptions);

{
"name": "@stylistic/eslint-plugin",
"type": "commonjs",
"version": "2.10.0",
"version": "2.10.1",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

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