flatlint 4.0.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
@@ -1,3 +1,8 @@
1
+ 2026.01.01, v4.0.1
2
+
3
+ fix:
4
+ - 892eb4c flatlint: convert-semicolon-to-comma: false positive
5
+
1
6
  2025.12.31, v4.0.0
2
7
 
3
8
  feature:
@@ -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": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",