flatlint 1.106.1 → 1.107.0

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.10, v1.107.0
2
+
3
+ feature:
4
+ - 14e276d flatlint: convert-comma-to-semicolon: last
5
+
1
6
  2025.02.10, v1.106.1
2
7
 
3
8
  fix:
@@ -54,6 +54,9 @@ export const match = () => ({
54
54
 
55
55
  return path.isNextKeyword();
56
56
  },
57
+ '__a,': (vars, path) => {
58
+ return !path.isNext();
59
+ },
57
60
  });
58
61
 
59
62
  export const replace = () => ({
@@ -63,6 +66,7 @@ export const replace = () => ({
63
66
  'return __expr,': 'return __expr;',
64
67
  '__a.__b = __expr,': '__a.__b = __expr;',
65
68
  '"__a",': '"__a";',
69
+ '__a,': '__a;',
66
70
  });
67
71
 
68
72
  const check = ({__x}, path) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.106.1",
3
+ "version": "1.107.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",