01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, cinnamon, nutmeg, baking soda, baking powder, and salt until well blended.
03 - In a large bowl, beat the butter, brown sugar, and granulated sugar with an electric mixer until light and fluffy, about 2 minutes.
04 - Add the egg and vanilla extract to the butter mixture. Beat until fully incorporated.
05 - Gradually mix the dry ingredients into the wet ingredients, mixing until just combined. Do not overmix.
06 - Gently fold in the grated carrots, chopped walnuts, and raisins until evenly distributed throughout the dough.
07 - Drop tablespoon-sized mounds of dough onto the prepared baking sheets, spacing them about 2 inches apart to allow for spreading.
08 - Bake for 11 to 13 minutes, until the edges are lightly golden but the centers remain soft for optimal chewiness.
09 - Let cookies rest on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.