i only prewash flannel.
i treat batiks with retayne.
if i had fabric from an unknown source (bought 2nd hand, gifted from some ones older stash) i would prewash it.
i feel very confident in the quality of the fabric i buy and dye and in 8 years have never had a single problem.