I'm using sequelize and I have a models/index.js which does this:
import { Car } from './car.js'
import { Bike } from './bike.js'
// ... defining sequelize relations here ..
// then:
module.exports = {
Car, Bike
}
Then if another file vehicularMadness.js imports Car via this index file, also bike.js gets calculated as imported by vehicularMadness.js. And in fact all files that module/index.js imports get assigned the same usage.
Is there a way to configure deprank to not work like this or is there another tool that does not do this?
I'm using sequelize and I have a
models/index.jswhich does this:Then if another file
vehicularMadness.jsimports Car via this index file, also bike.js gets calculated as imported byvehicularMadness.js. And in fact all files thatmodule/index.jsimports get assigned the same usage.Is there a way to configure deprank to not work like this or is there another tool that does not do this?