Merge pull request #528 from netlify/fix-confusing-yaml-vs-yml-format-distinction

Fix confusing "yaml/yml" distinction in formats.js
This commit is contained in:
Shawn Erquhart 2017-08-17 13:09:47 -04:00 committed by GitHub
commit 5020d3d0e5

View File

@ -15,6 +15,7 @@ function formatByType(type) {
export function formatByExtension(extension) {
return {
yml: yamlFormatter,
yaml: yamlFormatter,
json: jsonFormatter,
md: FrontmatterFormatter,
markdown: FrontmatterFormatter,
@ -24,6 +25,7 @@ export function formatByExtension(extension) {
function formatByName(name) {
return {
yml: yamlFormatter,
yaml: yamlFormatter,
frontmatter: FrontmatterFormatter,
}[name] || FrontmatterFormatter;