Change eslint option for unused var, and fix a few files