flatlint 2.0.6 → 2.0.7

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
+ 2025.02.21, v2.0.7
2
+
3
+ feature:
4
+ - 6eaad76 flatlint: convert-comma-to-semicolon: improve support of string arguments
5
+
1
6
  2025.02.21, v2.0.6
2
7
 
3
8
  feature:
@@ -56,6 +56,11 @@ export const match = () => ({
56
56
  if (path.isNextPunctuator())
57
57
  return false;
58
58
 
59
+ for (const token of path.getAllPrev()) {
60
+ if (isPunctuator(token, openRoundBrace))
61
+ return false;
62
+ }
63
+
59
64
  if (path.isNextKeyword())
60
65
  return true;
61
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",