flatlint 4.3.0 → 4.3.2

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
+ 2026.01.27, v4.3.2
2
+
3
+ fix:
4
+ - 4ee56d0 flatlint: examples
5
+
6
+ 2026.01.27, v4.3.1
7
+
8
+ feature:
9
+ - 78d19d3 flatlint: split-namespace-with-specifiers: couple
10
+
1
11
  2026.01.26, v4.3.0
2
12
 
3
13
  feature:
package/README.md CHANGED
@@ -371,11 +371,12 @@ const a = class {
371
371
 
372
372
  </details>
373
373
 
374
- <details><summary>split <code>namespace</code> with <code>specifier</code></summary>
374
+ <details><summary>split <code>namespace</code> with <code>specifiers</code></summary>
375
375
 
376
376
  ```diff
377
- -import * as plugin, {CUT} from './plugin.js'
378
- +import * as plugin, {CUT} from './plugin.js'
377
+ -import * as plugin, {CUT} from './plugin.js';
378
+ +import * as plugin from './plugin.js';
379
+ +const {CUT} = plugin;
379
380
  ```
380
381
 
381
382
  </details>
@@ -0,0 +1,7 @@
1
+ export const report = () => `Split 'namespace' with 'specifiers'`;
2
+
3
+ export const replace = () => ({
4
+ 'import * as __a, {__b} from "__c"': 'import * as __a from "__c";\nconst {__b} = __a;',
5
+ 'import * as __a, {__b, __c} from "__d"': 'import * as __a from "__d";\nconst {__b, __c} = __a;',
6
+ 'import * as __a, {__b, __c, __d} from "__e"': 'import * as __a from "__e";\nconst {__b, __c, __d} = __a;',
7
+ });
package/lib/plugins.js CHANGED
@@ -19,7 +19,7 @@ import * as removeUselessAssign from './plugins/remove-useless-assign/index.js';
19
19
  import * as removeUselessDot from './plugins/remove-useless-dot/index.js';
20
20
  import * as removeInvalidCharacter from './plugins/remove-invalid-character/index.js';
21
21
  import * as removeUselessRoundBrace from './plugins/remove-useless-round-brace/index.js';
22
- import * as splitNamespaceWithSpecifier from './plugins/split-namespace-with-specifier/index.js';
22
+ import * as splitNamespaceWithSpecifiers from './plugins/split-namespace-with-specifiers/index.js';
23
23
  import * as convertSemicolonToComma from './plugins/convert-semicolon-to-comma/index.js';
24
24
  import * as convertColonToComma from './plugins/convert-colon-to-comma/index.js';
25
25
  import * as convertColonToSemicolon from './plugins/convert-colon-to-semicolon/index.js';
@@ -54,6 +54,6 @@ export const plugins = [
54
54
  ['remove-useless-assign', removeUselessAssign],
55
55
  ['remove-useless-dot', removeUselessDot],
56
56
  ['remove-invalid-character', removeInvalidCharacter],
57
- ['split-namespace-with-specifier', splitNamespaceWithSpecifier],
57
+ ['split-namespace-with-specifiers', splitNamespaceWithSpecifiers],
58
58
  ['wrap-assignment-in-parens', wrapAssignmentInParens],
59
59
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -1,5 +0,0 @@
1
- export const report = () => `Split 'namespace' with 'specifier'`;
2
-
3
- export const replace = () => ({
4
- 'import * as __a, {__b} from "__c"': 'import * as __a from "__c";\nconst {__b} = __a;',
5
- });