Skip to content

Commit 2de23b7

Browse files
authored
feat: update dependencies to be eslint 8.x compatible (#29)
* chore: update dependencies to be eslint 8.x compatible * update all dependencies * test: add test package and workflow * typecheck ignore test package * test eslint output with diff * test vue rules * update dependencies * add codeframe formatter * update test package dependencies * pin dependency BREAKING CHANGE: see the CHANGELOGs of the updated packages
1 parent 4bf2fbb commit 2de23b7

File tree

6 files changed

+951
-811
lines changed

6 files changed

+951
-811
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version: [14, 16]
18-
eslint-version: [7]
18+
eslint-version: [7, 8]
1919
os: [ubuntu-latest]
2020
steps:
2121
- name: Checkout

jest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const eslintConfig = {
1717
'@typescript-eslint/unbound-method': 'off',
1818
'jest/unbound-method': 'error',
1919
'jest/prefer-expect-assertions': ['error', { onlyFunctionsWithAsyncKeyword: true }],
20-
'jest/lowercase-name': ['error', { ignore: ['describe'] }],
20+
'jest/prefer-lowercase-title': ['error', { ignore: ['describe'] }],
2121
'jest/no-hooks': 'off',
2222
},
2323
},

package.json

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,35 @@
1717
"format:fix": "prettier --write .",
1818
"release": "semantic-release",
1919
"test": "cd test && pnpm eslint --format codeframe . > eslint-output.snap.tmp || true && diff eslint-output.snap eslint-output.snap.tmp && rm eslint-output.snap.tmp",
20+
"test:lint": "cd test && pnpm eslint --format codeframe .",
2021
"test:update": "cd test && pnpm eslint --format codeframe . > eslint-output.snap || true",
2122
"typecheck": "tsc"
2223
},
2324
"dependencies": {
24-
"@intlify/eslint-plugin-vue-i18n": "0.11.1",
25-
"@rushstack/eslint-patch": "1.0.6",
26-
"@typescript-eslint/eslint-plugin": "4.28.1",
27-
"@typescript-eslint/parser": "4.28.1",
25+
"@intlify/eslint-plugin-vue-i18n": "1.2.0",
26+
"@rushstack/eslint-patch": "1.1.0",
27+
"@typescript-eslint/eslint-plugin": "5.10.1",
28+
"@typescript-eslint/parser": "5.10.1",
2829
"eslint-config-prettier": "8.3.0",
29-
"eslint-plugin-import": "2.23.4",
30-
"eslint-plugin-jest": "24.3.6",
31-
"eslint-plugin-prettier": "3.4.0",
32-
"eslint-plugin-promise": "5.1.0",
30+
"eslint-plugin-import": "2.25.4",
31+
"eslint-plugin-jest": "26.0.0",
32+
"eslint-plugin-prettier": "4.0.0",
33+
"eslint-plugin-promise": "6.0.0",
3334
"eslint-plugin-simple-import-sort": "7.0.0",
34-
"eslint-plugin-vue": "7.12.1",
35-
"eslint-plugin-vue-scoped-css": "1.3.0",
36-
"vue-eslint-parser": "7.6.0"
35+
"eslint-plugin-vue": "8.4.0",
36+
"eslint-plugin-vue-scoped-css": "2.1.0",
37+
"vue-eslint-parser": "8.2.0"
3738
},
3839
"devDependencies": {
3940
"@geprog/semantic-release-config": "1.0.0",
40-
"@typescript-eslint/experimental-utils": "4.28.1",
41-
"prettier": "2.3.2",
42-
"semantic-release": "18.0.0",
43-
"typescript": "4.3.5"
41+
"@typescript-eslint/experimental-utils": "5.10.1",
42+
"eslint": "8",
43+
"eslint-formatter-codeframe": "7.32.1",
44+
"prettier": "2.5.1",
45+
"semantic-release": "19.0.2",
46+
"typescript": "4.5.5"
4447
},
4548
"peerDependencies": {
46-
"eslint": ">= 7"
49+
"eslint": "^7.0.0 || ^8.0.0"
4750
}
4851
}

0 commit comments

Comments
 (0)