feat(ui): enforce absolute import paths

- add & configure `eslint-plug-path`
This commit is contained in:
psychedelicious
2023-11-27 16:10:20 +11:00
parent 3d4874dc34
commit 578c8ce5dd
3 changed files with 16 additions and 1 deletions

View File

@ -25,9 +25,11 @@ module.exports = {
'@typescript-eslint',
'eslint-plugin-react-hooks',
'i18next',
'path',
],
root: true,
rules: {
'path/no-relative-imports': ['error', { maxDepth: 0 }],
curly: 'error',
'i18next/no-literal-string': 2,
'react/jsx-no-bind': ['error', { allowBind: true }],