flatlint 1.9.0 → 1.11.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.11.0
2
+
3
+ feature:
4
+ - 4e9b0dd flatlint: remove-useless-round-brace: add support of specifiers
5
+
6
+ 2024.12.31, v1.10.0
7
+
8
+ feature:
9
+ - 45a3f81 flatlint: add-const-to-export: arrow function support
10
+
1
11
  2024.12.31, v1.9.0
2
12
 
3
13
  feature:
@@ -1,5 +1,5 @@
1
1
  export const report = () => `Add 'const' to 'export'`;
2
2
 
3
3
  export const replace = () => ({
4
- 'export __a = __b': 'export const __a = __b',
4
+ 'export __a =': 'export const __a =',
5
5
  });
@@ -6,6 +6,6 @@ export function replace() {
6
6
  return {
7
7
  'const __a = __b)': 'const __a = __b',
8
8
  'const __a = "__b")': 'const __a = "__b"',
9
- 'import __a from "__b")': 'import __a from "__b"',
9
+ 'from "__b")': 'from "__b"',
10
10
  };
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",