use module to escape regexp special characters
update ESLint rules for ESLint 0.7.1

Fixes a Travis CI build failure.
Merge remote-tracking branch 'upstream/master' into docs