01 - Pat the shrimp dry and season lightly with salt and freshly ground black pepper on both sides.
02 - Heat 2 tablespoons of olive oil in a large skillet over medium-high heat. Add the shrimp in a single layer and sauté for 1 to 2 minutes per side until just pink and curled. Remove with tongs and set aside on a plate.
03 - Reduce heat to medium. Add the remaining tablespoon of olive oil to the skillet along with the minced garlic and chopped onion. Sauté for about 3 minutes until the onion is soft and translucent, stirring occasionally.
04 - Stir in the red pepper flakes and cook for 30 seconds until fragrant, being careful not to burn them.
05 - Pour in the dry white wine, scraping up any browned bits from the bottom of the pan. Simmer for 2 minutes to reduce slightly.
06 - Add the crushed tomatoes and stir to combine. Bring to a gentle simmer and cook for 7 to 8 minutes until the sauce thickens and the flavors meld together.
07 - Return the shrimp along with any accumulated juices to the skillet. Add the chopped parsley and optional basil. Cook everything together for 2 to 3 minutes until the shrimp are heated through and coated in sauce.
08 - Taste the sauce and adjust the seasoning with additional salt, black pepper, or red pepper flakes as desired.
09 - Serve hot over cooked linguine or spaghetti, garnished with extra fresh herbs and lemon wedges on the side if desired.