Feature/use alias for imports (#352)
* Use alias "@" for imports * Use alias "@" for imports - Fix imports * Use alias "@" for imports - Prevent faulty "import/extensions" linting issue For some reason the rule throws an error for alias imports * Use alias "@" for imports - Update "no-relative-imports" eslint rule
This commit is contained in:
@@ -38,11 +38,14 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
|
||||
// seems to be bugged for aliases
|
||||
'import/extensions': ['error', 'ignorePackages', { '': 'never' }],
|
||||
|
||||
'no-relative-import-paths/no-relative-import-paths': [
|
||||
'error',
|
||||
{
|
||||
rootDir: 'src',
|
||||
prefix: false,
|
||||
prefix: '@',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user