This file contains hidden or 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
| npx -p sast sast-parse ../../color-contrast-matrix/src/App.scss -f=yaml -WP |
This file contains hidden or 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
| // To see it in action https://xstate.js.org/viz/ | |
| // Since this snippet isn't functioning on its own, turn off some rules | |
| /* eslint-disable new-cap, @typescript-eslint/ban-ts-comment */ | |
| // @ts-nocheck | |
| Machine({ | |
| id: 'starting', | |
| initial: 'starting', | |
| states: { | |
| build: { |
This file contains hidden or 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
| { | |
| "version": "0.0.13", | |
| "browserslist": [ | |
| "last 2 chrome versions", | |
| "last 2 firefox versions", | |
| "last 1 safari versions" | |
| ], | |
| "dependencies": { | |
| "@fortawesome/fontawesome-svg-core": "^1.2.30", | |
| "@fortawesome/free-solid-svg-icons": "^5.14.0", |
This file contains hidden or 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
| <head> | |
| <script | |
| src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.production.min.js" | |
| type="application/javascript" | |
| ></script> | |
| <script | |
| src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.production.min.js" | |
| type="application/javascript" | |
| ></script> | |
| <script> |
This file contains hidden or 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
| import * as t from 'io-ts' | |
| import dayjs, { Dayjs } from 'dayjs' | |
| import { pipe } from 'fp-ts/lib/function' | |
| import { chain } from 'fp-ts/lib/Either' | |
| import customParseFormat from 'dayjs/plugin/customParseFormat' | |
| dayjs.extend(customParseFormat) | |
| export const isoDate = new t.Type<Dayjs, string, unknown>( | |
| 'isoDate', | |
| (u): u is Dayjs => dayjs.isDayjs(u), |
OlderNewer