Skip to content

Instantly share code, notes, and snippets.

View burkenyo's full-sized avatar

Sammo Gabay burkenyo

View GitHub Profile
@burkenyo
burkenyo / tsconfig.json
Created March 7, 2023 00:25
A good starter tsconfig for Node with opinionated type handling. Contains all the options generated by tsc --init. Unused options are commented out.
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
"incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
@burkenyo
burkenyo / find-longlines.ps1
Created July 19, 2022 03:33
(PowerShell Core) find long lines within a git commit range
#!/usr/bin/env pwsh
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, Position=0)]
$StartRef,
[Parameter(Mandatory=$true, Position=1)]
$EndRef,