flatlint 1.45.2 → 1.46.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
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
closeRoundBrace,
|
|
8
8
|
dot,
|
|
9
9
|
question,
|
|
10
|
+
openRoundBrace,
|
|
10
11
|
} from '#types';
|
|
11
12
|
|
|
12
13
|
export const report = () => 'Add missing semicolon';
|
|
@@ -37,6 +38,7 @@ export const match = () => ({
|
|
|
37
38
|
arrow,
|
|
38
39
|
closeRoundBrace,
|
|
39
40
|
openCurlyBrace,
|
|
41
|
+
openRoundBrace,
|
|
40
42
|
dot,
|
|
41
43
|
question,
|
|
42
44
|
];
|
package/lib/runner/path.js
CHANGED
|
@@ -138,11 +138,6 @@ const createIsNextPunctuator = ({tokens, end}) => (punctuators) => {
|
|
|
138
138
|
if (!current)
|
|
139
139
|
return false;
|
|
140
140
|
|
|
141
|
-
for (const punctuator of maybeArray(punctuators)) {
|
|
142
|
-
if (isPunctuator(current, punctuator))
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
141
|
return isPunctuator(current, punctuators);
|
|
147
142
|
};
|
|
148
143
|
|