mirror of
https://github.com/chenasraf/schemastore.git
synced 2026-05-17 17:58:02 +00:00
Enable prettier on YAML files (#2250)
This change will ensure that YAML files are using a consistent formatting and will reformat (normalize) them if needed. Related:
This commit is contained in:
1
.github/labeler.yml
vendored
1
.github/labeler.yml
vendored
@@ -48,7 +48,6 @@ eslintrcjson:
|
||||
gitignore:
|
||||
- ".gitignore"
|
||||
- ".gitattributes"
|
||||
|
||||
# Do not add "api", "schema" and "test" directories.
|
||||
# Those are the usual commit. No need for extra attention.
|
||||
# src/api/**/*
|
||||
|
||||
15
.github/workflows/lint.yml
vendored
15
.github/workflows/lint.yml
vendored
@@ -11,3 +11,18 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: Check for editorconfig violations
|
||||
uses: editorconfig-checker/action-editorconfig-checker@v1
|
||||
|
||||
# Enablement of https://pre-commit.ci is desirable as it also
|
||||
# enable auto-fixes for formatting violations. Still we still want to run
|
||||
# our own github action, just in case the external service becomes
|
||||
# unavailable.
|
||||
- uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.10"
|
||||
- name: Install pre-commit
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install --upgrade pre-commit
|
||||
- name: Run pre-commit
|
||||
run: |
|
||||
pre-commit run --all-files
|
||||
|
||||
6
.github/workflows/nodejs.yml
vendored
6
.github/workflows/nodejs.yml
vendored
@@ -4,7 +4,6 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
@@ -12,8 +11,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
node-version: "16"
|
||||
cache: "npm"
|
||||
cache-dependency-path: src/package-lock.json
|
||||
- name: npm ci
|
||||
run: |
|
||||
@@ -23,4 +22,3 @@ jobs:
|
||||
run: |
|
||||
cd src
|
||||
npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user