@typescript-eslint/eslint-plugin 8.66.1-alpha.0 → 8.66.1-alpha.10
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/configs/eslint-recommended-raw.d.ts +2 -2
- package/dist/configs/eslintrc/eslint-recommended.d.ts +1 -1
- package/dist/configs/flat/all.d.ts +2 -2
- package/dist/configs/flat/base.d.ts +2 -2
- package/dist/configs/flat/disable-type-checked.d.ts +2 -2
- package/dist/configs/flat/eslint-recommended.d.ts +2 -2
- package/dist/configs/flat/recommended-type-checked-only.d.ts +2 -2
- package/dist/configs/flat/recommended-type-checked.d.ts +2 -2
- package/dist/configs/flat/recommended.d.ts +2 -2
- package/dist/configs/flat/strict-type-checked-only.d.ts +2 -2
- package/dist/configs/flat/strict-type-checked.d.ts +2 -2
- package/dist/configs/flat/strict.d.ts +2 -2
- package/dist/configs/flat/stylistic-type-checked-only.d.ts +2 -2
- package/dist/configs/flat/stylistic-type-checked.d.ts +2 -2
- package/dist/configs/flat/stylistic.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/raw-plugin.d.ts +1 -1
- package/dist/rules/consistent-type-imports.d.ts +2 -1
- package/dist/rules/prefer-function-type.d.ts +2 -2
- package/dist/util/index.d.ts +1 -1
- package/dist/util/index.js +1 -1
- package/package.json +9 -9
|
@@ -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:
|
|
6
|
+
declare const config: (style: 'glob' | 'minimatch') => {
|
|
7
7
|
files: string[];
|
|
8
|
-
rules: Record<string,
|
|
8
|
+
rules: Record<string, 'error' | 'off' | 'warn'>;
|
|
9
9
|
};
|
|
10
10
|
export = config;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
7
|
-
export default _default;
|
|
7
|
+
declare function _default(plugin: FlatConfig.Plugin, parser: FlatConfig.Parser): FlatConfig.ConfigArray;
|
package/dist/index.d.ts
CHANGED
package/dist/raw-plugin.d.ts
CHANGED
|
@@ -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,
|
|
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:
|
|
4
|
-
readonly TSTypeLiteral:
|
|
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;
|
package/dist/util/index.d.ts
CHANGED
|
@@ -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:
|
|
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>;
|
package/dist/util/index.js
CHANGED
|
@@ -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
|
-
|
|
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.1-alpha.
|
|
3
|
+
"version": "8.66.1-alpha.10",
|
|
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.1-alpha.
|
|
53
|
-
"@typescript-eslint/type-utils": "8.66.1-alpha.
|
|
54
|
-
"@typescript-eslint/utils": "8.66.1-alpha.
|
|
55
|
-
"@typescript-eslint/visitor-keys": "8.66.1-alpha.
|
|
52
|
+
"@typescript-eslint/scope-manager": "8.66.1-alpha.10",
|
|
53
|
+
"@typescript-eslint/type-utils": "8.66.1-alpha.10",
|
|
54
|
+
"@typescript-eslint/utils": "8.66.1-alpha.10",
|
|
55
|
+
"@typescript-eslint/visitor-keys": "8.66.1-alpha.10"
|
|
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
|
|
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-tester": "8.66.1-alpha.
|
|
80
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.66.1-alpha.
|
|
79
|
+
"@typescript-eslint/rule-tester": "8.66.1-alpha.10",
|
|
80
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.66.1-alpha.10"
|
|
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.1-alpha.
|
|
85
|
+
"@typescript-eslint/parser": "^8.66.1-alpha.10"
|
|
86
86
|
},
|
|
87
87
|
"funding": {
|
|
88
88
|
"type": "opencollective",
|