flatlint 4.0.5 → 4.0.6
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
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
isDeclarationKeyword,
|
|
4
4
|
isKeyword,
|
|
5
5
|
isPunctuator,
|
|
6
|
+
plus,
|
|
6
7
|
question,
|
|
7
8
|
semicolon,
|
|
8
9
|
} from '#types';
|
|
@@ -28,6 +29,9 @@ export const match = () => ({
|
|
|
28
29
|
if (isPunctuator(assign, __expr))
|
|
29
30
|
return false;
|
|
30
31
|
|
|
32
|
+
if (isPunctuator(plus, __expr))
|
|
33
|
+
return false;
|
|
34
|
+
|
|
31
35
|
return !isPunctuator(question, __expr);
|
|
32
36
|
},
|
|
33
37
|
});
|
package/lib/types/types.js
CHANGED
|
@@ -156,6 +156,7 @@ export const openRoundBrace = Punctuator('(');
|
|
|
156
156
|
export const or = Punctuator('||');
|
|
157
157
|
export const binaryOr = Punctuator('|');
|
|
158
158
|
export const spread = Punctuator('...');
|
|
159
|
+
export const plus = Punctuator('+');
|
|
159
160
|
export const rest = Punctuator('...');
|
|
160
161
|
export const semicolon = Punctuator(';');
|
|
161
162
|
export const openCurlyBrace = Punctuator('{');
|