prettier-plugin-gherkin
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -0,0 +0,0 @@ export function isWithLocation(node) { |
@@ -336,3 +336,3 @@ import { Parser as GherkinParser, AstBuilder, GherkinClassicTokenMatcher, } from '@cucumber/gherkin'; | ||
else if (node instanceof TypedBackground) { | ||
// console.log(node.steps); | ||
// console.log(node); | ||
return [ | ||
@@ -345,3 +345,3 @@ printNodeHeading(node), | ||
// @ts-expect-error TODO path should be recognized as an AstPath<TypedBackground> | ||
path.map(print, 'steps'), | ||
join(printHardline(), path.map(print, 'steps')), | ||
]) | ||
@@ -348,0 +348,0 @@ : '', |
{ | ||
"name": "prettier-plugin-gherkin", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "This prettier plugin format your gherkin (`.feature` files) documents.", |
export default { | ||
trailingComma: 'es5', | ||
singleQuote: true, | ||
}; | ||
}; |
@@ -151,3 +151,3 @@ # prettier-plugin-gherkin | ||
![Gherkin AST schema](https://github.com/cucumber/gherkin/blob/main/docs/ast.png?raw=true) | ||
![Gherkin AST schema](https://github.com/cucumber/gherkin?tab=readme-ov-file#abstract-syntax-tree-ast) | ||
@@ -154,0 +154,0 @@ ### Useful resources on Gherkin language |
@@ -535,3 +535,3 @@ import { | ||
} else if (node instanceof TypedBackground) { | ||
// console.log(node.steps); | ||
// console.log(node); | ||
return [ | ||
@@ -544,3 +544,3 @@ printNodeHeading(node), | ||
// @ts-expect-error TODO path should be recognized as an AstPath<TypedBackground> | ||
path.map(print, 'steps'), | ||
join(printHardline(), path.map(print, 'steps')), | ||
]) | ||
@@ -547,0 +547,0 @@ : '', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
404247
72
2139