mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
eslint: operator-linebreak
This commit is contained in:
@@ -23,13 +23,23 @@
|
||||
, "no-prototype-builtins": "off"
|
||||
, "no-async-promise-executor": "off"
|
||||
, "semi": [ "error", "always"]
|
||||
, "comma-dangle": [ "error", "never"]
|
||||
, "comma-style": [ "error", "first"]
|
||||
, "comma-dangle": [ "error", "never" ]
|
||||
, "comma-style": [ "error", "first" ]
|
||||
, "no-multiple-empty-lines": [ "error", { "max": 2 }]
|
||||
, "no-console": [ "error", {
|
||||
"allow": [ "info", "error" ]
|
||||
}]
|
||||
|
||||
, "operator-linebreak": [ "error", "after", {
|
||||
"overrides": {
|
||||
"?": "before"
|
||||
, ":": "before"
|
||||
, "&": "before"
|
||||
, "|": "before"
|
||||
, "??": "ignore"
|
||||
, "&&": "ignore"
|
||||
, "||": "ignore"
|
||||
}
|
||||
}]
|
||||
, "object-curly-spacing": [ "error", "always", {
|
||||
"arraysInObjects": false
|
||||
, "objectsInObjects": false
|
||||
|
||||
@@ -117,8 +117,8 @@ function getMedia(opts: InitOptions): Promise<cast.media.Media> {
|
||||
|
||||
try {
|
||||
// Wait until media server is listening
|
||||
const { localAddress, mediaPath, subtitlePaths }
|
||||
= await startMediaServer(mediaTitle, port);
|
||||
const { localAddress, mediaPath, subtitlePaths } =
|
||||
await startMediaServer(mediaTitle, port);
|
||||
|
||||
const baseUrl = new URL(`http://${localAddress}:${port}/`);
|
||||
mediaUrl = new URL(mediaPath, baseUrl);
|
||||
|
||||
@@ -174,8 +174,8 @@ export default class Session {
|
||||
|
||||
case "shim:session/impl_stop": {
|
||||
const { stopId, error } = message.data;
|
||||
const [ successCallback, errorCallback ]
|
||||
= this.#stopCallbacks.get(stopId) ?? [];
|
||||
const [ successCallback, errorCallback ] =
|
||||
this.#stopCallbacks.get(stopId) ?? [];
|
||||
|
||||
// Disconnect from extension messages
|
||||
this.#listener.disconnect();
|
||||
|
||||
@@ -83,8 +83,8 @@ export default class Media {
|
||||
|
||||
case "shim:media/sendMediaMessageResponse": {
|
||||
const { messageId, error } = message.data;
|
||||
const [ successCallback, errorCallback ]
|
||||
= this.#sendMediaMessageCallbacks
|
||||
const [ successCallback, errorCallback ] =
|
||||
this.#sendMediaMessageCallbacks
|
||||
.get(messageId) ?? [];
|
||||
|
||||
if (error && errorCallback) {
|
||||
|
||||
@@ -96,8 +96,8 @@ export default class Bridge extends Component<BridgeProps, BridgeState> {
|
||||
}
|
||||
|
||||
public render() {
|
||||
const [ backupMessageStart, backupMessageEnd ]
|
||||
= _("optionsBridgeBackupEnabled", "\0").split("\0");
|
||||
const [ backupMessageStart, backupMessageEnd ] =
|
||||
_("optionsBridgeBackupEnabled", "\0").split("\0");
|
||||
|
||||
return (
|
||||
<div className="bridge">
|
||||
|
||||
Reference in New Issue
Block a user