This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git diff --cached --name-only | egrep ".*\.tsx?" | xargs -r tslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestVirtualPathProvider : VirtualPathProvider | |
{ | |
private string NormalizeVirtualPath(string virtualPath, bool isDirectory = false) | |
{ | |
if (!virtualPath.StartsWith("~")) | |
{ | |
virtualPath = "~" + virtualPath; | |
} | |
virtualPath = virtualPath.Replace('\\', '/'); | |
// Normalize directories to always have an ending "/" |