-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable prettier for scenarios (#212)
- Loading branch information
Showing
8 changed files
with
133 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-toml"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"devDependencies": { | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-toml": "^2.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,33 @@ | ||
{ | ||
"name": "example", | ||
"description": "This is an example scenario, in which the user depends on a single package `a` which requires `b`.", | ||
"expected": { | ||
"satisfiable": true, | ||
"packages": { | ||
"a": "1.0.0", | ||
"b": "2.0.0" | ||
}, | ||
"explanation": "The latest valid version of `b` should be installed. `b==3.0.0` is not valid because it requires `c` which does not exist." | ||
"name": "example", | ||
"description": "This is an example scenario, in which the user depends on a single package `a` which requires `b`.", | ||
"expected": { | ||
"satisfiable": true, | ||
"packages": { | ||
"a": "1.0.0", | ||
"b": "2.0.0" | ||
}, | ||
"root": { | ||
"requires": [ | ||
"a" | ||
] | ||
"explanation": "The latest valid version of `b` should be installed. `b==3.0.0` is not valid because it requires `c` which does not exist." | ||
}, | ||
"root": { | ||
"requires": ["a"] | ||
}, | ||
"packages": { | ||
"a": { | ||
"versions": { | ||
"1.0.0": { | ||
"requires": ["b>1.0.0"] | ||
} | ||
} | ||
}, | ||
"packages": { | ||
"a": { | ||
"versions": { | ||
"1.0.0": { | ||
"requires": [ | ||
"b>1.0.0" | ||
] | ||
} | ||
} | ||
}, | ||
"b": { | ||
"versions": { | ||
"1.0.0": {}, | ||
"2.0.0": {}, | ||
"3.0.0": { | ||
"requires": [ | ||
"c" | ||
] | ||
} | ||
} | ||
"b": { | ||
"versions": { | ||
"1.0.0": {}, | ||
"2.0.0": {}, | ||
"3.0.0": { | ||
"requires": ["c"] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
- name: example-yaml | ||
description: This is an example scenario written in YAML, in which the user depends on a single | ||
package `a` which requires `b`. | ||
description: | ||
This is an example scenario written in YAML, in which the user depends on a | ||
single package `a` which requires `b`. | ||
expected: | ||
satisfiable: true | ||
packages: | ||
a: 1.0.0 | ||
b: 2.0.0 | ||
explanation: The latest valid version of `b` should be installed. `b==3.0.0` is | ||
not valid because it requires `c` which does not exist. | ||
explanation: | ||
The latest valid version of `b` should be installed. `b==3.0.0` is not | ||
valid because it requires `c` which does not exist. | ||
root: | ||
requires: | ||
- a | ||
- a | ||
packages: | ||
a: | ||
versions: | ||
1.0.0: | ||
requires: | ||
- b>1.0.0 | ||
- b>1.0.0 | ||
b: | ||
versions: | ||
1.0.0: {} | ||
2.0.0: {} | ||
3.0.0: | ||
requires: | ||
- c | ||
- c |