Skip to content

Commit 02fb63c

Browse files
committed
Fix ESLint8 breaking changes issues
- `meta.docs.category` was removed from `@typescript-eslint/experimental-utils`. - adjusted incorrect type for rule metadata.schema See: https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.0.0
1 parent d9814f0 commit 02fb63c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/rules/interface.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const sortingParamsOptionSchema: JSONSchema4 = {
4444
/**
4545
* The schema for the rule options.
4646
*/
47-
const schema: JSONSchema4 = [sortingOrderOptionSchema, sortingParamsOptionSchema]
47+
const schema: JSONSchema4[] = [sortingOrderOptionSchema, sortingParamsOptionSchema]
4848

4949
/**
5050
* The default options for the rule.
@@ -68,7 +68,6 @@ const meta: RuleMetaData<keyof typeof errorMessages> = {
6868
type: 'suggestion',
6969
docs: {
7070
description: 'require interface keys to be sorted',
71-
category: 'Stylistic Issues',
7271
recommended: 'warn',
7372
},
7473
messages: errorMessages,

src/rules/string-enum.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const sortingParamsOptionSchema: JSONSchema4 = {
4141
/**
4242
* The schema for the rule options.
4343
*/
44-
const schema: JSONSchema4 = [sortingOrderOptionSchema, sortingParamsOptionSchema]
44+
const schema: JSONSchema4[] = [sortingOrderOptionSchema, sortingParamsOptionSchema]
4545

4646
/**
4747
* The default options for the rule.
@@ -65,7 +65,6 @@ const meta: RuleMetaData<keyof typeof errorMessages> = {
6565
type: 'suggestion',
6666
docs: {
6767
description: 'require string enum members to be sorted',
68-
category: 'Stylistic Issues',
6968
recommended: 'warn',
7069
},
7170
messages: errorMessages,

0 commit comments

Comments
 (0)