-
-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use prettier conf same as in mediasoup
- Loading branch information
Showing
48 changed files
with
7,408 additions
and
7,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
module.exports = { | ||
printWidth: 80, | ||
useTabs: true, | ||
tabWidth: 2, | ||
useTabs: false, | ||
semi: false, | ||
singleQuote: true, | ||
quoteProps: 'as-needed', | ||
jsxSingleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
bracketSameLine: false, | ||
arrowParens: 'avoid', | ||
requirePragma: false, | ||
insertPragma: false, | ||
endOfLine: 'lf', | ||
htmlWhitespaceSensitivity: 'ignore', | ||
} | ||
bracketSpacing: true, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
endOfLine: 'auto', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import debug from 'debug' | ||
import debug from 'debug'; | ||
|
||
const APP_NAME = 'mediasoup-demo' | ||
const APP_NAME = 'mediasoup-demo'; | ||
|
||
export default class Logger { | ||
constructor(prefix) { | ||
if (prefix) { | ||
this._debug = debug(`${APP_NAME}:${prefix}`) | ||
this._warn = debug(`${APP_NAME}:WARN:${prefix}`) | ||
this._error = debug(`${APP_NAME}:ERROR:${prefix}`) | ||
} else { | ||
this._debug = debug(APP_NAME) | ||
this._warn = debug(`${APP_NAME}:WARN`) | ||
this._error = debug(`${APP_NAME}:ERROR`) | ||
} | ||
constructor(prefix) { | ||
if (prefix) { | ||
this._debug = debug(`${APP_NAME}:${prefix}`); | ||
this._warn = debug(`${APP_NAME}:WARN:${prefix}`); | ||
this._error = debug(`${APP_NAME}:ERROR:${prefix}`); | ||
} else { | ||
this._debug = debug(APP_NAME); | ||
this._warn = debug(`${APP_NAME}:WARN`); | ||
this._error = debug(`${APP_NAME}:ERROR`); | ||
} | ||
|
||
/* eslint-disable no-console */ | ||
this._debug.log = console.info.bind(console) | ||
this._warn.log = console.warn.bind(console) | ||
this._error.log = console.error.bind(console) | ||
/* eslint-enable no-console */ | ||
} | ||
/* eslint-disable no-console */ | ||
this._debug.log = console.info.bind(console); | ||
this._warn.log = console.warn.bind(console); | ||
this._error.log = console.error.bind(console); | ||
/* eslint-enable no-console */ | ||
} | ||
|
||
get debug() { | ||
return this._debug | ||
} | ||
get debug() { | ||
return this._debug; | ||
} | ||
|
||
get warn() { | ||
return this._warn | ||
} | ||
get warn() { | ||
return this._warn; | ||
} | ||
|
||
get error() { | ||
return this._error | ||
} | ||
get error() { | ||
return this._error; | ||
} | ||
} |
Oops, something went wrong.