Skip to content

Commit 1f64f9a

Browse files
authored
Update @antfu/eslint-config (#72)
1 parent de63822 commit 1f64f9a

File tree

11 files changed

+623
-303
lines changed

11 files changed

+623
-303
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
<script setup>
2+
const userName = 'test'
3+
</script>
4+
15
<template>
26
<div>
37
<div>{{ $t('hello-user', { userName }) }}</div>
48
<div>{{ $t('shared-photos', { userName, photoCount, userGender }) }}</div>
59
</div>
610
</template>
7-
8-
<script setup>
9-
const test = 'test'
10-
</script>

__tests__/fixtures/noLocale.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ shared-photos =
1919
[female] her stream
2020
*[other] their stream
2121
}.
22-
</fluent>
22+
</fluent>

__tests__/fixtures/test.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ shared-photos =
1919
[female] her stream
2020
*[other] their stream
2121
}.
22-
</fluent>
22+
</fluent>
Binary file not shown.

__tests__/frameworks/vite/errors.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { compile } from './util'
99

1010
const baseDir = resolve(__dirname, '../..')
1111

12-
describe('Error checking', () => {
12+
describe('error checking', () => {
1313
it('checks for syntax errors in external ftl files', async () => {
1414
// Arrange
1515
// Act

__tests__/frameworks/webpack/sfc.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe('Webpack SFC', () => {
4444
await expect(func).rejects.toContainEqual(
4545
expect.objectContaining({
4646
details: expect.stringContaining('Error: Custom block does not have locale attribute'),
47-
}))
47+
}),
48+
)
4849
})
4950
})

eslint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const config = require('@antfu/eslint-config')
2+
3+
module.exports = config.default({}, {
4+
rules: {
5+
'test/prefer-lowercase-title': 'off',
6+
},
7+
})

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"main": "dist/index.js",
5151
"types": "dist/index.d.ts",
5252
"files": [
53-
"dist",
54-
"*.d.ts"
53+
"*.d.ts",
54+
"dist"
5555
],
5656
"scripts": {
5757
"test": "vitest",
@@ -68,7 +68,7 @@
6868
"unplugin": "^1.0.0"
6969
},
7070
"devDependencies": {
71-
"@antfu/eslint-config-ts": "0.40.0",
71+
"@antfu/eslint-config": "^2.6.1",
7272
"@release-it-plugins/lerna-changelog": "6.0.0",
7373
"@types/node": "20.10.5",
7474
"@vitejs/plugin-vue": "5.0.0",
@@ -93,11 +93,6 @@
9393
"*.js": "eslint --fix",
9494
"*.ts?(x)": "eslint --fix"
9595
},
96-
"eslintConfig": {
97-
"extends": [
98-
"@antfu/eslint-config-ts"
99-
]
100-
},
10196
"changelog": {
10297
"labels": {
10398
"Type: Feature": ":star: New Features",

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