@stylistic/eslint-plugin-plus
Advanced tools
Comparing version 1.5.4 to 1.6.0
@@ -66,3 +66,3 @@ 'use strict'; | ||
const lastTokenOfLineLeft = lastTokenOfLine(tokenLeft.loc.start.line); | ||
const needAdditionIndent = firstTokenOfLineLeft?.type === "Keyword" && !["typeof", "instanceof"].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" || [":", "[", "(", "<", "="].includes(lastTokenOfLineLeft?.value || ""); | ||
const indentTarget = getIndentOfLine(tokenLeft.loc.start.line) + (needAdditionIndent ? indentStr : ""); | ||
@@ -69,0 +69,0 @@ const indentRight = getIndentOfLine(tokenRight.loc.start.line); |
{ | ||
"name": "@stylistic/eslint-plugin-plus", | ||
"version": "1.5.4", | ||
"version": "1.6.0", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
@@ -42,6 +42,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"@typescript-eslint/utils": "^6.19.0" | ||
"@typescript-eslint/utils": "^6.20.0" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/rule-tester": "^6.19.0" | ||
"@typescript-eslint/rule-tester": "^6.20.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "scripts": { |
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
15147