Skip to content

Commit

Permalink
removed jshint and brought in eslint; removed gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Chadwick committed Aug 9, 2018
1 parent dbeeafb commit 4e20444
Show file tree
Hide file tree
Showing 7 changed files with 1,108 additions and 5,027 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,31 @@
{
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 6
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"never"
],
"no-console": "off"
}
}
4 changes: 0 additions & 4 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion assets/js/app/init.js
Expand Up @@ -18,7 +18,7 @@ Raffler.userOptionsMerge = false
Raffler.userOptionsPath = '/assets/json/raffler_user_options.json'

if (Raffler.userOptionsMerge) {
$.getJSON(Raffler.userOptionsPath, function (data) {})
$.getJSON(Raffler.userOptionsPath, function () {})
.done(function (data) {
// get user options, if they exist
Raffler.userDataFile = data.userDataFile
Expand Down
16 changes: 8 additions & 8 deletions assets/js/app/main.js
Expand Up @@ -45,23 +45,23 @@ Raffler.setEventHandlers = function () {
Raffler.divIntervalValue.text($(this).val())
window.countdownTimer.interval = parseInt($(this).val())
})
Raffler.ckOptShowGraph.on('change', function (e) {
Raffler.ckOptShowGraph.on('change', function () {
Raffler.divItemsGraph.toggle()
var curObj = Raffler._getLocalStorageItem('rafflerOptions')
curObj.showGraph = !curObj.showGraph
Raffler._setLocalStorageItem('rafflerOptions', curObj)
})
Raffler.ckOptResize.on('change', function (e) {
Raffler.ckOptResize.on('change', function () {
var curObj = Raffler._getLocalStorageItem('rafflerOptions')
curObj.boxResize = !curObj.boxResize
Raffler._setLocalStorageItem('rafflerOptions', curObj)
})
Raffler.ckOptSoundCountdown.on('change', function (e) {
Raffler.ckOptSoundCountdown.on('change', function () {
var curObj = Raffler._getLocalStorageItem('rafflerOptions')
curObj.soundCountdown = !curObj.soundCountdown
Raffler._setLocalStorageItem('rafflerOptions', curObj)
})
Raffler.ckOptSoundVictory.on('change', function (e) {
Raffler.ckOptSoundVictory.on('change', function () {
var curObj = Raffler._getLocalStorageItem('rafflerOptions')
curObj.soundVictory = !curObj.soundVictory
Raffler._setLocalStorageItem('rafflerOptions', curObj)
Expand Down Expand Up @@ -208,11 +208,11 @@ Raffler.setEventHandlers = function () {
Raffler.raffleButtonSmash()
}
})
Raffler.btnChosenConfirmYes.click(function (e) {
Raffler.btnChosenConfirmYes.click(function () {
Raffler.lastItemChosenConfirmed = true
Raffler.continueRaffling()
})
Raffler.btnChosenConfirmNo.click(function (e) {
Raffler.btnChosenConfirmNo.click(function () {
Raffler.lastItemChosenConfirmed = false
Raffler.continueRaffling()
})
Expand Down Expand Up @@ -380,7 +380,7 @@ Raffler.clearUserItemsInput = function () {

// fill in-memory itemsArr with server JSON
Raffler.initItemsArr = function () {
$.getJSON(Raffler.dataFilePath, function (data) {})
$.getJSON(Raffler.dataFilePath, function () {})
.done(function (data) {
while (Raffler.itemsArr.length) {
Raffler.itemsArr.pop()
Expand Down Expand Up @@ -506,7 +506,7 @@ Raffler.syncUserItemsWithItemsArr = function () {
Raffler.refreshItemsGraph = function (items) {
var index = 0
Raffler.divItemsGraph.html('')
items.forEach(function (elem) {
items.forEach(function () {
Raffler.divItemsGraph
.append('<span id=' + (index++) + '></span>')
})
Expand Down
107 changes: 0 additions & 107 deletions gulpfile.js

This file was deleted.

0 comments on commit 4e20444

Please sign in to comment.