flatlint 2.1.3 → 2.1.4

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.28, v2.1.4
2
+
3
+ feature:
4
+ - 3a88fe2 flatlint: convert-semicolon-to-comma: arrow
5
+
1
6
  2025.02.28, v2.1.3
2
7
 
3
8
  feature:
@@ -12,6 +12,7 @@ const keywords = [
12
12
  'implements',
13
13
  'interface',
14
14
  'class',
15
+ 'return',
15
16
  ];
16
17
 
17
18
  export const report = () => `Use ',' instead of ';'`;
@@ -47,7 +48,7 @@ export const match = () => ({
47
48
  if (!path.isNext())
48
49
  return false;
49
50
 
50
- if (path.isPrevPunctuator(closeCurlyBrace))
51
+ if (path.isNextKeyword())
51
52
  return false;
52
53
 
53
54
  for (const token of path.getAllPrev()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",