-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
48 lines (48 loc) · 1016 Bytes
/
.eslintrc.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
46
47
48
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended',
'plugin:@intlify/vue-i18n/recommended',
'prettier'
],
plugins: [
],
settings: {
'vue-i18n': {
localeDir: './locales/*.{json,json5,yaml,yml}',
messageSyntaxVersion: '^8.25.0'
}
},
overrides: [
{
files: ['*.json', '*.json5'],
extends: ['plugin:@intlify/vue-i18n/recommended'],
},
{
files: ['*.yaml', '*.yml'],
extends: ['plugin:@intlify/vue-i18n/recommended'],
},
],
// add your custom rules here
rules: {
'@intlify/vue-i18n/no-raw-text': [
'warn',
{
ignoreNodes: ['style']
}
],
'@intlify/vue-i18n/no-duplicate-keys-in-locale': 'warn',
'@intlify/vue-i18n/no-missing-keys-in-other-locales': 'warn',
'@intlify/vue-i18n/no-unused-keys': [
'warn',
{
extensions: ['.js', '.ts', '.vue']
}
]
}
}