Skip to content

Commit 5016820

Browse files
authored
Merge pull request #43 from ingeno/chore/support-eslint8
Chore/support eslint8
2 parents 1764ffd + c683bd6 commit 5016820

File tree

5 files changed

+1134
-908
lines changed

5 files changed

+1134
-908
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [10.x, 12.x, 14.x]
18+
node-version: [12.x, 14.x, 16.x]
1919

2020
steps:
2121
- uses: actions/checkout@v2

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"verify": "yarn typecheck && yarn lint && yarn build && yarn coverage"
4343
},
4444
"dependencies": {
45-
"@typescript-eslint/experimental-utils": "^4.29.2",
45+
"@typescript-eslint/experimental-utils": "^5.0.0",
4646
"json-schema": "^0.3.0",
4747
"natural-compare-lite": "^1.4.0"
4848
},
@@ -58,24 +58,24 @@
5858
"@rollup/plugin-typescript": "~4.1.2",
5959
"@types/babel__core": "~7.1.7",
6060
"@types/babel__preset-env": "~7.9.0",
61-
"@types/eslint": "~7.28.0",
62-
"@types/jest": "~25.2.3",
61+
"@types/eslint": "~7.28.1",
62+
"@types/jest": "~27.0.2",
6363
"@types/natural-compare-lite": "~1.4.0",
6464
"@types/rimraf": "~3.0.1",
6565
"@types/tmp": "~0.2.1",
66-
"@typescript-eslint/eslint-plugin": "~4.29.2",
67-
"@typescript-eslint/parser": "~4.29.2",
66+
"@typescript-eslint/eslint-plugin": "~5.0.0",
67+
"@typescript-eslint/parser": "~5.0.0",
6868
"babel-jest": "~26.6.3",
6969
"babel-plugin-module-resolver": "~4.1.0",
70-
"eslint": "~7.32.0",
70+
"eslint": "~8.0.1",
7171
"eslint-config-prettier": "~8.3.0",
72-
"eslint-plugin-eslint-plugin": "~3.5.3",
73-
"eslint-plugin-import": "~2.24.0",
74-
"eslint-plugin-jest": "~24.4.0",
75-
"eslint-plugin-prettier": "~3.4.0",
72+
"eslint-plugin-eslint-plugin": "~3.6.1",
73+
"eslint-plugin-import": "~2.25.2",
74+
"eslint-plugin-jest": "~25.0.6",
75+
"eslint-plugin-prettier": "~4.0.0",
7676
"http-server": "~13.0.0",
7777
"husky": "~4.2.5",
78-
"jest": "~26.6.3",
78+
"jest": "~27.2.5",
7979
"lint-staged": "~10.5.4",
8080
"prettier": "~2.3.2",
8181
"rimraf": "~3.0.2",
@@ -85,8 +85,8 @@
8585
"typescript": "~4.3.5"
8686
},
8787
"peerDependencies": {
88-
"@typescript-eslint/parser": "^1 || ^2 || ^3 || ^4",
89-
"eslint": "^5 || ^6 || ^7",
88+
"@typescript-eslint/parser": "^1 || ^2 || ^3 || ^4 || ^5",
89+
"eslint": "^5 || ^6 || ^7 || ^8",
9090
"typescript": "^3 || ^4"
9191
},
9292
"engines": {

src/rules/interface.ts

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 2 deletions
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)