Stir the soy sauce, hoisin sauce, lime juice, and cornstarch together in a small bowl.
Coat the bottom of a large wok or skillet with one tablespoon of the oil and place it over medium heat. Give the oil a minute to heat up, then add the tofu cubes in an even layer (Note 2). Cook the tofu for about 10 minutes, flipping the pieces once or twice. Remove them from the wok and transfer them to a plate when the pieces are golden brown.
Add the remaining tablespoon of oil to the wok and raise the heat to medium-high. Add the shallot and jalapeño. Stir-fry these ingredients for about 4 minutes, until they soften a bit and the shallots start to brown.
Push the shallots and jalapeños to the side and add the garlic to the wok. Sauté it for about 30 seconds, stirring it constantly, until it becomes very fragrant.
Add the corn to the wok. Stir-fry the corn for about 3 minutes, stirring and then occasionally letting the kernels sit on the hot surface for about 30 seconds at a time so they brown in spots (Note 3).
Return the tofu to the wok, then add the sauce. Continue stir-frying the mixture for a minute or two, until the sauce thickens and coats the corn and tofu.
Stir in the scallions and basil. Continue to stir-fry the mixture for a few seconds, until the basil wilts, then remove the wok from heat.
Serve the stir-fry on it's own, or with rice.