@typescript-eslint/eslint-plugin 8.45.1-alpha.0 → 8.45.1-alpha.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/rules/ban-ts-comment.js +16 -4
- package/dist/rules/explicit-member-accessibility.js +17 -4
- package/dist/rules/member-ordering.js +5 -0
- package/dist/rules/method-signature-style.js +1 -0
- package/dist/rules/no-unnecessary-condition.js +2 -0
- package/dist/rules/no-unused-vars.js +1 -0
- package/dist/rules/no-use-before-define.js +1 -0
- package/package.json +8 -8
|
@@ -52,10 +52,22 @@ exports.default = (0, util_1.createRule)({
|
|
|
52
52
|
type: 'number',
|
|
53
53
|
description: 'A minimum character length for descriptions when `allow-with-description` is enabled.',
|
|
54
54
|
},
|
|
55
|
-
'ts-check': {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
'ts-check': {
|
|
56
|
+
$ref: '#/items/0/$defs/directiveConfigSchema',
|
|
57
|
+
description: 'Whether allow ts-check directives, and with which restrictions.',
|
|
58
|
+
},
|
|
59
|
+
'ts-expect-error': {
|
|
60
|
+
$ref: '#/items/0/$defs/directiveConfigSchema',
|
|
61
|
+
description: 'Whether and when expect-error directives, and with which restrictions.',
|
|
62
|
+
},
|
|
63
|
+
'ts-ignore': {
|
|
64
|
+
$ref: '#/items/0/$defs/directiveConfigSchema',
|
|
65
|
+
description: 'Whether allow ts-ignore directives, and with which restrictions.',
|
|
66
|
+
},
|
|
67
|
+
'ts-nocheck': {
|
|
68
|
+
$ref: '#/items/0/$defs/directiveConfigSchema',
|
|
69
|
+
description: 'Whether allow ts-nocheck directives, and with which restrictions.',
|
|
70
|
+
},
|
|
59
71
|
},
|
|
60
72
|
},
|
|
61
73
|
],
|
|
@@ -61,13 +61,26 @@ exports.default = (0, util_1.createRule)({
|
|
|
61
61
|
additionalProperties: false,
|
|
62
62
|
description: 'Changes to required accessibility modifiers for specific kinds of class members.',
|
|
63
63
|
properties: {
|
|
64
|
-
accessors: {
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
accessors: {
|
|
65
|
+
$ref: '#/items/0/$defs/accessibilityLevel',
|
|
66
|
+
description: 'Which member accessibility modifier requirements to apply for accessors.',
|
|
67
|
+
},
|
|
68
|
+
constructors: {
|
|
69
|
+
$ref: '#/items/0/$defs/accessibilityLevel',
|
|
70
|
+
description: 'Which member accessibility modifier requirements to apply for constructors.',
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
$ref: '#/items/0/$defs/accessibilityLevel',
|
|
74
|
+
description: 'Which member accessibility modifier requirements to apply for methods.',
|
|
75
|
+
},
|
|
67
76
|
parameterProperties: {
|
|
68
77
|
$ref: '#/items/0/$defs/accessibilityLevel',
|
|
78
|
+
description: 'Which member accessibility modifier requirements to apply for parameterProperties.',
|
|
79
|
+
},
|
|
80
|
+
properties: {
|
|
81
|
+
$ref: '#/items/0/$defs/accessibilityLevel',
|
|
82
|
+
description: 'Which member accessibility modifier requirements to apply for properties.',
|
|
69
83
|
},
|
|
70
|
-
properties: { $ref: '#/items/0/$defs/accessibilityLevel' },
|
|
71
84
|
},
|
|
72
85
|
},
|
|
73
86
|
},
|
|
@@ -579,18 +579,23 @@ exports.default = (0, util_1.createRule)({
|
|
|
579
579
|
properties: {
|
|
580
580
|
classes: {
|
|
581
581
|
$ref: '#/items/0/$defs/baseConfig',
|
|
582
|
+
description: 'Which ordering to enforce for classes.',
|
|
582
583
|
},
|
|
583
584
|
classExpressions: {
|
|
584
585
|
$ref: '#/items/0/$defs/baseConfig',
|
|
586
|
+
description: 'Which ordering to enforce for classExpressions.',
|
|
585
587
|
},
|
|
586
588
|
default: {
|
|
587
589
|
$ref: '#/items/0/$defs/baseConfig',
|
|
590
|
+
description: 'Which ordering to enforce for default.',
|
|
588
591
|
},
|
|
589
592
|
interfaces: {
|
|
590
593
|
$ref: '#/items/0/$defs/typesConfig',
|
|
594
|
+
description: 'Which ordering to enforce for interfaces.',
|
|
591
595
|
},
|
|
592
596
|
typeLiterals: {
|
|
593
597
|
$ref: '#/items/0/$defs/typesConfig',
|
|
598
|
+
description: 'Which ordering to enforce for typeLiterals.',
|
|
594
599
|
},
|
|
595
600
|
},
|
|
596
601
|
},
|
|
@@ -149,9 +149,11 @@ exports.default = (0, util_1.createRule)({
|
|
|
149
149
|
oneOf: [
|
|
150
150
|
{
|
|
151
151
|
type: 'boolean',
|
|
152
|
+
description: 'Always ignore or not ignore the loop conditions',
|
|
152
153
|
},
|
|
153
154
|
{
|
|
154
155
|
type: 'string',
|
|
156
|
+
description: 'Which situations to ignore constant conditions in.',
|
|
155
157
|
enum: ['always', 'never', 'only-allowed-literals'],
|
|
156
158
|
},
|
|
157
159
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
|
3
|
-
"version": "8.45.1-alpha.
|
|
3
|
+
"version": "8.45.1-alpha.2",
|
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@eslint-community/regexpp": "^4.10.0",
|
|
62
|
-
"@typescript-eslint/scope-manager": "8.45.1-alpha.
|
|
63
|
-
"@typescript-eslint/type-utils": "8.45.1-alpha.
|
|
64
|
-
"@typescript-eslint/utils": "8.45.1-alpha.
|
|
65
|
-
"@typescript-eslint/visitor-keys": "8.45.1-alpha.
|
|
62
|
+
"@typescript-eslint/scope-manager": "8.45.1-alpha.2",
|
|
63
|
+
"@typescript-eslint/type-utils": "8.45.1-alpha.2",
|
|
64
|
+
"@typescript-eslint/utils": "8.45.1-alpha.2",
|
|
65
|
+
"@typescript-eslint/visitor-keys": "8.45.1-alpha.2",
|
|
66
66
|
"graphemer": "^1.4.0",
|
|
67
67
|
"ignore": "^7.0.0",
|
|
68
68
|
"natural-compare": "^1.4.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/mdast": "^4.0.3",
|
|
73
73
|
"@types/natural-compare": "*",
|
|
74
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.45.1-alpha.
|
|
75
|
-
"@typescript-eslint/rule-tester": "8.45.1-alpha.
|
|
74
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.45.1-alpha.2",
|
|
75
|
+
"@typescript-eslint/rule-tester": "8.45.1-alpha.2",
|
|
76
76
|
"@vitest/coverage-v8": "^3.1.3",
|
|
77
77
|
"ajv": "^6.12.6",
|
|
78
78
|
"cross-fetch": "*",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"vitest": "^3.1.3"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@typescript-eslint/parser": "^8.45.1-alpha.
|
|
95
|
+
"@typescript-eslint/parser": "^8.45.1-alpha.2",
|
|
96
96
|
"eslint": "^8.57.0 || ^9.0.0",
|
|
97
97
|
"typescript": ">=4.8.4 <6.0.0"
|
|
98
98
|
},
|