-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
55 lines (54 loc) · 1.34 KB
/
.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
49
50
51
52
53
54
55
'use strict'
module.exports = {
root: true,
globals: {},
env: {
node: true,
jest: true
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@intlify/vue-i18n/recommended',
'plugin:prettier/recommended',
'prettier'
],
plugins: ['@typescript-eslint'],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
overrides: [
{
files: ['*.json', '*.json5'],
extends: ['plugin:@intlify/vue-i18n/base']
},
{
files: ['*.yaml', '*.yml'],
extends: ['plugin:@intlify/vue-i18n/base']
}
],
rules: {
'object-curly-spacing': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@intlify/vue-i18n/no-dynamic-keys': 'error',
'@intlify/vue-i18n/no-unused-keys': [
'error',
{
extensions: ['.ts']
}
]
},
settings: {
'vue-i18n': {
localeDir: './locales/*.json',
messageSyntaxVersion: '^9.0.0'
}
}
}