@typescript-eslint/eslint-plugin 8.45.0 → 8.45.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.
@@ -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': { $ref: '#/items/0/$defs/directiveConfigSchema' },
56
- 'ts-expect-error': { $ref: '#/items/0/$defs/directiveConfigSchema' },
57
- 'ts-ignore': { $ref: '#/items/0/$defs/directiveConfigSchema' },
58
- 'ts-nocheck': { $ref: '#/items/0/$defs/directiveConfigSchema' },
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: { $ref: '#/items/0/$defs/accessibilityLevel' },
65
- constructors: { $ref: '#/items/0/$defs/accessibilityLevel' },
66
- methods: { $ref: '#/items/0/$defs/accessibilityLevel' },
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
  },
@@ -17,6 +17,7 @@ exports.default = (0, util_1.createRule)({
17
17
  schema: [
18
18
  {
19
19
  type: 'string',
20
+ description: 'The method signature style to enforce using.',
20
21
  enum: ['property', 'method'],
21
22
  },
22
23
  ],
@@ -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
  ],
@@ -23,6 +23,7 @@ exports.default = (0, util_1.createRule)({
23
23
  oneOf: [
24
24
  {
25
25
  type: 'string',
26
+ description: 'Broad setting for unused variables to target.',
26
27
  enum: ['all', 'local'],
27
28
  },
28
29
  {
@@ -165,6 +165,7 @@ exports.default = (0, util_1.createRule)({
165
165
  oneOf: [
166
166
  {
167
167
  type: 'string',
168
+ description: 'Broadly set functions and allowNamedExports to false.',
168
169
  enum: ['nofunc'],
169
170
  },
170
171
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "8.45.0",
3
+ "version": "8.45.1-alpha.1",
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.0",
63
- "@typescript-eslint/type-utils": "8.45.0",
64
- "@typescript-eslint/utils": "8.45.0",
65
- "@typescript-eslint/visitor-keys": "8.45.0",
62
+ "@typescript-eslint/scope-manager": "8.45.1-alpha.1",
63
+ "@typescript-eslint/type-utils": "8.45.1-alpha.1",
64
+ "@typescript-eslint/utils": "8.45.1-alpha.1",
65
+ "@typescript-eslint/visitor-keys": "8.45.1-alpha.1",
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.0",
75
- "@typescript-eslint/rule-tester": "8.45.0",
74
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.45.1-alpha.1",
75
+ "@typescript-eslint/rule-tester": "8.45.1-alpha.1",
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.0",
95
+ "@typescript-eslint/parser": "^8.45.1-alpha.1",
96
96
  "eslint": "^8.57.0 || ^9.0.0",
97
97
  "typescript": ">=4.8.4 <6.0.0"
98
98
  },