Set trailingComma default value to es5 (#6963)
* Set `trailingComma` default value to `es5` * Update `options` documentation * Update tests * style * fix js code style * change options order * update tests_integration snap * disable es5 for __ng_interpolation * fix angular tests * fix scss test * fix `css_trailing_comma` snap * fix css_scss snapshot
This commit is contained in:
1 parent
eac6fba2c3
commit
791996df7b
205 files changed
+2933
-2932
No files matched your search
@@ -4,6 +4,7 @@ exports[`attr-name.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div someDirective itemType="x"></div>
|
||||
@@ -18,7 +19,6 @@ exports[`attr-name.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div someDirective itemType="x"></div>
|
||||
@@ -80,6 +80,7 @@ exports[`attributes.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div
|
||||
@@ -351,7 +352,6 @@ exports[`attributes.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div
|
||||
@@ -1770,6 +1770,7 @@ exports[`first-lf.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<textarea>{{ generatedDiscountCodes }}</textarea>
|
||||
@@ -1862,7 +1863,6 @@ exports[`first-lf.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<textarea>{{ generatedDiscountCodes }}</textarea>
|
||||
@@ -2313,6 +2313,7 @@ exports[`ignore-attribute.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div
|
||||
@@ -2371,7 +2372,6 @@ exports[`ignore-attribute.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div
|
||||
@@ -2630,6 +2630,7 @@ exports[`interpolation.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div>{{ a | b : c }}</div>
|
||||
@@ -2796,7 +2797,6 @@ exports[`interpolation.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<div>{{ a | b : c }}</div>
|
||||
@@ -3674,6 +3674,7 @@ exports[`real-world.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<!-- copied from: https://stackblitz.com/angular/ymdjlgmlavo -->
|
||||
@@ -5202,7 +5203,6 @@ exports[`real-world.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<!-- copied from: https://stackblitz.com/angular/ymdjlgmlavo -->
|
||||
@@ -13330,6 +13330,7 @@ exports[`tag-name.component.html 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "none"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<Table></Table>
|
||||
@@ -13344,7 +13345,6 @@ exports[`tag-name.component.html 2`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["angular"]
|
||||
printWidth: 80
|
||||
trailingComma: "es5"
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
<Table></Table>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
run_spec(__dirname, ["angular"], { trailingComma: "none" });
|
||||
run_spec(__dirname, ["angular"]);
|
||||
run_spec(__dirname, ["angular"], { trailingComma: "es5" });
|
||||
run_spec(__dirname, ["angular"], { printWidth: 1 });
|
||||
run_spec(__dirname, ["angular"], { htmlWhitespaceSensitivity: "ignore" });
|
||||
run_spec(__dirname, ["angular"], { bracketSpacing: false });
|
||||
Reference in new issue
Block a user