Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Erasmus <jerasmus@gitlab.com>2019-12-09 11:51:00 +0300
committerKushal Pandya <kushalspandya@gmail.com>2019-12-09 11:51:00 +0300
commit79d1acf4bd17dc5b08d1089de76713ec355d7876 (patch)
tree3ff5173e171896b93b291890e5d2b9439ad3cd70 /rollup.config.js
parentc2b85f71ccd8bd095517e8f1eed48eeea87ecb8a (diff)
Add eslint to the codebase
Added/configured eslint
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rollup.config.js b/rollup.config.js
index ef77c955..aa03d89e 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -4,6 +4,10 @@ const vue = require('rollup-plugin-vue');
const babel = require('rollup-plugin-babel');
const glob = require('glob');
+function mapDirectory(file) {
+ return file.replace('content/', 'public/');
+}
+
module.exports = glob.sync(
'content/frontend/bundles/*.js',
).map(file => ({
@@ -24,7 +28,3 @@ module.exports = glob.sync(
}),
],
}));
-
-function mapDirectory(file) {
- return file.replace('content/', 'public/');
-}