flatlint 1.43.1 → 1.44.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.14, v1.44.0
2
+
3
+ feature:
4
+ - e8199e8 flatlint: add-missing-semicolon: exclude question mark
5
+
1
6
  2025.01.13, v1.43.1
2
7
 
3
8
  fix:
@@ -6,6 +6,7 @@ import {
6
6
  openCurlyBrace,
7
7
  closeRoundBrace,
8
8
  dot,
9
+ question,
9
10
  } from '#types';
10
11
 
11
12
  export const report = () => 'Add missing semicolon';
@@ -16,6 +17,7 @@ export const match = () => ({
16
17
  comma,
17
18
  semicolon,
18
19
  openCurlyBrace,
20
+ question,
19
21
  ];
20
22
 
21
23
  if (path.isNextPunctuator(punctuators))
@@ -36,6 +38,7 @@ export const match = () => ({
36
38
  closeRoundBrace,
37
39
  openCurlyBrace,
38
40
  dot,
41
+ question,
39
42
  ];
40
43
 
41
44
  if (path.isNextPunctuator(punctuators))
@@ -116,6 +116,7 @@ export const closeSquareBrace = Punctuator(']');
116
116
  export const colon = Punctuator(':');
117
117
  export const comma = Punctuator(',');
118
118
  export const dot = Punctuator('.');
119
+ export const question = Punctuator('?');
119
120
  export const more = Punctuator('>');
120
121
  export const assign = Punctuator('=');
121
122
  export const openRoundBrace = Punctuator('(');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.43.1",
3
+ "version": "1.44.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",