flatlint 1.36.0 → 1.37.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.01.10, v1.37.0
2
+
3
+ feature:
4
+ - d6a77bd convert-comma-to-semicolon: return
5
+
1
6
  2025.01.10, v1.36.0
2
7
 
3
8
  feature:
@@ -1,4 +1,8 @@
1
- import {colon, isPunctuator} from '#types';
1
+ import {
2
+ colon,
3
+ isPunctuator,
4
+ quote,
5
+ } from '#types';
2
6
 
3
7
  export const report = () => 'Use semicolon instead of trailing comma';
4
8
  export const match = () => ({
@@ -14,6 +18,7 @@ export const match = () => ({
14
18
  'var __a = __b': check,
15
19
  'let __a,': check,
16
20
  'var __a,': check,
21
+ 'return __expr,': ({}, path) => !path.isNextPunctuator(quote),
17
22
  });
18
23
 
19
24
  export const replace = () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",