Skip to content

Commit 21a5a4d

Browse files
authored
style: apply lint fixes (#63)
1 parent ccce7ac commit 21a5a4d

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
22
root: true,
33
env: {
4-
node: true
4+
node: true,
55
},
66
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
77
parserOptions: {
8-
parser: 'babel-eslint'
8+
parser: 'babel-eslint',
99
},
1010
rules: {
1111
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
12-
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
13-
}
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
13+
},
1414
}

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['@vue/cli-plugin-babel/preset']
2+
presets: ['@vue/cli-plugin-babel/preset'],
33
}

src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import 'selectize/dist/css/selectize.default.css'
1212
export default {
1313
name: 'app',
1414
data: () => ({
15-
ex1Options: ['awesome', 'neat']
15+
ex1Options: ['awesome', 'neat'],
1616
}),
1717
components: {
18-
VSelectize
19-
}
18+
VSelectize,
19+
},
2020
}
2121
</script>

src/components/VSelectize.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<div
5959
v-if="
6060
!filteredOptions.length &&
61-
searchText.length &&
62-
typeof createItem === 'function'
61+
searchText.length &&
62+
typeof createItem === 'function'
6363
"
6464
class="option create active"
6565
@click="selectActiveOption"
@@ -143,18 +143,18 @@ export default {
143143
* Set to false to disable new option creation
144144
*/
145145
createItem: {
146-
default: function(text) {
146+
default: function (text) {
147147
return Promise.resolve(text)
148148
},
149-
type: [Function, Boolean]
149+
type: [Function, Boolean],
150150
},
151151
152152
searchFn: { default: false, type: [Boolean, Function] },
153153
154154
/**
155155
* Selectize theme
156156
*/
157-
theme: { default: '', type: String }
157+
theme: { default: '', type: String },
158158
},
159159
160160
data: () => ({
@@ -163,7 +163,7 @@ export default {
163163
searchText: '',
164164
activeOptionKey: '',
165165
selected: [],
166-
busy: false
166+
busy: false,
167167
}),
168168
169169
mounted() {
@@ -211,7 +211,7 @@ export default {
211211
distance: 100,
212212
maxPatternLength: 32,
213213
minMatchCharLength: 1,
214-
keys: this.keys
214+
keys: this.keys,
215215
})
216216
const options =
217217
this.searchText.length && !this.disableSearch
@@ -327,7 +327,7 @@ export default {
327327
: 'none'
328328
style['width'] = `100%`
329329
return style
330-
}
330+
},
331331
},
332332
333333
methods: {
@@ -557,18 +557,18 @@ export default {
557557
},
558558
setNotBusy() {
559559
this.busy = false
560-
}
560+
},
561561
},
562562
563563
watch: {
564564
value: {
565565
handler(value) {
566566
this.setSelectedValue(value)
567567
},
568-
deep: true
569-
}
568+
deep: true,
569+
},
570570
},
571-
directives: { ClickOutside }
571+
directives: { ClickOutside },
572572
}
573573
</script>
574574

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import App from './App.vue'
44
Vue.config.productionTip = false
55

66
new Vue({
7-
render: (h) => h(App)
7+
render: (h) => h(App),
88
}).$mount('#app')

0 commit comments

Comments
 (0)