From 41d17a2f01c06bfce6aa8960167408f6a43e11e6 Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Fri, 3 Feb 2023 20:43:48 +0100 Subject: [PATCH] Run linter --- rollup.config.mjs | 36 +++++++++++++++++------------------- src/DragContainer.vue | 2 +- src/Grid.vue | 8 ++++---- src/components.js | 2 +- src/index.js | 18 +++++++++--------- 5 files changed, 32 insertions(+), 34 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index c27dc06..c56cb04 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,21 +1,19 @@ -import vue from 'rollup-plugin-vue' -import peerDepsExternal from 'rollup-plugin-peer-deps-external' +import vue from "rollup-plugin-vue"; +import peerDepsExternal from "rollup-plugin-peer-deps-external"; export default [ - { - input: 'src/index.js', - output: [ - { - format: 'esm', - file: 'dist/vue-draggable-grid.mjs' - }, - { - format: 'cjs', - file: 'dist/vue-draggable-grid.js' - } - ], - plugins: [ - vue(), peerDepsExternal() - ] - } -] \ No newline at end of file + { + input: "src/index.js", + output: [ + { + format: "esm", + file: "dist/vue-draggable-grid.mjs", + }, + { + format: "cjs", + file: "dist/vue-draggable-grid.js", + }, + ], + plugins: [vue(), peerDepsExternal()], + }, +]; diff --git a/src/DragContainer.vue b/src/DragContainer.vue index b9cb3c2..6ee4051 100644 --- a/src/DragContainer.vue +++ b/src/DragContainer.vue @@ -23,4 +23,4 @@ export default { width: 100%; height: 100%; } -</style> \ No newline at end of file +</style> diff --git a/src/Grid.vue b/src/Grid.vue index 4f001d2..e1cb497 100644 --- a/src/Grid.vue +++ b/src/Grid.vue @@ -12,12 +12,12 @@ export default { props: { rows: { type: Number, - required: true + required: true, }, cols: { type: Number, - required: true - } + required: true, + }, }, methods: { handleDrop(event) { @@ -33,4 +33,4 @@ export default { background: darkgrey; border: grey dashed 2px; } -</style> \ No newline at end of file +</style> diff --git a/src/components.js b/src/components.js index 60479b9..e87f7cc 100644 --- a/src/components.js +++ b/src/components.js @@ -1,4 +1,4 @@ import DragContainer from "./DragContainer.vue"; import Grid from "./Grid.vue"; -export default {DragContainer, Grid}; +export default { DragContainer, Grid }; diff --git a/src/index.js b/src/index.js index 4db1c91..60b634f 100644 --- a/src/index.js +++ b/src/index.js @@ -1,14 +1,14 @@ import components from "./components"; const plugin = { - install(Vue) { - for (const prop in components) { - if (components.hasOwnProperty(prop)) { - const component = components[prop]; - Vue.component(component.name, component); - } - } + install(Vue) { + for (const prop in components) { + if (components.hasOwnProperty(prop)) { + const component = components[prop]; + Vue.component(component.name, component); + } } -} + }, +}; -export default plugin; \ No newline at end of file +export default plugin; -- GitLab