Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable a couple xo (ESLint) rules and rename utils #1346

Merged
merged 4 commits into from
May 23, 2020
Merged

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented May 22, 2020

By submitting this pull request, I confirm the following: {please fill any appropriate checkboxes, e.g: [X]}

{Please ensure that your pull request is for the 'devel' branch!}

  • I have read and understood the contributors guide, as well as this entire template.
  • I have made only one major change in my proposed changes.
  • I have commented my proposed changes within the code.
  • I have tested my proposed changes.
  • I am willing to help maintain this change if there are issues with it later.
  • I give this submission freely and claim no ownership.
  • It is compatible with the EUPL 1.2 license
  • I have squashed any insignificant commits. (git rebase)
  • I have Signed Off all commits. (git commit --signoff)

CC me if this needs a rebase, or if any other PR needs a rebase after this.

@@ -32,10 +32,11 @@ function eventsource() {
}

// Detect ${OVER}
if (e.data.indexOf("<------") !== -1) {
var newString = "<------";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to cache the string while at it.

@XhmikosR XhmikosR marked this pull request as draft May 22, 2020 07:59
@XhmikosR XhmikosR marked this pull request as ready for review May 22, 2020 08:04
@XhmikosR XhmikosR changed the title Enable a couple xo (ESLint) rules Enable a couple xo (ESLint) rules and rename utils May 22, 2020
@XhmikosR XhmikosR force-pushed the xo-rules branch 2 times, most recently from a6cd6be to 45b235a Compare May 22, 2020 18:25
It's a common convention to use camelcase for variable names.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
Set properties to false for now.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
It's not used only in group pages, and we should try to move more common stuff here later.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
@PromoFaux PromoFaux merged commit 700e9af into devel May 23, 2020
@PromoFaux PromoFaux deleted the xo-rules branch May 23, 2020 07:45
@XhmikosR XhmikosR added this to the v5.1 milestone May 29, 2020
@PromoFaux PromoFaux mentioned this pull request Jul 5, 2020
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-5-1-released/35577/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants