putout 42.22.0 → 42.22.1

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,10 @@
1
+ 2026.10.23, v42.22.1
2
+
3
+ feature:
4
+ - f000a1715 eslint-plugin-putout: typescript/no-unused-vars: off
5
+ - ec9f20f78 putout: types: runners
6
+ - 620dfafc2 @putout/types: runners
7
+
1
8
  2026.10.23, v42.22.0
2
9
 
3
10
  fix:
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {Node} from '@putout/babel';
2
2
  import {PrinterOptions, ParseOptions} from '@putout/engine-parser';
3
- import {PutoutPlugin} from '@putout/types/plugin';
3
+ import {PutoutPlugin, Report} from '@putout/types/plugin';
4
4
 
5
5
  export type * from '@putout/types/plugin';
6
6
  export * as operator from '../types/operator.ts';
@@ -34,6 +34,21 @@ type RuleValue = RuleState | RuleTuple;
34
34
 
35
35
  export type Rules = Record<string, RuleValue>;
36
36
 
37
+ type Runners = Record<string, (item: {
38
+ plugin: {
39
+ report: Report;
40
+ [key: string]: unknown;
41
+ };
42
+ [key: string]: unknown;
43
+ }) => {
44
+ rule: string;
45
+ msg?: string;
46
+ options?: Record<string, unknown>;
47
+ plugin: {
48
+ report: Report;
49
+ };
50
+ }>;
51
+
37
52
  export type TransformOptions = {
38
53
  plugins?: (string | [string, Record<string, unknown>] | [string, PutoutPlugin])[];
39
54
  rules?: Rules;
@@ -41,6 +56,7 @@ export type TransformOptions = {
41
56
  fixCount?: number;
42
57
  parser?: string;
43
58
  printer?: PrinterConfig;
59
+ runners?: Runners;
44
60
  };
45
61
 
46
62
  type Options = ParseOptions & TransformOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "42.22.0",
3
+ "version": "42.22.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",