Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

fixes #317#320

Merged
w20k merged 8 commits intomasterfrom
Idrinth-patch-1
May 3, 2017
Merged

fixes #317#320
w20k merged 8 commits intomasterfrom
Idrinth-patch-1

Conversation

@Idrinth
Copy link
Copy Markdown
Member

@Idrinth Idrinth commented May 2, 2017

and fixes some formatting in the readme :P

Comment thread src/mods/chat.js
parseInt(idrinth.chat.chatRank[chatId][userId], 10)
],
content: (usedPlatforms === ""
? ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/chat.js
var translation = idrinth.text.get(node.label);
return {
content: translation === idrinth.text.data.default
? node.label
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/chat.js
{
type: "label",
content: translation === idrinth.text.data.default
? label
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/chat.js
}
],
content: translation === idrinth.text.data.default
? label
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/chat.js
(idrinth.settings.get("moveLeft") ? " left-sided" : "") +
(chat.getElementsByClassName("new-message") &&
chat.getElementsByClassName("new-message").length
? " new-message"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/core.js
isStatic
) {
var server = isStatic
? "static"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/core.js
} catch (e) {
idrinth.core.log(
typeof e.getMessage === "function"
? e.getMessage()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/core.js
idrinth.core.multibind.events[event] = idrinth.core.multibind.events[
event
]
? idrinth.core.multibind.events[event]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/core.js
: {};
idrinth.core.multibind.events[event][selector] = idrinth.core.multibind
.events[event][selector]
? idrinth.core.multibind.events[event][selector]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/raids.js
"hash=" +
data.hash +
(idrinth.settings.get("isWorldServer")
? "&" + tag + "serverid=" + 2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/stats.js
document.getElementById(
"idrinth-stats-" + key
).parentNode.parentNode.childNodes[2].innerHTML = result[key] < 0
? result[key]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/tier.js
idrinth.tier.list[listKey].os[difficulty],
idrinth.tier.list[listKey][difficulty][ic]
)
? "is-os"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
return idrinth.ui.buildElement({
css: "idrinth-line" +
(config.platforms && !inArray(idrinth.platform, config.platforms)
? " idrinth-hide"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
type: "label",
css: "idrinth-float-half",
content: translation === idrinth.text.data.default
? config.label
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
openCloseSettings: function() {
var toRemove = [
idrinth.ui.controls.getAttribute("class").match(/(^|\s)inactive($|\s)/)
? "inactive"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
typeof value === "object" &&
Array.isArray(value) &&
value !== null
? value
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
: [];
};
var original = classString === null
? []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
return {
css: "idrinth-float-half" +
(platform && platform !== idrinth.platform
? " idrinth-hide"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
),
buttonMaker(
idrinth.settings.get("alarmActive")
? idrinth.text.get("button.disableTimedAutoJoin")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/ui.js
label +
"'," +
(isCheck
? "this.checked"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/war.js
"class",
"traffic " +
(data.amount < 90
? "yes"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/war.js
element.getElementsByTagName("td")[
0
].firstChild.innerHTML = data.amount < 90
? "yes"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/war.js
type: "td",
css: "traffic " +
(data.amount < 90
? "yes"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/mods/war.js
{
type: "span",
content: data.amount < 90
? "yes"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

@Idrinth
Copy link
Copy Markdown
Member Author

Idrinth commented May 2, 2017

bots seem to slightly disagree on the formatting, @w20k @Ardenian :D

@w20k
Copy link
Copy Markdown
Collaborator

w20k commented May 2, 2017

It's here - the bot war :D

Comment thread src/libs/big.js

/*
return toE === 1 || (toE && (dp <= i || i <= Big.E_NEG))
? // Exponential notation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Misleading line break before '?'; readers may interpret this as an expression boundary.

Comment thread src/libs/big.js
for (; ++xc[i] > 9; ) {
xc[i] = 0;

if (!i--) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • Bad operand.

Comment thread src/stable.js
},
1000
);
delete idrinth["start"];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[jshint]

  • ['start'] is better written in dot notation.

@Idrinth
Copy link
Copy Markdown
Member Author

Idrinth commented May 2, 2017

@w20k @Ardenian I guess we should turn off sideci? I can't find a way to configure jshint to work well with prettier's code

@w20k
Copy link
Copy Markdown
Collaborator

w20k commented May 2, 2017

Yeah, shut it down.

@Idrinth
Copy link
Copy Markdown
Member Author

Idrinth commented May 2, 2017

done, will test it a bit tonight, just to make sure it still works

should make sure that our JSON-lanf doesn't break
@Idrinth
Copy link
Copy Markdown
Member Author

Idrinth commented May 2, 2017

works, @w20k - no omplaints from you I assume?

@w20k
Copy link
Copy Markdown
Collaborator

w20k commented May 3, 2017

Nope, nothing so far :)

@w20k
Copy link
Copy Markdown
Collaborator

w20k commented May 3, 2017

@w20k w20k merged commit 02e1ea5 into master May 3, 2017
@Idrinth Idrinth deleted the Idrinth-patch-1 branch May 3, 2017 07:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants