flatlint 3.12.0 → 4.0.1
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.
package/ChangeLog
CHANGED
|
@@ -64,6 +64,7 @@ export const match = () => ({
|
|
|
64
64
|
return false;
|
|
65
65
|
|
|
66
66
|
const isNextCall = path.isNextCompare('__a.__b(');
|
|
67
|
+
const isNextClose = path.isNextCompare('},}');
|
|
67
68
|
|
|
68
69
|
for (const token of path.getAllPrev()) {
|
|
69
70
|
if (isOneOfIdentifiers(token, keywords))
|
|
@@ -78,7 +79,7 @@ export const match = () => ({
|
|
|
78
79
|
]))
|
|
79
80
|
return false;
|
|
80
81
|
|
|
81
|
-
if (isPunctuator(token, colon) && !isNextCall)
|
|
82
|
+
if (isPunctuator(token, colon) && !isNextCall && !isNextClose)
|
|
82
83
|
return true;
|
|
83
84
|
}
|
|
84
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatlint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "JavaScript tokens-based linter",
|
|
5
5
|
"main": "lib/flatlint.js",
|
|
6
6
|
"type": "module",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"supertape": "^11.0.4"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
|
-
"node": ">=
|
|
98
|
+
"node": ">=22"
|
|
99
99
|
},
|
|
100
100
|
"publishConfig": {
|
|
101
101
|
"access": "public"
|