force absolute import path (#223)

* Add "no-relative-import-paths" eslint plugin

* Add "no-relative-import-paths" eslint plugin - Fix imports
This commit is contained in:
Daniel
2023-02-05 16:15:20 +01:00
committed by GitHub
parent 144b4cdb49
commit 2eeea41a45
32 changed files with 63 additions and 49 deletions

View File

@@ -3,7 +3,7 @@ module.exports = {
'airbnb',
'airbnb-typescript'
],
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'no-relative-import-paths'],
parserOptions: {
project: './tsconfig.json',
},
@@ -24,5 +24,13 @@ module.exports = {
'react/jsx-no-bind' : 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
"no-relative-import-paths/no-relative-import-paths": [
"error",
{
rootDir: "src",
prefix: false,
},
],
},
};