From d2c1a30410f26f1ef2e4e8cae7c4f6f60f6214e3 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Wed, 29 Jun 2022 09:55:21 +0200 Subject: [PATCH] Update linting workflow --- .github/workflows/plugin-linting.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/plugin-linting.yml b/.github/workflows/plugin-linting.yml index a915ea7f..a7cbe811 100644 --- a/.github/workflows/plugin-linting.yml +++ b/.github/workflows/plugin-linting.yml @@ -37,20 +37,17 @@ jobs: run: yarn install --dev - name: ESLint - run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern {test,assets}/javascripts + run: yarn eslint --ext .js,.js.es6 --no-error-on-unmatched-pattern {test,assets}/javascripts/{discourse,wizard} - name: Prettier run: | yarn prettier -v if [ -d "assets" ]; then \ - yarn prettier --list-different "assets/**/*.{scss,js,es6}" ; \ - fi - if [ -d "test" ]; then \ - yarn prettier --list-different "test/**/*.{js,es6}" ; \ + yarn prettier --list-different "assets/javascripts/{discourse,wizard}/**/*.{scss,js,es6}" ; \ fi - name: Ember template lint run: yarn ember-template-lint assets/javascripts - name: Rubocop - run: bundle exec rubocop . \ No newline at end of file + run: bundle exec rubocop .