This repository contains an example of the eslint plugin eslint-plugin-boundaries
usage with TypeScript, including custom TS paths.
The documentation of the plugin itself contains TypeScript
configuration instructions.
git clone [email protected]:javierbrea/epb-ts-example.git
cd epb-ts-example
npm i
Note that the lint execution will return an error, but it is intentional, as the src/modules/module-b
element contains a forbidden import in order to check that the plugin works properly.
npm run lint
# 1:21 error Usage of 'modules' is not allowed in 'modules' boundaries/element-types
Some tests have been added to check that both TypeScript
compilation and eslint
execution work as expected.
npm run build
npm run test