flatlint 1.105.1 → 1.106.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
package/lib/types/types.js
CHANGED
|
@@ -31,9 +31,6 @@ export const isNumericLiteral = ({type}) => type === 'NumericLiteral';
|
|
|
31
31
|
export const isNewLine = ({type}) => type === 'LineTerminatorSequence';
|
|
32
32
|
|
|
33
33
|
export const isKeyword = (token, name) => {
|
|
34
|
-
if (!token)
|
|
35
|
-
return false;
|
|
36
|
-
|
|
37
34
|
const {value} = token;
|
|
38
35
|
const is = keyword.isKeyword(value);
|
|
39
36
|
const isTS = keyword.isTSKeyword(value);
|