@plugjs/eslint-plugin 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5801,9 +5801,6 @@ var require_indent_binary_ops = __commonJS({
|
|
|
5801
5801
|
}
|
|
5802
5802
|
return openBracketCount < closeBracketCount;
|
|
5803
5803
|
}
|
|
5804
|
-
function hasExclusivelyCloseBracketOfLine(line) {
|
|
5805
|
-
return !sourceCode.tokensAndComments.some((token) => token.loc.start.line === line && ![")", "}", "]"].includes(token.value));
|
|
5806
|
-
}
|
|
5807
5804
|
function handler(node, right) {
|
|
5808
5805
|
if (node.loc.start.line === node.loc.end.line)
|
|
5809
5806
|
return;
|
|
@@ -5823,7 +5820,7 @@ var require_indent_binary_ops = __commonJS({
|
|
|
5823
5820
|
const firstTokenOfLineLeft = firstTokenOfLine(tokenLeft.loc.start.line);
|
|
5824
5821
|
const lastTokenOfLineLeft = lastTokenOfLine(tokenLeft.loc.start.line);
|
|
5825
5822
|
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;
|
|
5826
|
-
const needSubtractionIndent = lastTokenOfLineLeft?.value === ")" && isGreaterThanCloseBracketOfLine(tokenLeft.loc.start.line) && !
|
|
5823
|
+
const needSubtractionIndent = lastTokenOfLineLeft?.value === ")" && isGreaterThanCloseBracketOfLine(tokenLeft.loc.start.line) && !["]", ")", "}"].includes(firstTokenOfLineLeft?.value || "");
|
|
5827
5824
|
const indentLeft = getIndentOfLine(tokenLeft.loc.start.line);
|
|
5828
5825
|
const indentRight = getIndentOfLine(tokenRight.loc.start.line);
|
|
5829
5826
|
const indentTarget = getTargetIndent(indentLeft, needAdditionIndent, needSubtractionIndent);
|
|
@@ -9916,6 +9913,8 @@ var require_key_spacing = __commonJS({
|
|
|
9916
9913
|
function verifyImportAttributes(node) {
|
|
9917
9914
|
if (!node.attributes)
|
|
9918
9915
|
return;
|
|
9916
|
+
if (!node.attributes.length)
|
|
9917
|
+
return;
|
|
9919
9918
|
if (isSingleLineImportAttributes(node, sourceCode))
|
|
9920
9919
|
verifyListSpacing(node.attributes, singleLineOptions);
|
|
9921
9920
|
else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/eslint-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "Shared ESLint configurations and extras",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"build": "eslint"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"eslint": "^9.
|
|
13
|
+
"eslint": "^9.14.0"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"*.md",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/plugjs/eslint-plugin#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@eslint/js": "9.
|
|
38
|
+
"@eslint/js": "9.14.0",
|
|
39
39
|
"@nolyfill/is-core-module": "1.0.39",
|
|
40
|
-
"@typescript-eslint/utils": "8.
|
|
40
|
+
"@typescript-eslint/utils": "8.13.0",
|
|
41
41
|
"debug": "4.3.7",
|
|
42
42
|
"doctrine": "3.0.0",
|
|
43
43
|
"enhanced-resolve": "5.17.1",
|
|
44
|
-
"eslint": "9.
|
|
44
|
+
"eslint": "9.14.0",
|
|
45
45
|
"eslint-module-utils": "2.12.0",
|
|
46
46
|
"eslint-plugin-unicorn": "56.0.0",
|
|
47
47
|
"eslint-visitor-keys": "4.2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"estraverse": "5.3.0",
|
|
50
50
|
"fast-glob": "3.3.2",
|
|
51
51
|
"get-tsconfig": "4.8.1",
|
|
52
|
-
"globals": "15.
|
|
52
|
+
"globals": "15.12.0",
|
|
53
53
|
"is-bun-module": "1.2.1",
|
|
54
54
|
"is-core-module": "2.15.1",
|
|
55
55
|
"is-glob": "4.0.3",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"stable-hash": "0.0.4",
|
|
61
61
|
"tslib": "2.8.1",
|
|
62
62
|
"typescript": "5.6.3",
|
|
63
|
-
"typescript-eslint": "8.
|
|
63
|
+
"typescript-eslint": "8.13.0"
|
|
64
64
|
}
|
|
65
65
|
}
|