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
|
@@ -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))
|
package/lib/types/types.js
CHANGED
|
@@ -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('(');
|