Skip to content

Instantly share code, notes, and snippets.

@PadreSVK
Last active Mar 16, 2021
Embed
What would you like to do?
Lint xml from cmd via prettier
[*]
end_of_line = crlf
charset = utf-8-bom
[*.{appxmanifest,axml,build,config,csproj,dbml,discomap,dtd,json,jsproj,lsproj,njsproj,nuspec,proj,props,resjson,resw,resx,StyleCop,targets,tasks,vbproj,xml,xsd}]
indent_style=space
indent_size=2
tab_width=2
max_line_length=200
{
"scripts": {
"lint:config": "prettier --write '**/*.config'"
},
"author": "padreSVK",
"dependencies": {
"@prettier/plugin-xml": "^0.13.1",
"prettier": "^2.2.1"
},
"prettier": {
"xmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": [
"*.config"
],
"options": {
"parser": "xml"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment