@morev/eslint-disable-autofix 1.0.1 → 1.0.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/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { Linter } from 'eslint';
1
+ import * as eslint from 'eslint';
2
+ import { PlainObject } from '@morev/utils';
2
3
 
3
4
  /**
4
5
  * Options of the factory that creates a `disableAutofix` wrapper.
@@ -36,7 +37,7 @@ type CreateDisableAutofixOptions = {
36
37
  *
37
38
  * @returns Wrapper function that will disable autofix for config rules.
38
39
  */
39
- declare const createDisableAutofix: (options?: Partial<CreateDisableAutofixOptions>) => (configurations: Linter.Config[]) => Linter.Config<Linter.RulesRecord>[];
40
+ declare const createDisableAutofix: (options?: Partial<CreateDisableAutofixOptions>) => (configurations: PlainObject[]) => eslint.Linter.Config<eslint.Linter.RulesRecord>[];
40
41
  /**
41
42
  * Wrapper function that will disable autofix
42
43
  * for config rules that have `no-autofix/` prefix.
@@ -60,6 +61,6 @@ declare const createDisableAutofix: (options?: Partial<CreateDisableAutofixOptio
60
61
  * are replaced with the same rules without the prefix,
61
62
  * and the original rules are patched so that `autofix` is not performed.
62
63
  */
63
- declare const disableAutofix: (configurations: Linter.Config[]) => Linter.Config<Linter.RulesRecord>[];
64
+ declare const disableAutofix: (configurations: PlainObject[]) => eslint.Linter.Config<eslint.Linter.RulesRecord>[];
64
65
 
65
66
  export { createDisableAutofix, disableAutofix };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Linter } from 'eslint';
1
+ import * as eslint from 'eslint';
2
+ import { PlainObject } from '@morev/utils';
2
3
 
3
4
  /**
4
5
  * Options of the factory that creates a `disableAutofix` wrapper.
@@ -36,7 +37,7 @@ type CreateDisableAutofixOptions = {
36
37
  *
37
38
  * @returns Wrapper function that will disable autofix for config rules.
38
39
  */
39
- declare const createDisableAutofix: (options?: Partial<CreateDisableAutofixOptions>) => (configurations: Linter.Config[]) => Linter.Config<Linter.RulesRecord>[];
40
+ declare const createDisableAutofix: (options?: Partial<CreateDisableAutofixOptions>) => (configurations: PlainObject[]) => eslint.Linter.Config<eslint.Linter.RulesRecord>[];
40
41
  /**
41
42
  * Wrapper function that will disable autofix
42
43
  * for config rules that have `no-autofix/` prefix.
@@ -60,6 +61,6 @@ declare const createDisableAutofix: (options?: Partial<CreateDisableAutofixOptio
60
61
  * are replaced with the same rules without the prefix,
61
62
  * and the original rules are patched so that `autofix` is not performed.
62
63
  */
63
- declare const disableAutofix: (configurations: Linter.Config[]) => Linter.Config<Linter.RulesRecord>[];
64
+ declare const disableAutofix: (configurations: PlainObject[]) => eslint.Linter.Config<eslint.Linter.RulesRecord>[];
64
65
 
65
66
  export { createDisableAutofix, disableAutofix };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Utility to disable autofix for specific ESLint rules",
4
4
  "type": "module",
5
5
  "private": false,
6
- "version": "1.0.1",
6
+ "version": "1.0.2",
7
7
  "engines": {
8
8
  "node": ">=18"
9
9
  },