1
0
Fork 0
forked from fedi/mastodon

Correct prettier calls for YML/JSON (#21832)

* Fix fomat-check writing files

* Fix unformatted YML/JSON

* Add format-check call to prevent regressions
This commit is contained in:
Nick Schonning 2022-12-02 22:05:35 -05:00 committed by GitHub
parent 2413e5f3f0
commit f77ed3a6b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 19 deletions

View file

@ -57,6 +57,8 @@ jobs:
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check prettier formatting
run: yarn format-check
- name: Set-up RuboCop Problem Mathcher
uses: r7kamura/rubocop-problem-matchers-action@v1
- name: Set-up Stylelint Problem Matcher

View file

@ -6,16 +6,16 @@ name: Test chart
on:
pull_request:
paths:
- "chart/**"
- "!**.md"
- ".github/workflows/test-chart.yml"
- 'chart/**'
- '!**.md'
- '.github/workflows/test-chart.yml'
push:
paths:
- "chart/**"
- "!**.md"
- ".github/workflows/test-chart.yml"
- 'chart/**'
- '!**.md'
- '.github/workflows/test-chart.yml'
branches-ignore:
- "dependabot/**"
- 'dependabot/**'
workflow_dispatch:
permissions:
@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
python-version: '3.x'
- name: Install dependencies (yamllint)
run: pip install yamllint

View file

@ -13,10 +13,5 @@
"strict": false,
"target": "ES2022"
},
"exclude": [
"**/build/*",
"**/node_modules/*",
"**/public/*",
"**/vendor/*"
]
"exclude": ["**/build/*", "**/node_modules/*", "**/public/*", "**/vendor/*"]
}

View file

@ -15,8 +15,8 @@
"test:lint:js": "eslint --ext=js . --cache",
"test:lint:sass": "stylelint '**/*.scss'",
"test:jest": "cross-env NODE_ENV=test jest",
"format": "prettier --write '**/*.{json,yml}'",
"format-check": "prettier --write '**/*.{json,yml}'"
"format": "prettier --write \"**/*.{json,yml}\"",
"format-check": "prettier --check \"**/*.{json,yml}\""
},
"repository": {
"type": "git",