Skip to content

Instantly share code, notes, and snippets.

@PadreSVK
Last active March 16, 2021 08:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save PadreSVK/bece8810b6f32befef7e50bb2c5b4c09 to your computer and use it in GitHub Desktop.
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