Yehoshua: The Underestimated Leader

What was it about Yehoshua (the book and the person) that made the era a golden age with no rebellion, no complaints against God and virtually no sin, in contrast to the same people's behavior in the chumash? What do we know about him?