From 170d7a61f720ece9dc4b347b19f5a8213f1d8984 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 20 Jun 2020 16:50:49 +0200 Subject: viewer: prettier formatting based on eslint-prettier plugin --- viewer/src/components/index.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'viewer/src/components/index.ts') diff --git a/viewer/src/components/index.ts b/viewer/src/components/index.ts index 043087d..f34eea1 100644 --- a/viewer/src/components/index.ts +++ b/viewer/src/components/index.ts @@ -17,18 +17,21 @@ -- along with this program. If not, see . */ -import Vue from "vue" +import Vue from "vue"; const requireComponent = require.context( "@/components", true, // Whether or not to look in subfolders // The regular expression used to match base component filenames /Ld[A-Z]\w+\.vue$/ -) +); requireComponent.keys().forEach(fileName => { - const componentConfig = requireComponent(fileName) - const componentName = fileName.split("/").pop()!.replace(/\.vue$/, ""); + const componentConfig = requireComponent(fileName); + const componentName = fileName + .split("/") + .pop()! + .replace(/\.vue$/, ""); // Register component globally Vue.component( @@ -37,5 +40,5 @@ requireComponent.keys().forEach(fileName => { // exist if the component was exported with `export default`, // otherwise fall back to module's root. componentConfig.default ?? componentConfig - ) -}) + ); +}); -- cgit v1.2.3