Skip to content

Commit

Permalink
fix: Dofigen JSON Schema (#4312)
Browse files Browse the repository at this point in the history
Co-authored-by: Edwin Kofler <[email protected]>
  • Loading branch information
taorepoara and hyperupcall authored Dec 29, 2024
1 parent f99dbaf commit 8040e58
Show file tree
Hide file tree
Showing 4 changed files with 423 additions and 404 deletions.
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,16 @@ M src/test/prettierrc/.prettierrc.yml
M src/test/prettierrc/prettierrc.json
```

_Do not_ add those two files; pre-commit.ci seems to have issue with them. (Undo modifications to those files by unstaging them and running `git restore -- 'src/test/prettierrc/*'`)
_Do not_ add those two files; pre-commit.ci seems to have issue with them. (Undo modifications to those files by running `git restore -- 'src/test/prettierrc/*'`)

To run Prettier on scpecific files, run:

```console
# Run on a schema file
./node_modules/.bin/prettier --config .prettierrc.cjs --ignore-path .gitignore --write src/schemas/json/<schemaName.json>
# Run on test files
./node_modules/.bin/prettier --config .prettierrc.cjs --ignore-path .gitignore --write src/test/<schemaName>/
```

## How-to

Expand Down
1 change: 1 addition & 0 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"devinit.schema-4.0.json",
"devinit.schema-5.0.json",
"devinit.schema-6.0.json",
"dofigen.json",
"dotnetcli.host.json",
"drone.json",
"drupal-recipe.json",
Expand Down
Loading

0 comments on commit 8040e58

Please sign in to comment.