This isn't bullet-proof but here's how I've doing things lately:
npm install three --save- Include this in your browserify/webpack root script, typically your
index.js:
global.THREE = require('three')- Add the
"THREE"global to your linter (e.g. semistandard/eslintrc)