flatlint 1.57.0 → 1.58.1
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 +10 -0
- package/lib/runner/path.js +1 -6
- package/lib/types/types.js +2 -0
- package/package.json +2 -1
package/ChangeLog
CHANGED
package/lib/runner/path.js
CHANGED
|
@@ -140,11 +140,6 @@ const createGetAllPrev = ({tokens, start}) => function*() {
|
|
|
140
140
|
|
|
141
141
|
const createGetAllNext = ({tokens, end}) => function*() {
|
|
142
142
|
for (let i = end; i < tokens.length; ++i) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
if (isNewLine(current))
|
|
146
|
-
continue;
|
|
147
|
-
|
|
148
|
-
yield current;
|
|
143
|
+
yield tokens[i];
|
|
149
144
|
}
|
|
150
145
|
};
|
package/lib/types/types.js
CHANGED
|
@@ -30,6 +30,7 @@ export const isKeyword = (token) => {
|
|
|
30
30
|
'await',
|
|
31
31
|
'const',
|
|
32
32
|
'continue',
|
|
33
|
+
'for',
|
|
33
34
|
'var',
|
|
34
35
|
'let',
|
|
35
36
|
'export',
|
|
@@ -40,6 +41,7 @@ export const isKeyword = (token) => {
|
|
|
40
41
|
'of',
|
|
41
42
|
'yield',
|
|
42
43
|
'typeof',
|
|
44
|
+
'while',
|
|
43
45
|
];
|
|
44
46
|
|
|
45
47
|
for (const keyword of keywords) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flatlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.1",
|
|
4
4
|
"description": "JavaScript tokens-based linter",
|
|
5
5
|
"main": "lib/flatlint.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
|
+
".": "./lib/flatlint.js",
|
|
8
9
|
"./with-plugins": "./lib/with-plugins.js"
|
|
9
10
|
},
|
|
10
11
|
"imports": {
|