flatlint 1.95.0 → 1.96.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.02.02, v1.96.0
2
+
3
+ feature:
4
+ - 1aac08c flatlint: add-missing-comma: object
5
+
1
6
  2025.02.01, v1.95.0
2
7
 
3
8
  fix:
package/README.md CHANGED
@@ -110,6 +110,12 @@ import {
110
110
  + a,
111
111
  b,
112
112
  } from 'c';
113
+
114
+ t.transform('declare-imports-first', {
115
+ - 'declare-imports-first': declareImportsFirst
116
+ + 'declare-imports-first': declareImportsFirst,
117
+ 'convert-esm-to-commonjs': convertEsmToCommonJs,
118
+ });
113
119
  ```
114
120
 
115
121
  </details>
@@ -1,4 +1,8 @@
1
- import {isKeyword} from '#types';
1
+ import {
2
+ colon,
3
+ isKeyword,
4
+ quote,
5
+ } from '#types';
2
6
 
3
7
  export const report = () => 'Add missing comma';
4
8
 
@@ -13,6 +17,9 @@ export const match = () => ({
13
17
  if (path.isInsideTemplate())
14
18
  return false;
15
19
 
20
+ if (path.isPrevPunctuator(colon) && path.isNextPunctuator(quote))
21
+ return true;
22
+
16
23
  return !path.isNextPunctuator();
17
24
  },
18
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.95.0",
3
+ "version": "1.96.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",