department-of-veterans-affairs / va-mobile-library

https://department-of-veterans-affairs.github.io/va-mobile-library/
ISC License
0 stars 0 forks source link

DS - Add eslint rule to disallow absolute imports #218

Open narin opened 3 months ago

narin commented 3 months ago

Description

We should add an eslint rule that only allows relative imports. While absolute imports work when running locally, TypeScript throws an error for them when our components package is referenced by another app.

Acceptance Criteria

- [ ] An eslint rule has been added to throw errors on absolute imports - [ ] `yarn lint` should fail if there is an absolute import