flatlint 1.57.0 → 1.58.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
@@ -1,3 +1,8 @@
1
+ 2025.01.18, v1.58.0
2
+
3
+ feature:
4
+ - bb2a2db flatlint: convert-comma-to-semicolon: for, while
5
+
1
6
  2025.01.18, v1.57.0
2
7
 
3
8
  feature:
@@ -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
- const current = tokens[i];
144
-
145
- if (isNewLine(current))
146
- continue;
147
-
148
- yield current;
143
+ yield tokens[i];
149
144
  }
150
145
  };
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.57.0",
3
+ "version": "1.58.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",