Fix The "components" property should be above the "template" property [Error/vue/order-in-components] ESLint error

FYI: https://vuejs.org/v2/style-guide/#Component-instance-options-order-recommended
This commit is contained in:
samogot 2018-01-27 16:56:54 +02:00
parent 46d67ae88a
commit e41b289eb5
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
* https://github.com/JsSucks - https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* LICENSE file in the root directory of this source tree.
*/
const $ = require('jquery');
@ -32,8 +32,8 @@ class UI {
this.vueInstance = new Vue({
el: '#bd-settings',
template: '<BdSettingsWrapper/>',
components: { BdSettingsWrapper }
components: { BdSettingsWrapper },
template: '<BdSettingsWrapper/>'
});
}

View File

@ -10,8 +10,8 @@ window.cmCommands = VueCodemirror.CodeMirror.commands;
new Vue({
el: '#root',
template: '<Editor/>',
components: { Editor }
components: { Editor },
template: '<Editor/>'
});
const style = document.createElement('style');