Skip to content

Commit 660d309

Browse files
DEV: Update eslint-config-discourse, use prettier for hbs (discourse#77)
1 parent 1758ac0 commit 660d309

File tree

2 files changed

+1497
-450
lines changed

2 files changed

+1497
-450
lines changed

.github/workflows/plugin-linting.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,21 @@ jobs:
4141
shell: bash
4242
run: |
4343
yarn prettier -v
44-
if [ 0 -lt $(find assets admin/assets -type f \( -name "*.scss" -or -name "*.js" -or -name "*.es6" \) 2> /dev/null | wc -l) ]; then
45-
yarn prettier --list-different "assets/**/*.{scss,js,es6}"
44+
if [ 0 -lt $(find assets admin/assets -type f \( -name "*.scss" -or -name "*.js" -or -name "*.es6" -or -name "*.hbs" \) 2> /dev/null | wc -l) ]; then
45+
yarn prettier --list-different "assets/**/*.{scss,js,es6,hbs}"
4646
fi
4747
if [ 0 -lt $(find test -type f \( -name "*.js" -or -name "*.es6" \) 2> /dev/null | wc -l) ]; then
4848
yarn prettier --list-different "test/**/*.{js,es6}"
4949
fi
5050
5151
- name: Ember template lint
5252
if: ${{ !cancelled() }}
53-
run: yarn ember-template-lint --no-error-on-unmatched-pattern assets/javascripts admin/assets/javascripts
53+
run: yarn ember-template-lint --no-error-on-unmatched-pattern assets/javascripts
54+
55+
# Separated due to https://github.com/ember-template-lint/ember-template-lint/issues/2758
56+
- name: Ember template lint (admin)
57+
if: ${{ !cancelled() }}
58+
run: yarn ember-template-lint --no-error-on-unmatched-pattern admin/assets/javascripts
5459

5560
- name: Rubocop
5661
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)