flatlint 2.0.7 → 2.0.8

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.8
2
+
3
+ feature:
4
+ - 705ac61 flatlint: add-missing-round-brace: exclude when no startin quote
5
+
1
6
  2025.02.21, v2.0.7
2
7
 
3
8
  feature:
@@ -48,7 +48,9 @@ export function parseStringLiteral({i, token, tokens}) {
48
48
  ++count;
49
49
 
50
50
  const literal = StringLiteral(value.slice(1));
51
- newTokens.splice(1, 0, literal);
51
+
52
+ if (literal.value)
53
+ newTokens.splice(1, 0, literal);
52
54
 
53
55
  tokens.splice(i, 1, ...newTokens);
54
56
  i += count;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",