feat: localizations
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
+15
-1
@@ -14,5 +14,19 @@ export default [
|
||||
},
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...pluginVue.configs['flat/essential']
|
||||
...pluginVue.configs['flat/essential'],
|
||||
{
|
||||
// The l10n engine is an implementation detail of core/src/plugins/l10n
|
||||
// (the vuetify plugin adapter is the one sanctioned exception). All
|
||||
// other code must use the '@KTXC' useL10n() surface.
|
||||
ignores: ['core/src/plugins/l10n/**', 'core/src/plugins/vuetify/**'],
|
||||
rules: {
|
||||
'no-restricted-imports': ['error', {
|
||||
paths: [{
|
||||
name: 'vue-i18n',
|
||||
message: 'Import useL10n from @KTXC instead; vue-i18n is confined to core/src/plugins/l10n.'
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user