Help selecting linear sensor

Not sure what to say about constraints. Just need a distance sensor o to 300 mm with 1mm accuracy.