Skip to content

Commit bf92f45

Browse files
author
Pooya Parsa
committed
ESLint
1 parent 8a02e85 commit bf92f45

File tree

9 files changed

+16
-22
lines changed

9 files changed

+16
-22
lines changed

components/alert.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
},
2424
created() {
2525
if (this.state) {
26-
console.warn("<b-alrt> state property is deprecated, please use variant instead.")
26+
console.warn('<b-alrt> state property is deprecated, please use variant instead.');
2727
}
2828
},
2929
computed: {
3030
classObject() {
3131
return ['alert', this.alertVariant, this.dismissible ? 'alert-dismissible' : ''];
3232
},
3333
alertVariant() {
34-
let variant = this.state || this.variant || 'info';
34+
const variant = this.state || this.variant || 'info';
3535
return `alert-${variant}`;
3636
},
3737
localShow() {

components/popover.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
type: [Boolean, String, Array],
4040
default: ['click', 'focus'],
4141
validator(value) {
42-
4342
// Allow falsy value to disable all event triggers (equivalent to 'manual') in Bootstrap 4
4443
if (value === false || value === '') {
4544
return true;

components/tooltip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
props: {
1515
placement: {
1616
type: String,
17-
default: 'top',
17+
default: 'top'
1818
},
1919
text: {
2020
type: String,

docs/components/codemirror.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</template>
44

55
<script>
6-
var CodeMirror;
6+
let CodeMirror;
77
88
if (typeof window !== 'undefined') {
99
CodeMirror = require('codemirror');
@@ -39,7 +39,7 @@
3939
lineNumbers: this.lineNumbers,
4040
autoCloseTags: true,
4141
autoCloseBrackets: true,
42-
readOnly: this.readOnly,
42+
readOnly: this.readOnly
4343
});
4444
4545
this.CM.on('change', () => {

docs/components/componentdoc.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77
<code v-code class="html">
88
<{{componentName}}
9-
<template v-for="prop in props_items"> {{isConst(prop.default) ? '' : ':'}}{{prop.prop}}="{{prop.default}}"<br></template>
10-
<template v-for="event in events"> @{{event.event}}=""<br></template>></code>
9+
10+
<template v-for="prop in props_items">
11+
{{isConst(prop.default) ? '' : ':'}}{{prop.prop}}="{{prop.default}}"<br></template>
12+
<template v-for="event in events"> @{{event.event}}=""<br></template>
13+
></code>
1114

1215
<template v-if="props_items && props_items.length > 0">
1316
<h4>Properties</h4>
@@ -103,7 +106,7 @@
103106
let default_val = p.default;
104107
105108
if (default_val instanceof Function && !Array.isArray(default_val)) {
106-
default_val = default_val();
109+
default_val = default_val();
107110
}
108111
109112
if (typeof default_val !== 'string') {
@@ -138,10 +141,7 @@
138141
methods: {
139142
isConst(str) {
140143
str = str || '';
141-
return ['true', 'false', '', null, '[]'].indexOf(str) === -1
142-
&& str.indexOf('[') === -1
143-
&& !/[0-9]+/.test(str)
144-
;
144+
return ['true', 'false', '', null, '[]'].indexOf(str) === -1 && str.indexOf('[') === -1 && !/[0-9]+/.test(str);
145145
}
146146
}
147147
};

docs/data/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
{title: 'Pagination'},
3232
{title: 'Popover'},
3333
{title: 'Progress'},
34-
{title: 'Tables'},
34+
{title: 'Tables'}
3535
]
3636
}
3737
]

docs/pages/index.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,11 @@
8888
import layout from '../layouts/site.vue';
8989
import site from '../data/site';
9090
91-
9291
export default {
9392
components: {layout},
9493
computed: {
9594
site() {
9695
return site;
97-
},
98-
install_methods() {
99-
return install_methods;
10096
}
10197
}
10298
};

docs/pages/play.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
}
134134
}`;
135135
136-
137136
export default {
138137
components: {layout},
139138
data() {
@@ -197,7 +196,7 @@
197196
js_fiddle() {
198197
// Inject options
199198
let js = this.js.trim();
200-
js = `{el:'#app` + '\',\r\n' + js.substring(1);
199+
js = `{el:'#app',\r\n` + js.substring(1);
201200
return `
202201
window.onload = function () {
203202
new Vue(${js})
@@ -209,7 +208,7 @@ window.onload = function () {
209208
<div id='app'>
210209
${this.html}
211210
</div>`.trim();
212-
},
211+
}
213212
},
214213
methods: {
215214
log(tag, text) {

docs/plugins/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Vue from 'vue';
22
import CodeMirror from '../components/codemirror.vue';
33

4-
Vue.component('codemirror', CodeMirror);
4+
Vue.component('codemirror', CodeMirror);

0 commit comments

Comments
 (0)