flatlint 1.97.0 → 1.97.1

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.03, v1.97.1
2
+
3
+ fix:
4
+ - 88fc720 flatlint: add-missing-comma: const
5
+
1
6
  2025.02.03, v1.97.0
2
7
 
3
8
  feature:
@@ -2,12 +2,16 @@ import {
2
2
  colon,
3
3
  isKeyword,
4
4
  quote,
5
+ assign,
5
6
  } from '#types';
6
7
 
7
8
  export const report = () => 'Add missing comma';
8
9
 
9
10
  export const match = () => ({
10
11
  '"__a"': (vars, path) => {
12
+ if (path.isPrevPunctuator(assign))
13
+ return false;
14
+
11
15
  return path.isNextIdentifier();
12
16
  },
13
17
  '__a': ({__a}, path) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.97.0",
3
+ "version": "1.97.1",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",