As the example given by Mike
" An eighteen-hole golf course has eighteen holes. "
Here, we have two nouns, the golf course and the holes.
An eighteen - hole golf course, if it refers to the noun "golf course", it is singular, if it refers to the noun "holes", then it is plural.