@typescript-eslint/eslint-plugin 8.66.0 → 8.66.1-alpha.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.
@@ -3,8 +3,8 @@
3
3
  * - disables rules from eslint:recommended which are already handled by TypeScript.
4
4
  * - enables rules that make sense due to TS's typechecking / transpilation.
5
5
  */
6
- declare const config: (style: "glob" | "minimatch") => {
6
+ declare const config: (style: 'glob' | 'minimatch') => {
7
7
  files: string[];
8
- rules: Record<string, "error" | "off" | "warn">;
8
+ rules: Record<string, 'error' | 'off' | 'warn'>;
9
9
  };
10
10
  export = config;
@@ -6,7 +6,7 @@
6
6
  declare const _default: {
7
7
  overrides: {
8
8
  files: string[];
9
- rules: Record<string, "error" | "off" | "warn">;
9
+ rules: Record<string, 'error' | 'off' | 'warn'>;
10
10
  }[];
11
11
  };
12
12
  export = _default;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Enables each the rules provided as a part of typescript-eslint. Note that many rules are not applicable in all codebases, or are meant to be configured.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#all}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,8 +1,8 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * A minimal ruleset that sets only the required parser and plugin options needed to run typescript-eslint.
4
5
  * We don't recommend using this directly; instead, extend from an earlier recommended rule.
5
6
  * @see {@link https://typescript-eslint.io/users/configs#base}
6
7
  */
7
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.Config;
8
- export default _default;
8
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.Config;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * A utility ruleset that will disable type-aware linting and all type-aware rules available in our project.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#disable-type-checked}
5
6
  */
6
- declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config;
7
- export default _default;
7
+ declare function _default(_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser): FlatConfig.Config;
@@ -1,9 +1,9 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * This is a compatibility ruleset that:
4
5
  * - disables rules from eslint:recommended which are already handled by TypeScript.
5
6
  * - enables rules that make sense due to TS's typechecking / transpilation.
6
7
  * @see {@link https://typescript-eslint.io/users/configs/#eslint-recommended}
7
8
  */
8
- declare const _default: (_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser) => FlatConfig.Config;
9
- export default _default;
9
+ declare function _default(_plugin: FlatConfig.Plugin, _parser: FlatConfig.Parser): FlatConfig.Config;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * A version of `recommended` that only contains type-checked rules and disables of any corresponding core ESLint rules.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked-only}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Contains all of `recommended` along with additional recommended rules that require type information.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#recommended-type-checked}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Recommended rules for code correctness that you can drop in without additional configuration.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#recommended}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * A version of `strict` that only contains type-checked rules and disables of any corresponding core ESLint rules.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked-only}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Contains all of `recommended`, `recommended-type-checked`, and `strict`, along with additional strict rules that require type information.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#strict-type-checked}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Contains all of `recommended`, as well as additional strict rules that can also catch bugs.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#strict}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * A version of `stylistic` that only contains type-checked rules and disables of any corresponding core ESLint rules.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked-only}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Contains all of `stylistic`, along with additional stylistic rules that require type information.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
@@ -1,7 +1,7 @@
1
1
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
2
+ export default _default;
2
3
  /**
3
4
  * Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
4
5
  * @see {@link https://typescript-eslint.io/users/configs#stylistic}
5
6
  */
6
- declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
7
- export default _default;
7
+ declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
package/dist/index.d.ts CHANGED
@@ -234,7 +234,7 @@ declare const _default: {
234
234
  'eslint-recommended': {
235
235
  overrides: {
236
236
  files: string[];
237
- rules: Record<string, "error" | "off" | "warn">;
237
+ rules: Record<string, 'error' | 'off' | 'warn'>;
238
238
  }[];
239
239
  };
240
240
  recommended: {
@@ -256,7 +256,7 @@ declare const _default: {
256
256
  'eslint-recommended': {
257
257
  overrides: {
258
258
  files: string[];
259
- rules: Record<string, "error" | "off" | "warn">;
259
+ rules: Record<string, 'error' | 'off' | 'warn'>;
260
260
  }[];
261
261
  };
262
262
  recommended: {
@@ -1,4 +1,5 @@
1
1
  import type { TSESLint } from '@typescript-eslint/utils';
2
+ import type { RuleListener } from '@typescript-eslint/utils/eslint-utils';
2
3
  type Prefer = 'no-type-imports' | 'type-imports';
3
4
  type FixStyle = 'inline-type-imports' | 'separate-type-imports';
4
5
  export type Options = [
@@ -9,7 +10,7 @@ export type Options = [
9
10
  }
10
11
  ];
11
12
  export type MessageIds = 'avoidImportType' | 'noImportTypeAnnotations' | 'someImportsAreOnlyTypes' | 'typeOverValue';
12
- declare const _default: TSESLint.RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener> & {
13
+ declare const _default: TSESLint.RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, RuleListener> & {
13
14
  name: string;
14
15
  };
15
16
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import type { TSESLint } from '@typescript-eslint/utils';
2
2
  export declare const phrases: {
3
- readonly TSInterfaceDeclaration: "Interface";
4
- readonly TSTypeLiteral: "Type literal";
3
+ readonly TSInterfaceDeclaration: 'Interface';
4
+ readonly TSTypeLiteral: 'Type literal';
5
5
  };
6
6
  declare const _default: TSESLint.RuleModule<"functionTypeOverCallableType" | "unexpectedThisOnFunctionOnlyInterface", [], import("../../rules").ESLintPluginDocs, TSESLint.RuleListener> & {
7
7
  name: string;
@@ -34,7 +34,7 @@ export * from './truthinessUtils';
34
34
  export * from './walkStatements';
35
35
  export * from '@typescript-eslint/type-utils';
36
36
  export declare const applyDefault: typeof ESLintUtils.applyDefault, deepMerge: typeof ESLintUtils.deepMerge, getParserServices: typeof ESLintUtils.getParserServices, isObjectNotArray: typeof ESLintUtils.isObjectNotArray, nullThrows: typeof ESLintUtils.nullThrows, NullThrowsReasons: {
37
- readonly MissingParent: "Expected node to have a parent.";
37
+ readonly MissingParent: 'Expected node to have a parent.';
38
38
  readonly MissingToken: (token: string, thing: string) => string;
39
39
  };
40
40
  export type InferMessageIdsTypeFromRule<T> = ESLintUtils.InferMessageIdsTypeFromRule<T>;
@@ -51,4 +51,4 @@ __exportStar(require("./truthinessUtils"), exports);
51
51
  __exportStar(require("./walkStatements"), exports);
52
52
  // this is done for convenience - saves migrating all of the old rules
53
53
  __exportStar(require("@typescript-eslint/type-utils"), exports);
54
- exports.applyDefault = utils_1.ESLintUtils.applyDefault, exports.deepMerge = utils_1.ESLintUtils.deepMerge, exports.getParserServices = utils_1.ESLintUtils.getParserServices, exports.isObjectNotArray = utils_1.ESLintUtils.isObjectNotArray, exports.nullThrows = utils_1.ESLintUtils.nullThrows, exports.NullThrowsReasons = utils_1.ESLintUtils.NullThrowsReasons;
54
+ ({ applyDefault: exports.applyDefault, deepMerge: exports.deepMerge, getParserServices: exports.getParserServices, isObjectNotArray: exports.isObjectNotArray, nullThrows: exports.nullThrows, NullThrowsReasons: exports.NullThrowsReasons } = utils_1.ESLintUtils);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "8.66.0",
3
+ "version": "8.66.1-alpha.1",
4
4
  "description": "TypeScript plugin for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -49,17 +49,17 @@
49
49
  "ignore": "^7.0.5",
50
50
  "natural-compare": "^1.4.0",
51
51
  "ts-api-utils": "^2.5.0",
52
- "@typescript-eslint/scope-manager": "8.66.0",
53
- "@typescript-eslint/type-utils": "8.66.0",
54
- "@typescript-eslint/utils": "8.66.0",
55
- "@typescript-eslint/visitor-keys": "8.66.0"
52
+ "@typescript-eslint/scope-manager": "8.66.1-alpha.1",
53
+ "@typescript-eslint/type-utils": "8.66.1-alpha.1",
54
+ "@typescript-eslint/utils": "8.66.1-alpha.1",
55
+ "@typescript-eslint/visitor-keys": "8.66.1-alpha.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/json-schema": "^7.0.15",
59
59
  "@types/mdast": "^4.0.4",
60
60
  "@types/natural-compare": "^1.4.3",
61
61
  "@types/react": "^18.3.21",
62
- "@typescript/native-preview": "7.0.0-dev.20260518.1",
62
+ "@typescript/native": "npm:typescript@^7.0.2",
63
63
  "@vitest/coverage-v8": "^4.0.18",
64
64
  "ajv": "^6.12.6",
65
65
  "eslint": "^10.0.0",
@@ -76,13 +76,13 @@
76
76
  "typescript": ">=4.8.4 <6.1.0",
77
77
  "unist-util-visit": "^5.0.0",
78
78
  "vitest": "^4.0.18",
79
- "@typescript-eslint/rule-schema-to-typescript-types": "8.66.0",
80
- "@typescript-eslint/rule-tester": "8.66.0"
79
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.66.1-alpha.1",
80
+ "@typescript-eslint/rule-tester": "8.66.1-alpha.1"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
84
84
  "typescript": ">=4.8.4 <6.1.0",
85
- "@typescript-eslint/parser": "^8.66.0"
85
+ "@typescript-eslint/parser": "^8.66.1-alpha.1"
86
86
  },
87
87
  "funding": {
88
88
  "type": "opencollective",