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
@@ -1,3 +1,8 @@
1
+ 2025.02.10, v1.106.0
2
+
3
+ feature:
4
+ - 9d3ddf2 flatlint: convert-comma-to-semicolon: one import
5
+
1
6
  2025.02.07, v1.105.1
2
7
 
3
8
  fix:
@@ -46,6 +46,9 @@ export const match = () => ({
46
46
  return !path.isNextPunctuator([quote, openCurlyBrace]);
47
47
  },
48
48
  '"__a",': (vars, path) => {
49
+ if (!path.isNext())
50
+ return true;
51
+
49
52
  if (path.isNextPunctuator())
50
53
  return false;
51
54
 
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.105.1",
3
+ "version": "1.106.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",