flatlint 1.91.1 → 1.92.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.01, v1.92.0
2
+
3
+ feature:
4
+ - 214fd4b flatlint: add-missing-curly-brace: "const {__a = __expr;"
5
+
1
6
  2025.01.31, v1.91.1
2
7
 
3
8
  feature:
package/README.md CHANGED
@@ -54,6 +54,9 @@ module.exports = 2;
54
54
  ```diff
55
55
  -function a({b, c) {}
56
56
  -function a({b, c}) {}
57
+
58
+ -const {a = b;
59
+ +const {a} = b;
57
60
  ```
58
61
 
59
62
  </details>
@@ -2,4 +2,5 @@ export const report = () => 'Add missing curly brace';
2
2
 
3
3
  export const replace = () => ({
4
4
  '({__args)': '({__args})',
5
+ 'const {__a = __expr;': 'const {__a} = __expr;',
5
6
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.91.1",
3
+ "version": "1.92.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",