flatlint 4.0.7 → 4.1.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,11 @@
1
+ 2026.01.10, v4.1.0
2
+
3
+ feature:
4
+ - d679c52 flatlint: convert-module-to-namespace: add
5
+ - f341d6e flatlint: supertape v12.0.0
6
+ - 085179a flatlint: madrun v12.1.0
7
+ - 7529984 flatlint: @putout/test v15.0.0
8
+
1
9
  2026.01.01, v4.0.7
2
10
 
3
11
  feature:
package/README.md CHANGED
@@ -255,6 +255,17 @@ const b = [
255
255
 
256
256
  </details>
257
257
 
258
+ <details><summary>convert <code>module</code> to <code>namespace</code></summary>
259
+
260
+ ```diff
261
+ -module M {
262
+ +namespace M {
263
+ var a: string;
264
+ }
265
+ ```
266
+
267
+ </details>
268
+
258
269
  <details><summary>remove useless comma</summary>
259
270
 
260
271
  ```diff
@@ -0,0 +1,5 @@
1
+ export const report = () => `Use 'namespace' instead of 'module'`;
2
+
3
+ export const replace = () => ({
4
+ 'module __a': 'namespace __a',
5
+ });
package/lib/plugins.js CHANGED
@@ -23,6 +23,7 @@ import * as convertSemicolonToComma from './plugins/convert-semicolon-to-comma/i
23
23
  import * as convertColonToComma from './plugins/convert-colon-to-comma/index.js';
24
24
  import * as convertColonToSemicolon from './plugins/convert-colon-to-semicolon/index.js';
25
25
  import * as convertColonToAs from './plugins/convert-colon-to-as/index.js';
26
+ import * as convertModuleToNamespace from './plugins/convert-module-to-namespace/index.js';
26
27
  import * as wrapAssignmentInParens from './plugins/wrap-assignment-in-parens/index.js';
27
28
 
28
29
  export const plugins = [
@@ -43,6 +44,7 @@ export const plugins = [
43
44
  ['convert-colon-to-comma', convertColonToComma],
44
45
  ['convert-colon-to-as', convertColonToAs],
45
46
  ['convert-colon-to-semicolon', convertColonToSemicolon],
47
+ ['convert-module-to-namespace', convertModuleToNamespace],
46
48
  ['convert-semicolon-to-comma', convertSemicolonToComma],
47
49
  ['convert-from-to-require', convertFromToRequire],
48
50
  ['remove-useless-comma', removeUselessComma],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "4.0.7",
3
+ "version": "4.1.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -83,16 +83,16 @@
83
83
  "obug": "^2.1.1"
84
84
  },
85
85
  "devDependencies": {
86
- "@putout/test": "^14.0.0",
86
+ "@putout/test": "^15.0.0",
87
87
  "c8": "^10.1.2",
88
88
  "eslint": "^9.7.0",
89
89
  "eslint-plugin-putout": "^29.0.2",
90
- "madrun": "^11.0.0",
90
+ "madrun": "^12.1.0",
91
91
  "mock-require": "^3.0.3",
92
92
  "montag": "^1.0.0",
93
93
  "nodemon": "^3.0.1",
94
94
  "putout": "^41.0.2",
95
- "supertape": "^11.0.4"
95
+ "supertape": "^12.0.0"
96
96
  },
97
97
  "engines": {
98
98
  "node": ">=22"