DEV: Update eslint-config-discourse, use prettier for hbs (#49)

This commit is contained in:
David Taylor 2023-01-04 12:41:09 +00:00 committed by GitHub
parent ed6634f6a4
commit 165cfa13f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1444 additions and 402 deletions

View File

@ -35,7 +35,7 @@ jobs:
shell: bash
run: |
yarn prettier -v
files=$(find javascripts desktop mobile common scss -type f \( -name "*.scss" -or -name "*.js" -or -name "*.es6" \) 2> /dev/null) || true
files=$(find javascripts desktop mobile common scss -type f \( -name "*.scss" -or -name "*.js" -or -name "*.es6" -or -name "*.hbs" \) 2> /dev/null) || true
if [ -n "$files" ]; then
yarn prettier --list-different $files
fi

View File

@ -28,7 +28,7 @@ jobs:
shell: bash
run: |
if [ 0 -lt $(find tmp/component/test -type f \( -name "*.js" -or -name "*.es6" \) 2> /dev/null | wc -l) ]; then
echo "::set-output name=tests_exist::true"
echo "tests_exist=true" >> $GITHUB_OUTPUT
fi
test:
@ -94,7 +94,7 @@ jobs:
- name: Get yarn cache directory
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Yarn cache
uses: actions/cache@v3

1834
yarn.lock

File diff suppressed because it is too large Load Diff