flatlint 3.2.0 → 3.3.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,14 @@
1
+ 2025.09.16, v3.3.0
2
+
3
+ feature:
4
+ - 648b983 convert-semiclon-to-comma: improve
5
+ - 1dc5b62 flatlint: @putout/test v14.0.0
6
+
7
+ 2025.08.05, v3.2.1
8
+
9
+ feature:
10
+ - 20a2767 flatlint: add-missing-squire-brace: simplify
11
+
1
12
  2025.08.05, v3.2.0
2
13
 
3
14
  feature:
@@ -1,9 +1,7 @@
1
1
  export const report = () => 'Add missing square brace';
2
2
 
3
3
  export const match = () => ({
4
- '["__a"': (vars, path) => {
5
- return !path.isNext();
6
- },
4
+ '["__a"': (vars, path) => !path.isNext(),
7
5
  });
8
6
  export const replace = () => ({
9
7
  '[__array;': '[__array];',
@@ -8,6 +8,7 @@ import {
8
8
  semicolon,
9
9
  assign,
10
10
  bitwiseAnd,
11
+ closeCurlyBrace,
11
12
  } from '#types';
12
13
 
13
14
  const keywords = [
@@ -86,6 +87,9 @@ export const match = () => ({
86
87
  '__a];': (vars, path) => {
87
88
  return path.isNextPunctuator(closeSquareBrace);
88
89
  },
90
+ '=> __a.__b(__c, __d);'(vars, path) {
91
+ return path.isNextPunctuator(closeCurlyBrace);
92
+ },
89
93
  });
90
94
 
91
95
  export const replace = () => ({
@@ -93,4 +97,5 @@ export const replace = () => ({
93
97
  '__a;': '__a,',
94
98
  ');': '),',
95
99
  '__a];': '__a],',
100
+ '=> __a.__b(__c, __d);': '=> __a.__b(__c, __d),',
96
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -83,8 +83,7 @@
83
83
  "js-tokens": "^9.0.1"
84
84
  },
85
85
  "devDependencies": {
86
- "@putout/formatter-json": "^2.0.0",
87
- "@putout/test": "^13.0.0",
86
+ "@putout/test": "^14.0.0",
88
87
  "c8": "^10.1.2",
89
88
  "eslint": "^9.7.0",
90
89
  "eslint-plugin-putout": "^28.0.4",