Throw PluginError when exceptions happen
Fix lint issue
Tidy up package.json