mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 07:29:02 +00:00
[Update] 修改i18n, 支持工具检查
This commit is contained in:
13
.eslintrc.js
13
.eslintrc.js
@@ -9,15 +9,24 @@ module.exports = {
|
||||
node: true,
|
||||
es6: true
|
||||
},
|
||||
extends: ['plugin:vue/recommended', 'eslint:recommended'],
|
||||
extends: ['plugin:vue/recommended', 'eslint:recommended', 'plugin:vue-i18n/recommended'],
|
||||
globals: {
|
||||
window: true,
|
||||
_: true
|
||||
},
|
||||
|
||||
settings: {
|
||||
'vue-i18n': {
|
||||
localeDir: './src/i18n/langs/*/*.json' // extention is glob formatting!
|
||||
}
|
||||
},
|
||||
// add your custom rules here
|
||||
// it is base on https://github.com/vuejs/eslint-config-vue
|
||||
rules: {
|
||||
// Optional.
|
||||
'vue-i18n/no-dynamic-keys': 'error',
|
||||
'vue-i18n/no-unused-keys': ['error', {
|
||||
extensions: ['.js', '.vue']
|
||||
}],
|
||||
'vue/max-attributes-per-line': [2, {
|
||||
'singleline': 10,
|
||||
'multiline': {
|
||||
|
Reference in New Issue
Block a user