Add options from config and query

like https://github.com/webpack/jshint-loader/blob/master/index.js#L9-L22