Skip to content

Instantly share code, notes, and snippets.

View PetterRuud's full-sized avatar
🥓
Focusing

Petter PetterRuud

🥓
Focusing
View GitHub Profile
@PetterRuud
PetterRuud / snippets.css
Created December 29, 2021 17:24
CSS snippets
:checked { /* if */ }
:not(:checked) { /* else */ }
[data-attr="true"] { /* if */ }
[data-attr="false"] { /* elseif */ }
:not([data-attr]) { /* else */}
import * as fs from "fs";
import * as path from "path";
import * as ts from "typescript";
import type { API, FileInfo, Options, Transform } from "jscodeshift";
// List of barrel files to process; in an ideal world this shouldn't be
// hardcoded, but it's a good starting point.
const BARREL_IMPORTS = [