Set "use strict" everywhere

Fix some for loops to work in strict
This commit is contained in:
garnet420 2019-04-16 12:38:21 -04:00
parent 9de7827d2d
commit a30f08ca78
241 changed files with 498 additions and 21 deletions

View File

@ -187,6 +187,10 @@
"space-in-parens": "error",
"space-infix-ops": "error",
"spaced-comment": "error",
"strict": [
"error",
"global"
],
"switch-colon-spacing": "error",
"template-tag-spacing": "error",
"arrow-body-style": "error",

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("achievements-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-achievement-row", {
props: {
row: Number

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-achievement", {
props: {
row: Number,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-achievements-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("reality-achievement-row", {
props: {
row: Number

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-achievement", {
props: {
row: Number,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("reality-achievements-tab", {
template:
`<div class="l-achievement-grid">

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("secret-achievement-row", {
props: {
row: Number

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("secret-achievement", {
props: {
row: Number,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("secret-achievements-tab", {
template:
`<div class="l-achievement-grid">

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("automator-save-load-button", {
props: {
saveslot: Number

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('celestials-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('effarig-tab', {
components: {
"run-unlock-reward": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("effarig-unlock-button", {
props: {
unlock: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("enslaved-tab", {
data: () => ({
isStoringBlackHole: false,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('laitela-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('matter-dimension-row', {
props: {
dimension: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('pelle-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('ra-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('teresa-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('v-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("challenge-box", {
props: {
name: String,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("challenge-grid", {
props: {
count: Number,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component('challenges-tab', {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-challenges-tab", {
components: {
"eternity-challenge-box": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("infinity-challenges-tab", {
components: {
"infinity-challenge-box": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-challenges-tab", {
components: {
"normal-challenge-box": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("cost-display", {
props: {
config: Object,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("description-display", {
props: {
config: Object,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dim-production-tab", {
components: {
"number-input": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dimensions-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("infinity-dim-row", {
props: {
tier: Number

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("infinity-dim-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-dim-galaxy-row", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-dim-row", {
props: {
floatingText: Array,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-dim-shift-row", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-dim-tab-header", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-dim-tab-progress-bar", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-dim-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("time-dim-row", {
props: {
tier: Number,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("time-dim-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("effect-display", {
props: {
config: Object,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dilation-button", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dilation-upgrade", {
props: {
isRebuyable: {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("tachyon-particles", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("time-dilation-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-milestone", {
props: {
getMilestone: Function

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-milestones-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dilation-time-study", {
props: {
setup: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("ec-time-study", {
props: {
setup: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("normal-time-study", {
props: {
setup: Object

View File

@ -1,3 +1,5 @@
"use strict";
const remMixin = {
methods: {
rem(value) {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("secret-time-study", {
mixins: [remMixin],
props: {

View File

@ -1,3 +1,5 @@
"use strict";
class TimeStudyRow {
constructor(layout, items, isWide) {
this.layout = layout;

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("time-study-connection", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("time-study", {
mixins: [remMixin],
data() {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("ep-multiplier-button", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-upgrade-button", {
props: {
upgrade: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-upgrades-tab", {
computed: {
grid() {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("footer-links", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-tab-with-subtabs", {
props: {
tabs: Array,

View File

@ -1,3 +1,5 @@
"use strict";
// So this one looks different. What we achieve here is basically
// <div class="l-game-tab">
// <div class="l-game-tab__inner">

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-header-amounts-line", {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-header-big-crunch-button", {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-header-eternity-button", {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-header-new-dim-button", {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-header-tickspeed-row", {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("game-header", {
data: function() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("hint-text", {
computed: {
isVisible() {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("autobuyer-box", {
components: {
"interval-label": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("autobuyer-input", {
props: {
setup: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("autobuyer-interval-button", {
props: {
autobuyer: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("autobuyer-priority-selector", {
props: {
autobuyer: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("autobuyer-toggles", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("autobuyers-tab", {
template:
`<div class="l-autobuyers-tab">

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("big-crunch-autobuyer-box", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dim-autobuyer-box", {
components: {
"bulk-button": {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("dimboost-autobuyer-box", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("eternity-autobuyer-box", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("galaxy-autobuyer-box", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("reality-autobuyer-box", {
computed: {
boxSetup() {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("sacrifice-autobuyer-box", {
computed: {
autobuyer() {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("tickspeed-autobuyer-box", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("break-infinity-button", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("break-infinity-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("infinity-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("infinity-upgrade-button", {
props: {
upgrade: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("replicanti-gain-text", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("replicanti-galaxy-button", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("replicanti-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("replicanti-upgrade-button", {
props: {
setup: Object

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("infinity-upgrades-tab", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("ip-multiplier-button", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("modal-cloud-conflict-record", {
props: {
saveId: Number,

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("modal-cloud-load-conflict", {
mixins: [modalCloudConflictMixin],
template:

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("modal-cloud-save-conflict", {
mixins: [modalCloudConflictMixin],
template:

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("modal-import", {
data() {
return {

View File

@ -1,3 +1,5 @@
"use strict";
Vue.component("modal-load-game", {
components: {
"save-game-record": {

Some files were not shown because too many files have changed in this diff Show More