Preheat oven to 350 degrees. Whisk together flour, baking soda, and salt in a medium bowl.

Put butter in the bowl of an electric mixer fitted with the paddle attachment; mix on medium speed until smooth. Add sugars, and mix until pale and fluffy, about 3 minutes. Mix in eggs one at a time until combined; mix in vanilla.