-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add `overrides` option to `yml/plain-scalar` * Create chilled-emus-tap.md
- Loading branch information
Showing
14 changed files
with
131 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eslint-plugin-yml": minor | ||
--- | ||
|
||
feat: add `overrides` option to `yml/plain-scalar` |
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
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/_config.json
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 @@ | ||
{ | ||
"options": ["never", { "overrides": { "mappingKey": "always" } }] | ||
} |
22 changes: 22 additions & 0 deletions
22
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/map-test-errors.json
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,22 @@ | ||
[ | ||
{ | ||
"message": "Must use quoted style scalar.", | ||
"line": 2, | ||
"column": 6 | ||
}, | ||
{ | ||
"message": "Must use plain style scalar.", | ||
"line": 3, | ||
"column": 3 | ||
}, | ||
{ | ||
"message": "Must use quoted style scalar.", | ||
"line": 4, | ||
"column": 8 | ||
}, | ||
{ | ||
"message": "Must use plain style scalar.", | ||
"line": 5, | ||
"column": 5 | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/map-test-input.yml
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,4 @@ | ||
- a: b | ||
- "a": "b" | ||
- { a: b } | ||
- { "a": "b" } |
5 changes: 5 additions & 0 deletions
5
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/map-test-output.yml
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,5 @@ | ||
# plain-scalar/invalid/override-mapping-key/map-test-input.yml | ||
- a: "b" | ||
- a: "b" | ||
- { a: "b" } | ||
- { a: "b" } |
12 changes: 12 additions & 0 deletions
12
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/seq-test-errors.json
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,12 @@ | ||
[ | ||
{ | ||
"message": "Must use quoted style scalar.", | ||
"line": 2, | ||
"column": 3 | ||
}, | ||
{ | ||
"message": "Must use quoted style scalar.", | ||
"line": 4, | ||
"column": 4 | ||
} | ||
] |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/seq-test-input.yml
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 @@ | ||
- a | ||
- "b" | ||
- [a, "b"] |
4 changes: 4 additions & 0 deletions
4
tests/fixtures/rules/plain-scalar/invalid/override-mapping-key/seq-test-output.yml
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,4 @@ | ||
# plain-scalar/invalid/override-mapping-key/seq-test-input.yml | ||
- "a" | ||
- "b" | ||
- ["a", "b"] |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/plain-scalar/valid/override-mapping-key/_config.json
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 @@ | ||
{ | ||
"options": ["never", { "overrides": { "mappingKey": "always" } }] | ||
} |
2 changes: 2 additions & 0 deletions
2
tests/fixtures/rules/plain-scalar/valid/override-mapping-key/map-test-input.yml
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,2 @@ | ||
- a: "b" | ||
- { a: "b" } |
3 changes: 3 additions & 0 deletions
3
tests/fixtures/rules/plain-scalar/valid/override-mapping-key/seq-test-input.yml
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 @@ | ||
- "a" | ||
- "b" | ||
- ["a", "b"] |
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