@stylistic/eslint-plugin-plus
Advanced tools
Comparing version 2.2.1 to 2.2.2
'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", |
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
15441
371