A (zero-dependency!) eslint plugin that enforces absolute imports on your codebase.
You must have a baseUrl
defined in either tsconfig.json
or jsconfig.json
. This plugin does not currently work with paths
!
npm i --save-dev eslint-plugin-absolute-imports
- Add
eslint-plugin-absolute-imports
to your eslintplugins
section - Add
absolute-imports/only-absolute-imports
to your eslintrules
section
MIT