Skip to content

Commit 86fa9c1

Browse files
Update eslint packages (major) (#87)
* Update eslint packages * Update pnpm * Fix eslint warnings * Update pnpm * Use specified pnpm version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ivan Demchuk <[email protected]>
1 parent ba5b401 commit 86fa9c1

File tree

5 files changed

+5350
-4244
lines changed

5 files changed

+5350
-4244
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
19-
node: [18, 20]
19+
node: [20, 22]
2020
steps:
2121
- name: Checkout
2222
uses: actions/[email protected]
@@ -26,7 +26,6 @@ jobs:
2626
node-version: ${{ matrix.node }}
2727
- uses: pnpm/[email protected]
2828
with:
29-
version: 8.x.x
3029
run_install: true
3130

3231
- name: Test
@@ -45,7 +44,6 @@ jobs:
4544
uses: actions/[email protected]
4645
- uses: pnpm/[email protected]
4746
with:
48-
version: 8.x.x
4947
run_install: true
5048

5149
- name: Lint
@@ -65,8 +63,6 @@ jobs:
6563
- name: Setup Node.js
6664
uses: actions/[email protected]
6765
- uses: pnpm/[email protected]
68-
with:
69-
version: 8.x.x
7066

7167
- name: Test
7268
run: node scripts/build-examples.js

__tests__/frameworks/webpack/sfc.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { describe, expect, it } from 'vitest'
22

3-
import type { Stats } from 'webpack/types'
4-
53
import { compile } from './util'
64

75
describe('Webpack SFC', () => {
@@ -37,11 +35,9 @@ describe('Webpack SFC', () => {
3735

3836
it('errors with no locale attr', async () => {
3937
// Arrange
40-
const func = async (): Promise<Stats> => await compile('fixtures/noLocale.vue')
41-
4238
// Act
4339
// Assert
44-
await expect(func).rejects.toContainEqual(
40+
await expect(() => compile('fixtures/noLocale.vue')).rejects.toContainEqual(
4541
expect.objectContaining({
4642
details: expect.stringContaining('Error: Custom block does not have locale attribute'),
4743
}),

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "unplugin-fluent-vue",
33
"type": "module",
44
"version": "1.3.0",
5+
"packageManager": "[email protected]",
56
"description": "unplugin for fluent-vue. Adds support for custom blocks in Vue SFC and external ftl files.",
67
"author": {
78
"name": "Ivan Demchuk",
@@ -102,15 +103,15 @@
102103
"unplugin": "^1.0.0"
103104
},
104105
"devDependencies": {
105-
"@antfu/eslint-config": "^2.27.3",
106+
"@antfu/eslint-config": "^3.0.0",
106107
"@nuxt/schema": "^3.11.2",
107108
"@release-it-plugins/lerna-changelog": "7.0.0",
108109
"@types/node": "20.12.4",
109110
"@vitejs/plugin-vue": "5.0.4",
110111
"@vitest/coverage-istanbul": "^2.0.1",
111112
"@vue/compiler-sfc": "3.4.21",
112113
"dotenv-cli": "7.4.1",
113-
"eslint": "8.57.0",
114+
"eslint": "9.9.1",
114115
"execa": "9.3.1",
115116
"husky": "9.0.11",
116117
"lint-staged": "15.2.2",

0 commit comments

Comments
 (0)