Use .localhost pointing at 127.0.0.1 for local development. It is reserved for this purpose and obvious to everyone unlike .test.
For reference your options are:
.test
.example
.invalid
.localhost
https://tools.ietf.org/html/rfc2606With only .localhost fitting the purpose of most people's usage of .dev.