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

@stylistic/eslint-plugin-plus

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 2.2.1 to 2.2.2

4

dist/indent-binary-ops.js
'use strict';
var utils$1 = require('@typescript-eslint/utils');
var utils = require('./utils.js');
require('@typescript-eslint/utils');

@@ -66,3 +66,3 @@ var indentBinaryOps = utils.createRule({

const lastTokenOfLineLeft = lastTokenOfLine(tokenLeft.loc.start.line);
const needAdditionIndent = firstTokenOfLineLeft?.type === "Keyword" && !["typeof", "instanceof", "this"].includes(firstTokenOfLineLeft.value) || firstTokenOfLineLeft?.type === "Identifier" && firstTokenOfLineLeft.value === "type" || [":", "[", "(", "<", "="].includes(lastTokenOfLineLeft?.value || "");
const needAdditionIndent = firstTokenOfLineLeft?.type === "Keyword" && !["typeof", "instanceof", "this"].includes(firstTokenOfLineLeft.value) || firstTokenOfLineLeft?.type === "Identifier" && firstTokenOfLineLeft.value === "type" && node.parent?.type === utils$1.AST_NODE_TYPES.TSTypeAliasDeclaration || [":", "[", "(", "<", "="].includes(lastTokenOfLineLeft?.value || "") || ["||", "&&"].includes(lastTokenOfLineLeft?.value || "") && node.loc.start.line === tokenLeft.loc.start.line && node.loc.start.column !== getIndentOfLine(node.loc.start.line).length;
const indentTarget = getIndentOfLine(tokenLeft.loc.start.line) + (needAdditionIndent ? indentStr : "");

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

@@ -6,4 +6,4 @@ 'use strict';

var typeNamedTupleSpacing = require('./type-named-tuple-spacing.js');
require('@typescript-eslint/utils');
require('./utils.js');
require('@typescript-eslint/utils');

@@ -10,0 +10,0 @@ var rules = {

{
"name": "@stylistic/eslint-plugin-plus",
"version": "2.2.1",
"version": "2.2.2",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",

@@ -5,0 +5,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