mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 11:52:39 +02:00
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:
parent
936725c94d
commit
128dbfca0a
12 changed files with 467 additions and 12704 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue