Skip to content

Commit 751d7a4

Browse files
chore(deps): update eslint packages (#888)
* chore(deps): update eslint packages * Update @antfu/eslint-config * Fix eslint warnings --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
1 parent f174f5c commit 751d7a4

File tree

5 files changed

+369
-426
lines changed

5 files changed

+369
-426
lines changed

__tests__/inheritBundle.spec.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ import { inheritBundle } from '../src/inheritBundle'
99
describe('inheritBundle', () => {
1010
it('gets options from parent', () => {
1111
// Arrange
12-
const functions = {
13-
test: () => '',
14-
}
15-
const transform = (): string => ''
16-
1712
const parent = new FluentBundle('en', {
1813
useIsolating: false,
19-
functions,
20-
transform,
14+
functions: {
15+
test: () => '',
16+
},
17+
transform: (): string => '',
2118
})
2219

2320
// Act

__tests__/vue/composition.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ describe('composition api', () => {
4747
expect(mounted.html()).toEqual('<a href="/foo" aria-label="Aria label">link text</a>')
4848
})
4949

50-
it('thrpws when used outside of setup', () => {
50+
it('throws when used outside of setup', () => {
5151
// Arrange
5252
// Act
53-
const use = () => useFluent()
54-
5553
// Assert
56-
expect(use).toThrowError('[fluent-vue] useFluent called outside of setup')
54+
expect(() => useFluent()).toThrowError('[fluent-vue] useFluent called outside of setup')
5755
})
5856

5957
it('throws when used without installing plugin', () => {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"vue-demi": "latest"
7272
},
7373
"devDependencies": {
74-
"@antfu/eslint-config": "^2.21.3",
74+
"@antfu/eslint-config": "^3.0.0",
7575
"@fluent/bundle": "~0.18.0",
7676
"@fluent/dedent": "~0.5.0",
7777
"@ls-lint/ls-lint": "^2.2.3",
@@ -82,7 +82,7 @@
8282
"@vue/test-utils": "^2.4.6",
8383
"dotenv-cli": "^7.4.2",
8484
"esbuild-plugin-globals": "^0.2.0",
85-
"eslint": "^9.6.0",
85+
"eslint": "^9.9.1",
8686
"execa": "^9.3.0",
8787
"happy-dom": "^15.6.0",
8888
"husky": "^9.0.11",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy