flatlint 1.60.0 → 1.60.2

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,13 @@
1
+ 2025.01.18, v1.60.2
2
+
3
+ fix:
4
+ - a061abb flatlint: engine-loader v15.1.1
5
+
6
+ 2025.01.18, v1.60.1
7
+
8
+ feature:
9
+ - ed0c5f0 flatlint: add-missing-semicolon: simplify
10
+
1
11
  2025.01.18, v1.60.0
2
12
 
3
13
  feature:
@@ -9,6 +9,7 @@ import {
9
9
  question,
10
10
  openRoundBrace,
11
11
  or,
12
+ closeCurlyBrace,
12
13
  } from '#types';
13
14
 
14
15
  export const report = () => 'Add missing semicolon';
@@ -36,19 +37,7 @@ export const match = () => ({
36
37
  return true;
37
38
  },
38
39
  '__a(__args)': (vars, path) => {
39
- const punctuators = [
40
- comma,
41
- semicolon,
42
- arrow,
43
- closeRoundBrace,
44
- openCurlyBrace,
45
- openRoundBrace,
46
- dot,
47
- question,
48
- or,
49
- ];
50
-
51
- if (path.isNextPunctuator(punctuators))
40
+ if (path.isNextPunctuator() && !path.isNextPunctuator(closeCurlyBrace))
52
41
  return false;
53
42
 
54
43
  if (path.isInsideTemplate())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.60.0",
3
+ "version": "1.60.2",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -80,7 +80,7 @@
80
80
  "node": ">=18"
81
81
  },
82
82
  "dependencies": {
83
- "@putout/engine-loader": "^15.0.1",
83
+ "@putout/engine-loader": "^15.1.1",
84
84
  "debug": "^4.4.0",
85
85
  "js-tokens": "^9.0.1",
86
86
  "putout": "^37.0.0"