From a32767ca1a2f172d57cd4a68cbf1e8a9de9810d1 Mon Sep 17 00:00:00 2001
From: Wyatt Miller
Date: Thu, 24 May 2018 23:43:26 -0400
Subject: [PATCH] added .eslintrc, .gitignore
---
.eslintrc.json | 25 +++++++++++++++++++++++++
.gitignore | 1 +
src/analytics.js | 4 ++--
src/footer.php | 4 +---
src/header.php | 4 +---
src/index.php | 8 +++-----
src/main.js | 5 +++--
src/style.css | 2 +-
src/twitch-player.js | 23 ++++++++++++++++++++++-
9 files changed, 59 insertions(+), 17 deletions(-)
create mode 100644 .eslintrc.json
create mode 100644 .gitignore
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..5b50b53
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,25 @@
+{
+ "env": {
+ "browser": true,
+ "es6": true
+ },
+ "extends": "eslint:recommended",
+ "rules": {
+ "indent": [
+ "error",
+ 4
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "double"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..22d0d82
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+vendor
diff --git a/src/analytics.js b/src/analytics.js
index fef1fbf..7e6e374 100644
--- a/src/analytics.js
+++ b/src/analytics.js
@@ -10,5 +10,5 @@ function gtag(){
dataLayer.push(arguments);
}
-gtag('js', new Date());
-gtag('config', 'UA-119564631-1');
+gtag("js", new Date());
+gtag("config", "UA-119564631-1");
diff --git a/src/footer.php b/src/footer.php
index b325a92..b0cd691 100644
--- a/src/footer.php
+++ b/src/footer.php
@@ -1,4 +1,3 @@
-
@@ -20,5 +19,4 @@
© Entourage Solutions, Wyatt J. Miller - Licensed by the MIT
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/header.php b/src/header.php
index 706fa0a..b7a7846 100644
--- a/src/header.php
+++ b/src/header.php
@@ -1,4 +1,3 @@
-