flatlint 1.105.1 → 1.106.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,13 @@
1
+ 2025.02.10, v1.106.1
2
+
3
+ fix:
4
+ - b5f2743 flatlint: add-missing-comma: import
5
+
6
+ 2025.02.10, v1.106.0
7
+
8
+ feature:
9
+ - 9d3ddf2 flatlint: convert-comma-to-semicolon: one import
10
+
1
11
  2025.02.07, v1.105.1
2
12
 
3
13
  fix:
@@ -21,6 +21,9 @@ export const match = () => ({
21
21
  if (path.isNextKeyword())
22
22
  return false;
23
23
 
24
+ if (!path.isNext())
25
+ return false;
26
+
24
27
  if (path.isInsideTemplate())
25
28
  return false;
26
29
 
@@ -46,6 +46,9 @@ export const match = () => ({
46
46
  return !path.isNextPunctuator([quote, openCurlyBrace]);
47
47
  },
48
48
  '"__a",': (vars, path) => {
49
+ if (!path.isNext())
50
+ return true;
51
+
49
52
  if (path.isNextPunctuator())
50
53
  return false;
51
54
 
@@ -236,4 +236,3 @@ export const getPrev = ({tokens, start}) => {
236
236
  return token;
237
237
  }
238
238
  };
239
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.105.1",
3
+ "version": "1.106.1",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",