|
module.exports = { |
|
extends: ['@invoke-ai/eslint-config-react'], |
|
plugins: ['path', 'i18next'], |
|
rules: { |
|
|
|
'react-refresh/only-export-components': 'off', |
|
|
|
'@typescript-eslint/consistent-type-assertions': 'off', |
|
|
|
'path/no-relative-imports': ['error', { maxDepth: 0 }], |
|
|
|
'i18next/no-literal-string': 'error', |
|
|
|
'no-console': 'error', |
|
|
|
'no-promise-executor-return': 'error', |
|
|
|
'require-await': 'error', |
|
'no-restricted-properties': [ |
|
'error', |
|
{ |
|
object: 'crypto', |
|
property: 'randomUUID', |
|
message: 'Use of crypto.randomUUID is not allowed as it is not available in all browsers.', |
|
}, |
|
], |
|
}, |
|
overrides: [ |
|
|
|
|
|
|
|
{ |
|
files: ['*.stories.tsx'], |
|
rules: { |
|
|
|
'i18next/no-literal-string': 'off', |
|
}, |
|
}, |
|
], |
|
}; |
|
|