01 - Preheat the oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, baking soda, salt, cinnamon, and nutmeg until evenly mixed.
03 - In a large bowl, cream the softened butter with brown sugar and granulated sugar until light and fluffy.
04 - Beat in maple syrup, eggs, and vanilla extract until the mixture is smooth and thoroughly combined.
05 - Gradually add the dry ingredient mixture to the wet mixture, stirring just until incorporated to avoid overmixing.
06 - Gently fold in rolled oats, raisins, and walnuts if using, ensuring even distribution throughout the dough.
07 - Drop tablespoon-sized portions of dough about 2 inches apart on the prepared baking sheets.
08 - Bake for 11 to 13 minutes, until edges are golden and the centers are set but still soft.
09 - Allow cookies to cool on baking sheets for 5 minutes before transferring them to a wire rack to cool completely.