Tidy up ESLint usage (#836)

* Use Airbnb ESLint

* Turn off rules

* Add back

* add website to eslint precommit

* Add back

* remove useless escape
This commit is contained in:
Yangshun Tay 2018-07-07 01:25:14 -07:00 committed by Endilie Yacop Sucipto
parent 936725c94d
commit 128dbfca0a
12 changed files with 467 additions and 12704 deletions

View file

@ -17,7 +17,7 @@ const CWD = process.cwd();
// escape appropriate characters in a string to be used in a regex
RegExp.escape = function(s) {
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
return s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
};
// generate a doc header from metadata