add swindent option

adapted from https://github.com/jshint/jshint/pull/600