flatlint 1.15.0 → 1.16.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.02, v1.16.0
2
+
3
+ feature:
4
+ - bad8496 flatlint: remove-useless-squire-brace: add
5
+
1
6
  2025.01.02, v1.15.0
2
7
 
3
8
  feature:
package/README.md CHANGED
@@ -78,6 +78,15 @@ npm i flatlint
78
78
 
79
79
  </details>
80
80
 
81
+ <details><summary>remove useless square brace</summary>
82
+
83
+ ```diff
84
+ -const a = [1, 2, 3]];
85
+ +const a = [1, 2, 3];
86
+ ```
87
+
88
+ </details>
89
+
81
90
  <details><summary>add missing quote</summary>
82
91
 
83
92
  ```diff
@@ -1,5 +1,5 @@
1
1
  export function report() {
2
- return 'Add missing squire brace';
2
+ return 'Add missing square brace';
3
3
  }
4
4
 
5
5
  export function replace() {
@@ -0,0 +1,5 @@
1
+ export const report = () => 'Remove useless square brace';
2
+
3
+ export const replace = () => ({
4
+ 'const __a = [__array]];': 'const __a = [__array];',
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",