flatlint 1.101.0 → 1.102.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,13 @@
1
+ 2025.02.05, v1.102.0
2
+
3
+ feature:
4
+ - 462fd72 flatlint: add-missing-round-brace: exclude: interface
5
+
6
+ 2025.02.05, v1.101.1
7
+
8
+ fix:
9
+ - 1e422b0 flatlint: add-missing-comma: interface
10
+
1
11
  2025.02.04, v1.101.0
2
12
 
3
13
  feature:
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  closeRoundBrace,
3
+ colon,
3
4
  isKeyword,
4
5
  isPunctuator,
5
6
  openRoundBrace,
@@ -30,6 +31,9 @@ export const match = () => ({
30
31
  '__a;': (vars, path) => {
31
32
  let result = false;
32
33
 
34
+ if (path.isPrevPunctuator(colon))
35
+ return false;
36
+
33
37
  for (const current of path.getAllPrev()) {
34
38
  if (isPunctuator(current, openRoundBrace)) {
35
39
  result = true;
@@ -49,4 +49,3 @@ export const replace = () => ({
49
49
  '__a);': '__a;',
50
50
  '})': '}',
51
51
  });
52
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.101.0",
3
+ "version": "1.102.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",