flatlint 1.77.0 → 1.78.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.22, v1.78.0
2
+
3
+ feature:
4
+ - fd9ced0 flatlint: convert-comma-to-semicolon: exclude quote
5
+
1
6
  2025.01.22, v1.77.0
2
7
 
3
8
  feature:
@@ -38,6 +38,9 @@ export const match = () => ({
38
38
 
39
39
  return !path.isNextPunctuator(quote);
40
40
  },
41
+ '__a.__b = __expr,': ({__expr}, path) => {
42
+ return !path.isNextPunctuator(quote);
43
+ },
41
44
  });
42
45
 
43
46
  export const replace = () => ({
@@ -47,7 +50,6 @@ export const replace = () => ({
47
50
  '__a(__args),': '__a(__args);',
48
51
  'return __expr,': 'return __expr;',
49
52
  '__a.__b = __expr,': '__a.__b = __expr;',
50
- '__a.__b.__c = __expr,': '__a.__b.__c = __expr;',
51
53
  });
52
54
 
53
55
  const check = ({__x, __a}, path) => {
@@ -62,3 +64,4 @@ const check = ({__x, __a}, path) => {
62
64
 
63
65
  return path.isNextKeyword() && !path.isNextIdentifier('new');
64
66
  };
67
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.77.0",
3
+ "version": "1.78.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",