Skip to content

Commit

Permalink
Fix ESLint8 breaking changes issues
Browse files Browse the repository at this point in the history
- `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
  • Loading branch information
johnmartel committed Oct 14, 2021
1 parent d9814f0 commit 02fb63c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/rules/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const sortingParamsOptionSchema: JSONSchema4 = {
/**
* The schema for the rule options.
*/
const schema: JSONSchema4 = [sortingOrderOptionSchema, sortingParamsOptionSchema]
const schema: JSONSchema4[] = [sortingOrderOptionSchema, sortingParamsOptionSchema]

/**
* The default options for the rule.
Expand All @@ -68,7 +68,6 @@ const meta: RuleMetaData<keyof typeof errorMessages> = {
type: 'suggestion',
docs: {
description: 'require interface keys to be sorted',
category: 'Stylistic Issues',
recommended: 'warn',
},
messages: errorMessages,
Expand Down
3 changes: 1 addition & 2 deletions src/rules/string-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const sortingParamsOptionSchema: JSONSchema4 = {
/**
* The schema for the rule options.
*/
const schema: JSONSchema4 = [sortingOrderOptionSchema, sortingParamsOptionSchema]
const schema: JSONSchema4[] = [sortingOrderOptionSchema, sortingParamsOptionSchema]

/**
* The default options for the rule.
Expand All @@ -65,7 +65,6 @@ const meta: RuleMetaData<keyof typeof errorMessages> = {
type: 'suggestion',
docs: {
description: 'require string enum members to be sorted',
category: 'Stylistic Issues',
recommended: 'warn',
},
messages: errorMessages,
Expand Down

0 comments on commit 02fb63c

Please sign in to comment.