Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions __tests__/fixtures/components/external.setup.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup>
const userName = 'test'
</script>

<template>
<div>
<div>{{ $t('hello-user', { userName }) }}</div>
<div>{{ $t('shared-photos', { userName, photoCount, userGender }) }}</div>
</div>
</template>

<script setup>
const test = 'test'
</script>
2 changes: 1 addition & 1 deletion __tests__/fixtures/noLocale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ shared-photos =
[female] her stream
*[other] their stream
}.
</fluent>
</fluent>
2 changes: 1 addition & 1 deletion __tests__/fixtures/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ shared-photos =
[female] her stream
*[other] their stream
}.
</fluent>
</fluent>
Binary file modified __tests__/frameworks/vite/__snapshots__/external.spec.ts.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion __tests__/frameworks/vite/errors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { compile } from './util'

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

describe('Error checking', () => {
describe('error checking', () => {
it('checks for syntax errors in external ftl files', async () => {
// Arrange
// Act
Expand Down
3 changes: 2 additions & 1 deletion __tests__/frameworks/webpack/sfc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('Webpack SFC', () => {
await expect(func).rejects.toContainEqual(
expect.objectContaining({
details: expect.stringContaining('Error: Custom block does not have locale attribute'),
}))
}),
)
})
})
7 changes: 7 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const config = require('@antfu/eslint-config')

module.exports = config.default({}, {
rules: {
'test/prefer-lowercase-title': 'off',
},
})
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"*.d.ts"
"*.d.ts",
"dist"
],
"scripts": {
"test": "vitest",
Expand All @@ -68,7 +68,7 @@
"unplugin": "^1.0.0"
},
"devDependencies": {
"@antfu/eslint-config-ts": "0.40.0",
"@antfu/eslint-config": "^2.6.1",
"@release-it-plugins/lerna-changelog": "6.0.0",
"@types/node": "20.10.5",
"@vitejs/plugin-vue": "5.0.0",
Expand All @@ -93,11 +93,6 @@
"*.js": "eslint --fix",
"*.ts?(x)": "eslint --fix"
},
"eslintConfig": {
"extends": [
"@antfu/eslint-config-ts"
]
},
"changelog": {
"labels": {
"Type: Feature": ":star: New Features",
Expand Down
Loading