-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
When importing from the same directory, this rule doesn't get applied. It considers this valid:
import { Foo } from './foo'
Expectation:
import { Foo } from '@/path/to/foo'
All my valid imports have the error: Unexpected subpath import via alias
Real world example:
Unexpected subpath import via alias '@lib/constants/a2.constants'. Use './constants/a2.constants' instead
Configuration in .eslintrc.js:
'@dword-design/import-alias/prefer-alias': [
'error',
{
'alias': {
'@lib': './src/'
}
}
],
Is there a way to get this to work with . and not just ..?
levchak0910, roryabraham, ptforness, dorsta, beingfranklin and 6 more
Metadata
Metadata
Assignees
Labels
No labels