-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy patheslint.config.js
45 lines (44 loc) · 979 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import antfu from '@antfu/eslint-config'
import vueI18n from '@intlify/eslint-plugin-vue-i18n'
import nuxt from './.nuxt/eslint.config.mjs'
export default antfu(
{
unocss: true,
formatters: true,
pnpm: true,
},
nuxt(),
{
files: ['**/template/**', '**/.template/**'],
rules: {
'no-console': 'off',
},
},
)
.override('antfu/yaml/pnpm-workspace', {
ignores: ['**/templates/**'],
})
.override('antfu/pnpm/package-json', {
ignores: ['**/templates/**'],
})
.append(
vueI18n.configs.recommended,
{
settings: {
'vue-i18n': {
localeDir: 'i18n/locales/*.yaml',
},
},
rules: {
'@intlify/vue-i18n/no-missing-keys': 'error',
'@intlify/vue-i18n/no-raw-text': 'error',
'@intlify/vue-i18n/no-deprecated-modulo-syntax': 'off',
},
},
{
files: ['content/**'],
rules: {
'@intlify/vue-i18n/no-raw-text': 'off',
},
},
)