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 /.gitlab-ci.yml
parentc2b85f71ccd8bd095517e8f1eed48eeea87ecb8a (diff)
Add eslint to the codebase
Added/configured eslint
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6fbe7db..ee05b131 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -126,6 +126,21 @@ jest:
<<: *except_pipelines
#
+# Lint JavaScript
+#
+js_lint:
+ stage: test
+ script:
+ - yarn install --cache-folder .yarn-cache
+ - yarn eslint
+ cache:
+ key: "test-$CI_COMMIT_REF_NAME"
+ paths:
+ - vendor/ruby
+ - .yarn-cache/
+ <<: *except_pipelines
+
+#
# Check for broken internal links
#
test_internal_links_and_anchors: