From e5451bdc1d5dae34c964864c76ba995584c5daaf Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Mon, 15 Feb 2021 12:15:56 +0100 Subject: Setup JavaScript linter Change-Id: Ife25ded53fa82550b86a2adbbb8f8d453c436800 Issue-ID: CIMAN-33 Signed-off-by: Bartek Grzybowski --- .coafile | 5 +++++ tox.ini | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.coafile b/.coafile index aaae2c1..eb36444 100644 --- a/.coafile +++ b/.coafile @@ -27,3 +27,8 @@ ignore = bears = MarkdownBear ignore = .tox/** + +[js] +bears = JSHintBear +ignore = + .tox/** diff --git a/tox.ini b/tox.ini index 9a019f4..20b645e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] minversion = 3.2.0 -envlist = json,yaml,py,md +envlist = json,yaml,py,md,js skipsdist = true -requires = pip >= 8 +requires = pip >= 20 [testenv] basepython = python3 @@ -42,3 +42,11 @@ commands_pre = /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.md' > /tmp/.coalist_md" commands = /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn md --files $( /tmp/.coalist_js" +commands = + /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn -m MAJOR js --files $(