@typescript-eslint/utils 8.67.1-alpha.23 → 8.67.1-alpha.24
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/ts-eslint/Rule.d.ts +17 -0
- package/package.json +4 -4
package/dist/ts-eslint/Rule.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ export interface RuleMetaDataDocs {
|
|
|
23
23
|
* Mark this rule as feature-frozen.
|
|
24
24
|
*/
|
|
25
25
|
frozen?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The dialects of the languages that the rule is intended to lint.
|
|
28
|
+
* @example
|
|
29
|
+
* ["JavaScript", "TypeScript"]
|
|
30
|
+
*
|
|
31
|
+
* since ESLint 10.2.0
|
|
32
|
+
*/
|
|
33
|
+
dialects?: string[] | undefined;
|
|
26
34
|
}
|
|
27
35
|
export interface ExternalSpecifier {
|
|
28
36
|
/**
|
|
@@ -96,6 +104,15 @@ export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, O
|
|
|
96
104
|
* Specifies whether rules can return suggestions. Omit if there is no suggestions
|
|
97
105
|
*/
|
|
98
106
|
hasSuggestions?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Languages supported by this rule in the format `"plugin/language"`.
|
|
109
|
+
* Use `"*"` for any language or `"plugin/*"` for any language from a specific plugin.
|
|
110
|
+
* @example
|
|
111
|
+
* ["js/js", "markdown/gfm", "json/jsonc", "css/css"]
|
|
112
|
+
*
|
|
113
|
+
* since ESLint 10.2.0
|
|
114
|
+
*/
|
|
115
|
+
languages?: string[] | undefined;
|
|
99
116
|
/**
|
|
100
117
|
* A map of messages which the rule can report.
|
|
101
118
|
* The key is the messageId, and the string is the parameterized error string.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "8.67.1-alpha.
|
|
3
|
+
"version": "8.67.1-alpha.24",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@eslint-community/eslint-utils": "^4.9.1",
|
|
55
|
-
"@typescript-eslint/scope-manager": "8.67.1-alpha.
|
|
56
|
-
"@typescript-eslint/types": "8.67.1-alpha.
|
|
57
|
-
"@typescript-eslint/typescript-estree": "8.67.1-alpha.
|
|
55
|
+
"@typescript-eslint/scope-manager": "8.67.1-alpha.24",
|
|
56
|
+
"@typescript-eslint/types": "8.67.1-alpha.24",
|
|
57
|
+
"@typescript-eslint/typescript-estree": "8.67.1-alpha.24"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
|