Even if the other mod puts janky-quality as an optional dependency, any recipe changes that another mod makes (at least in data-updates.lua, which is the usual place for recipe changes to be made) will not be used for the recipes for quality items using quality items. For example if you change the recipe of an electronic-circuit to use 1 wood and 3 copper cable, you can still craft an uncommon electronic-circuit with 1 uncommon iron plate and 3 uncommon copper cable.
This also applies to rocket launch products and possibly some other things.