-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setting up code formatter * Apply prettier * Set up lint * Apply lint
- Loading branch information
Showing
12 changed files
with
1,023 additions
and
125 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parser": "babel-eslint", | ||
"extends": ["eslint:recommended", "plugin:prettier/recommended"], | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"no-console": "off", | ||
"prettier/prettier": "error" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "**/js-index.js", | ||
"env": { | ||
"es6": false, | ||
"node": false | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 5 | ||
}, | ||
"rules": { | ||
"no-undef": "off", | ||
"no-unused-vars": "off" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
}; |
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
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,30 +1,27 @@ | ||
// @ts-nocheck | ||
|
||
var console = { | ||
log: function () { | ||
for(var i=0,len=arguments.length; i<len; i++) { | ||
var message = arguments[i]; | ||
if(message && message.toString) { | ||
var s = message.toString(); | ||
if(s.indexOf("[object ") >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} | ||
else if(message === null) { | ||
post("<null>"); | ||
} | ||
else { | ||
post(message); | ||
} | ||
} | ||
post("\n"); | ||
} | ||
} | ||
log: function() { | ||
for (var i = 0, len = arguments.length; i < len; i++) { | ||
var message = arguments[i]; | ||
if (message && message.toString) { | ||
var s = message.toString(); | ||
if (s.indexOf('[object ') >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} else if (message === null) { | ||
post('<null>'); | ||
} else { | ||
post(message); | ||
} | ||
} | ||
post('\n'); | ||
} | ||
}; | ||
|
||
function get_track_id(){ | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log("current track id:", thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
function get_track_id() { | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log('current track id:', thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
} | ||
|
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
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,30 +1,27 @@ | ||
// @ts-nocheck | ||
|
||
var console = { | ||
log: function () { | ||
for(var i=0,len=arguments.length; i<len; i++) { | ||
var message = arguments[i]; | ||
if(message && message.toString) { | ||
var s = message.toString(); | ||
if(s.indexOf("[object ") >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} | ||
else if(message === null) { | ||
post("<null>"); | ||
} | ||
else { | ||
post(message); | ||
} | ||
} | ||
post("\n"); | ||
} | ||
} | ||
log: function() { | ||
for (var i = 0, len = arguments.length; i < len; i++) { | ||
var message = arguments[i]; | ||
if (message && message.toString) { | ||
var s = message.toString(); | ||
if (s.indexOf('[object ') >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} else if (message === null) { | ||
post('<null>'); | ||
} else { | ||
post(message); | ||
} | ||
} | ||
post('\n'); | ||
} | ||
}; | ||
|
||
function get_track_id(){ | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log("current track id:", thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
function get_track_id() { | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log('current track id:', thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
} | ||
|
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,30 +1,27 @@ | ||
// @ts-nocheck | ||
|
||
var console = { | ||
log: function () { | ||
for(var i=0,len=arguments.length; i<len; i++) { | ||
var message = arguments[i]; | ||
if(message && message.toString) { | ||
var s = message.toString(); | ||
if(s.indexOf("[object ") >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} | ||
else if(message === null) { | ||
post("<null>"); | ||
} | ||
else { | ||
post(message); | ||
} | ||
} | ||
post("\n"); | ||
} | ||
} | ||
log: function() { | ||
for (var i = 0, len = arguments.length; i < len; i++) { | ||
var message = arguments[i]; | ||
if (message && message.toString) { | ||
var s = message.toString(); | ||
if (s.indexOf('[object ') >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} else if (message === null) { | ||
post('<null>'); | ||
} else { | ||
post(message); | ||
} | ||
} | ||
post('\n'); | ||
} | ||
}; | ||
|
||
function get_track_id(){ | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log("current track id:", thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
function get_track_id() { | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log('current track id:', thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
} | ||
|
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
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,30 +1,27 @@ | ||
// @ts-nocheck | ||
|
||
var console = { | ||
log: function () { | ||
for(var i=0,len=arguments.length; i<len; i++) { | ||
var message = arguments[i]; | ||
if(message && message.toString) { | ||
var s = message.toString(); | ||
if(s.indexOf("[object ") >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} | ||
else if(message === null) { | ||
post("<null>"); | ||
} | ||
else { | ||
post(message); | ||
} | ||
} | ||
post("\n"); | ||
} | ||
} | ||
log: function() { | ||
for (var i = 0, len = arguments.length; i < len; i++) { | ||
var message = arguments[i]; | ||
if (message && message.toString) { | ||
var s = message.toString(); | ||
if (s.indexOf('[object ') >= 0) { | ||
s = JSON.stringify(message); | ||
} | ||
post(s); | ||
} else if (message === null) { | ||
post('<null>'); | ||
} else { | ||
post(message); | ||
} | ||
} | ||
post('\n'); | ||
} | ||
}; | ||
|
||
function get_track_id(){ | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log("current track id:", thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
function get_track_id() { | ||
var thisTrack = new LiveAPI('this_device canonical_parent'); | ||
console.log('current track id:', thisTrack.id); | ||
outlet(0, 'track_id', thisTrack.id); | ||
} | ||
|
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
Oops, something went wrong.