flatlint 1.8.0 → 1.10.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,13 @@
1
+ 2024.12.31, v1.10.0
2
+
3
+ feature:
4
+ - 45a3f81 flatlint: add-const-to-export: arrow function support
5
+
6
+ 2024.12.31, v1.9.0
7
+
8
+ feature:
9
+ - e3e32a4 flatlint: add const to export
10
+
1
11
  2024.12.31, v1.8.0
2
12
 
3
13
  feature:
package/README.md CHANGED
@@ -39,6 +39,15 @@ npm i flatlint
39
39
 
40
40
  </details>
41
41
 
42
+ <details><summary>add <code>const</code> to <code>export</code></summary>
43
+
44
+ ```diff
45
+ -export x = 5;
46
+ +export const x = 5;
47
+ ```
48
+
49
+ </details>
50
+
42
51
  <details><summary>add missing squire brace</summary>
43
52
 
44
53
  ```diff
@@ -0,0 +1,5 @@
1
+ export const report = () => `Add 'const' to 'export'`;
2
+
3
+ export const replace = () => ({
4
+ 'export __a =': 'export const __a =',
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",