I come across a larger node project that uses module-alias and currently has 14 aliases. When fast reading through source is not easy to digest what module import is an alias and what's an npm import.
We switched from @ to $ in prefixing modules and it's more clear, especially for new people joining the project.
var module = require('$deep/module')
// Or ES6
import module from '$deep/module'
Maybe providing $deep in examples will encourage people not to use the @org format to make it more clear.
I come across a larger node project that uses
module-alias
and currently has 14 aliases. When fast reading through source is not easy to digest what module import is an alias and what's an npm import.We switched from @ to $ in prefixing modules and it's more clear, especially for new people joining the project.
Maybe providing
$deep
in examples will encourage people not to use the@org
format to make it more clear.