mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
eslint added to enforce translations (#5150)
* eslint added and new string added * strings and translation hook added * more changes made * missing translation added * final errors resolve in progress * all errors resolved * fix(ui): fix missing import of `t()` * fix(ui): use plurals for moving images to board translation * fix(ui): fix typo in translation key * fix(ui): do not use translation for "invoke ai" * chore(ui): lint --------- Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
@ -20,10 +20,16 @@ module.exports = {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['react', '@typescript-eslint', 'eslint-plugin-react-hooks'],
|
||||
plugins: [
|
||||
'react',
|
||||
'@typescript-eslint',
|
||||
'eslint-plugin-react-hooks',
|
||||
'i18next',
|
||||
],
|
||||
root: true,
|
||||
rules: {
|
||||
curly: 'error',
|
||||
'i18next/no-literal-string': 2,
|
||||
'react/jsx-no-bind': ['error', { allowBind: true }],
|
||||
'react/jsx-curly-brace-presence': [
|
||||
'error',
|
||||
|
Reference in New Issue
Block a user