flatlint 2.3.4 → 2.4.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,13 @@
1
+ 2025.03.07, v2.4.0
2
+
3
+ feature:
4
+ - 7fa3055 convert-semicolon-to-comma: array
5
+
6
+ 2025.03.07, v2.3.5
7
+
8
+ feature:
9
+ - ddfb7d9 convert-semicolon-to-comma: exclude throw
10
+
1
11
  2025.03.07, v2.3.4
2
12
 
3
13
  fix:
@@ -12,6 +12,7 @@ const keywords = [
12
12
  'interface',
13
13
  'class',
14
14
  'return',
15
+ 'throw',
15
16
  ];
16
17
 
17
18
  export const report = () => `Use ',' instead of ';'`;
@@ -62,10 +63,14 @@ export const match = () => ({
62
63
 
63
64
  return false;
64
65
  },
66
+ '__a];': (vars, path) => {
67
+ return path.isNextPunctuator(closeSquareBrace);
68
+ },
65
69
  });
66
70
 
67
71
  export const replace = () => ({
68
72
  '__a: __expr;': '__a: __expr,',
69
73
  '__a;': '__a,',
70
74
  ');': '),',
75
+ '__a];': '__a],',
71
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "2.3.4",
3
+ "version": "2.4.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",