@typescript-eslint/eslint-plugin 8.0.0-alpha.34 → 8.0.0-alpha.35
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/util/createRule.js.map +1 -1
- package/package.json +7 -7
- package/rules.d.ts +32 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;
|
1
|
+
{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAI1C,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC/C,IAAI,CAAC,EAAE,CAAC,sCAAsC,IAAI,EAAE,CACrD,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.0.0-alpha.
|
3
|
+
"version": "8.0.0-alpha.35",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -60,10 +60,10 @@
|
|
60
60
|
},
|
61
61
|
"dependencies": {
|
62
62
|
"@eslint-community/regexpp": "^4.10.0",
|
63
|
-
"@typescript-eslint/scope-manager": "8.0.0-alpha.
|
64
|
-
"@typescript-eslint/type-utils": "8.0.0-alpha.
|
65
|
-
"@typescript-eslint/utils": "8.0.0-alpha.
|
66
|
-
"@typescript-eslint/visitor-keys": "8.0.0-alpha.
|
63
|
+
"@typescript-eslint/scope-manager": "8.0.0-alpha.35",
|
64
|
+
"@typescript-eslint/type-utils": "8.0.0-alpha.35",
|
65
|
+
"@typescript-eslint/utils": "8.0.0-alpha.35",
|
66
|
+
"@typescript-eslint/visitor-keys": "8.0.0-alpha.35",
|
67
67
|
"graphemer": "^1.4.0",
|
68
68
|
"ignore": "^5.3.1",
|
69
69
|
"natural-compare": "^1.4.0",
|
@@ -74,8 +74,8 @@
|
|
74
74
|
"@types/marked": "^5.0.2",
|
75
75
|
"@types/mdast": "^4.0.3",
|
76
76
|
"@types/natural-compare": "*",
|
77
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.0.0-alpha.
|
78
|
-
"@typescript-eslint/rule-tester": "8.0.0-alpha.
|
77
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.0.0-alpha.35",
|
78
|
+
"@typescript-eslint/rule-tester": "8.0.0-alpha.35",
|
79
79
|
"ajv": "^6.12.6",
|
80
80
|
"cross-env": "^7.0.3",
|
81
81
|
"cross-fetch": "*",
|
package/rules.d.ts
CHANGED
@@ -35,16 +35,45 @@ This is likely not portable. A type annotation is necessary. ts(2742)
|
|
35
35
|
```
|
36
36
|
*/
|
37
37
|
|
38
|
-
import type {
|
38
|
+
import type {
|
39
|
+
RuleModuleWithMetaDocs,
|
40
|
+
RuleModuleWithMetaDocs,
|
41
|
+
RuleRecommendation,
|
42
|
+
RuleRecommendationAcrossConfigs,
|
43
|
+
} from '@typescript-eslint/utils/ts-eslint';
|
39
44
|
|
40
|
-
|
45
|
+
export interface ESLintPluginDocs {
|
46
|
+
/**
|
47
|
+
* Does the rule extend (or is it based off of) an ESLint code rule?
|
48
|
+
* Alternately accepts the name of the base rule, in case the rule has been renamed.
|
49
|
+
* This is only used for documentation purposes.
|
50
|
+
*/
|
51
|
+
extendsBaseRule?: boolean | string;
|
41
52
|
|
42
|
-
|
53
|
+
/**
|
54
|
+
* If a string config name, which starting config this rule is enabled in.
|
55
|
+
* If an object, which settings it has enabled in each of those configs.
|
56
|
+
*/
|
57
|
+
recommended?: RuleRecommendation | RuleRecommendationAcrossConfigs<unknown[]>;
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Does the rule require us to create a full TypeScript Program in order for it
|
61
|
+
* to type-check code. This is only used for documentation purposes.
|
62
|
+
*/
|
63
|
+
requiresTypeChecking?: boolean;
|
64
|
+
}
|
65
|
+
|
66
|
+
export type ESLintPluginRuleModule = RuleModuleWithMetaDocs<
|
67
|
+
string,
|
68
|
+
readonly unknown[],
|
69
|
+
ESLintPluginDocs
|
70
|
+
>;
|
43
71
|
|
44
72
|
export type TypeScriptESLintRules = Record<
|
45
73
|
string,
|
46
74
|
RuleModuleWithMetaDocs<string, unknown[], ESLintPluginDocs>
|
47
75
|
>;
|
76
|
+
|
48
77
|
declare const rules: TypeScriptESLintRules;
|
49
78
|
// eslint-disable-next-line import/no-default-export
|
50
79
|
export default rules;
|