lint translations in embeds, too
This commit is contained in:
parent
a7a630bfd0
commit
6a3dc40c31
|
@ -4,6 +4,8 @@ import parser from 'vue-eslint-parser';
|
||||||
import pluginVue from 'eslint-plugin-vue';
|
import pluginVue from 'eslint-plugin-vue';
|
||||||
import pluginMisskey from '@misskey-dev/eslint-plugin';
|
import pluginMisskey from '@misskey-dev/eslint-plugin';
|
||||||
import sharedConfig from '../shared/eslint.config.js';
|
import sharedConfig from '../shared/eslint.config.js';
|
||||||
|
import localeRule from '../../eslint/locale.js';
|
||||||
|
import { build as buildLocales } from '../../locales/index.js';
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
...sharedConfig,
|
...sharedConfig,
|
||||||
|
@ -14,6 +16,7 @@ export default [
|
||||||
...pluginVue.configs['flat/recommended'],
|
...pluginVue.configs['flat/recommended'],
|
||||||
{
|
{
|
||||||
files: ['{src,test,js,@types}/**/*.{ts,vue}'],
|
files: ['{src,test,js,@types}/**/*.{ts,vue}'],
|
||||||
|
plugins: { sharkey: { rules: { locale: localeRule } } },
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
...Object.fromEntries(Object.entries(globals.node).map(([key]) => [key, 'off'])),
|
...Object.fromEntries(Object.entries(globals.node).map(([key]) => [key, 'off'])),
|
||||||
|
@ -44,6 +47,8 @@ export default [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
'sharkey/locale': ['error', buildLocales()['ja-JP']],
|
||||||
|
|
||||||
'@typescript-eslint/no-empty-interface': ['error', {
|
'@typescript-eslint/no-empty-interface': ['error', {
|
||||||
allowSingleExtends: true,
|
allowSingleExtends: true,
|
||||||
}],
|
}],
|
||||||
|
|
Loading…
Reference in New Issue