eslint-plugin-absolute-imports
v0.0.3
Published
Eslint rule enforcing absolute imports
Downloads
19,931
Readme
eslint-plugin-absolute-imports
A (zero-dependency!) eslint plugin that enforces absolute imports on your codebase.
Prerequisites
You must have a baseUrl
defined in either tsconfig.json
or jsconfig.json
. This plugin does not currently work with paths
!
Setup
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
License
MIT