From 531470932edbb70f0ea7e6f7bc239c9cdec1c9cd Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Fri, 19 Jul 2019 12:07:22 +0200 Subject: [PATCH] Added an html linter. It doesn't produce any errors. Either the code is flawless, or the linting doesn't actually happen. --- docker-compose.yml | 6 +++++- linting/js/Dockerfile | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d2e36a6..40240bf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,5 +8,9 @@ services: volumes: - ./themes/patek/assets/js:/src:ro - ./linting/js/eslintrc.yml:/eslintrc.yml - + xo-html-lint: + image: patek-devs/eslint-xo + command: \*.html --plugin=html --extension=html + volumes: + - ./:/src:ro diff --git a/linting/js/Dockerfile b/linting/js/Dockerfile index 1c2e7b7..7ee0de1 100644 --- a/linting/js/Dockerfile +++ b/linting/js/Dockerfile @@ -12,6 +12,8 @@ RUN npm install npm@5.3 && \ RUN npm install -g xo@0.24.0 +RUN npm install -g eslint-plugin-html@6.0.0 + # Cleanup RUN rm -fr /root/.npm /node_modules