flatlint 1.104.0 → 1.105.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 +8 -0
- package/lib/types/types.js +4 -1
- package/package.json +2 -2
package/ChangeLog
CHANGED
package/lib/types/types.js
CHANGED
|
@@ -32,8 +32,10 @@ export const isNewLine = ({type}) => type === 'LineTerminatorSequence';
|
|
|
32
32
|
|
|
33
33
|
export const isKeyword = (token, name) => {
|
|
34
34
|
const {value} = token;
|
|
35
|
+
const is = keyword.isKeyword(value);
|
|
36
|
+
const isTS = keyword.isTSKeyword(value);
|
|
35
37
|
|
|
36
|
-
if (!
|
|
38
|
+
if (!is && !isTS)
|
|
37
39
|
return false;
|
|
38
40
|
|
|
39
41
|
return isIdentifier(token, name);
|
|
@@ -231,3 +233,4 @@ export const getPrev = ({tokens, start}) => {
|
|
|
231
233
|
return token;
|
|
232
234
|
}
|
|
233
235
|
};
|
|
236
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.105.0",
|
|
4
4
|
"description": "JavaScript tokens-based linter",
|
|
5
5
|
"main": "lib/flatlint.js",
|
|
6
6
|
"type": "module",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@putout/engine-loader": "^15.1.1",
|
|
84
|
-
"@putout/operator-keyword": "^
|
|
84
|
+
"@putout/operator-keyword": "^2.0.0",
|
|
85
85
|
"debug": "^4.4.0",
|
|
86
86
|
"js-tokens": "^9.0.1"
|
|
87
87
|
},
|