Skip to content

Commit 12fbf26

Browse files
author
Guillaume Chau
committed
chore: fix eslint errors
1 parent d99c4de commit 12fbf26

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

shells/dev/target/EventChild.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@
1010
export default {
1111
methods: {
1212
emitEvent () {
13-
let data = {
13+
const data = {
1414
eventName: 'event'
1515
}
1616
this.$emit('event', data)
1717
},
1818
emitEvent1 () {
19-
let data = {
19+
const data = {
2020
eventName: 'event-1'
2121
}
2222
this.$emit('event-1', data)
2323
},
2424
emitEvent2 () {
25-
let complexData = {
25+
const complexData = {
2626
componentName: 'EventChild',
2727
string: 'Lorem ipsum',
2828
complex: {
2929
string: 'Lorem ipsum',
3030
object: {
3131
number: 23,
3232
boolean: true,
33-
array: [1,2,3,4,5]
33+
array: [1, 2, 3, 4, 5]
3434
}
3535
}
3636
}

shells/dev/target/EventChildCond.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
export default {
99
methods: {
1010
emitLogEvent () {
11-
let data = {
11+
const data = {
1212
componentName: 'EventChild1',
1313
string: 'Lorem ipsum',
1414
complex: {
1515
string: 'Lorem ipsum',
1616
object: {
1717
number: 23,
1818
boolean: true,
19-
array: [1,2,3,4,5]
19+
array: [1, 2, 3, 4, 5]
2020
}
2121
}
2222
}

shells/dev/target/Other.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// even if component has no 'computed' defined
1111
const computedPropMixin = {
1212
computed: {
13-
computedPropFromMixin() {
13+
computedPropFromMixin () {
1414
return null
1515
}
1616
}
@@ -19,11 +19,11 @@ const computedPropMixin = {
1919
export default {
2020
name: 'other-with-mine',
2121
props: ['id'],
22-
mixins: [ computedPropMixin ],
22+
mixins: [computedPropMixin],
2323
data () {
24-
let a = { c: function () {} }
24+
const a = { c: function () {} }
2525
a.a = a
26-
let b = []
26+
const b = []
2727
b[0] = b
2828
return {
2929
a: a,

shells/dev/target/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import MyClass from './MyClass.js'
99
import Router from './Router.vue'
1010
import router from './router'
1111

12-
let items = []
12+
const items = []
1313
for (var i = 0; i < 100; i++) {
1414
items.push({ id: i })
1515
}
1616

17-
let circular = {}
17+
const circular = {}
1818
circular.self = circular
1919

2020
new Vue({
@@ -23,7 +23,7 @@ new Vue({
2323
render (h) {
2424
return h('div', null, [
2525
h(Counter),
26-
h(Target, {props:{msg: 'hi', ins: new MyClass()}}),
26+
h(Target, { props: { msg: 'hi', ins: new MyClass() }}),
2727
h(Other),
2828
h(Events),
2929
h(NativeTypes),

0 commit comments

Comments
 (0)