Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4c4378
commit 59821b0
Showing
6 changed files
with
119 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
<script lang="tsx"> | ||
import Vue from 'vue' | ||
import { mapMutations } from 'vuex' | ||
import { Component } from 'vue-property-decorator' | ||
import Vue from 'vue'; | ||
import { mapMutations } from 'vuex'; | ||
import { Component } from 'vue-property-decorator'; | ||
@Component({ | ||
created () { | ||
this.toggleHeader(false) | ||
created() { | ||
this.toggleHeader(false); | ||
}, | ||
methods: { | ||
...mapMutations('APP_SCOPE_NAME', ['toggleHeader']) | ||
} | ||
...mapMutations('APP_SCOPE_NAME', ['toggleHeader']), | ||
}, | ||
}) | ||
export default class Jsx extends Vue { | ||
render (): JSX.Element { | ||
render(): JSX.Element { | ||
// expected error - no-explicit-any | ||
const path: any = '/'; | ||
return ( | ||
// An error occurred in the next line: "Parsing error: '>' expected.eslint" | ||
<div class="mg-notFound"> | ||
<div class="fixed-center text-center"> | ||
<p> | ||
img goes here | ||
<p>img goes here</p> | ||
<p class="text-faded"> | ||
Sorry, nothing here...<strong>(404)</strong> | ||
</p> | ||
<p class="text-faded">Sorry, nothing here...<strong>(404)</strong></p> | ||
<q-btn | ||
color="secondary" | ||
style="width:200px;" | ||
onClick={() => console.log(path)} | ||
>Go back</q-btn> | ||
> | ||
Go back | ||
</q-btn> | ||
</div> | ||
</div> | ||
) | ||
); | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
<!-- Hello.vue --> | ||
<template> | ||
<div> | ||
<div> | ||
<div> | ||
<!-- !!!!! expected error !!!!! --> | ||
Hello {{ (name as any) }}{{exclamationMarks}} | ||
</div> | ||
<button @click="decrement">-</button> | ||
<button @click="increment">+</button> | ||
<!-- !!!!! expected error !!!!! --> | ||
Hello {{ (name as any) }}{{ exclamationMarks }} | ||
</div> | ||
<button @click="decrement">-</button> | ||
<button @click="increment">+</button> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from "vue"; | ||
import Vue from 'vue'; | ||
export default Vue.extend({ | ||
props: ['name', 'initialEnthusiasm'], | ||
data() { | ||
return { | ||
enthusiasm: this.initialEnthusiasm, | ||
} | ||
props: ['name', 'initialEnthusiasm'], | ||
data() { | ||
return { | ||
enthusiasm: this.initialEnthusiasm, | ||
}; | ||
}, | ||
methods: { | ||
increment() { | ||
this.enthusiasm++; | ||
}, | ||
methods: { | ||
increment() { this.enthusiasm++; }, | ||
decrement() { | ||
if (this.enthusiasm > 1) { | ||
this.enthusiasm--; | ||
} | ||
}, | ||
decrement() { | ||
if (this.enthusiasm > 1) { | ||
this.enthusiasm--; | ||
} | ||
}, | ||
computed: { | ||
exclamationMarks(): any { // !!!!! expected error !!!!! | ||
return Array(this.enthusiasm + 1).join('!'); | ||
} | ||
} | ||
}, | ||
computed: { | ||
exclamationMarks(): any { | ||
// !!!!! expected error !!!!! | ||
return Array(this.enthusiasm + 1).join('!'); | ||
}, | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
<!-- World.vue --> | ||
<template> | ||
<div> | ||
<div :id="name"> | ||
{{ enthusiasm }} | ||
</div> | ||
<button @click="decrement">-</button> | ||
<button @click="increment">+</button> | ||
<div> | ||
<div :id="name"> | ||
{{ enthusiasm }} | ||
</div> | ||
<button @click="decrement">-</button> | ||
<button @click="increment">+</button> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from "vue"; | ||
import Vue from 'vue'; | ||
export default Vue.extend({ | ||
props: ['name', 'initialEnthusiasm'], | ||
data() { | ||
return { | ||
enthusiasm: this.initialEnthusiasm, | ||
} | ||
props: ['name', 'initialEnthusiasm'], | ||
data() { | ||
return { | ||
enthusiasm: this.initialEnthusiasm, | ||
}; | ||
}, | ||
methods: { | ||
increment() { | ||
this.enthusiasm++; | ||
}, | ||
methods: { | ||
increment() { this.enthusiasm++; }, | ||
decrement() { | ||
if (this.enthusiasm > 1) { | ||
this.enthusiasm--; | ||
} | ||
}, | ||
} | ||
decrement() { | ||
if (this.enthusiasm > 1) { | ||
this.enthusiasm--; | ||
} | ||
}, | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters