Skip to content

Instantly share code, notes, and snippets.

View leandro-manifesto's full-sized avatar

Leandro Aguiar leandro-manifesto

  • Manifesto Games
View GitHub Profile
@leandro-manifesto
leandro-manifesto / datetime.ts
Last active August 7, 2020 23:44
Custom type converter with @marcj/marshal
import { DateTime } from 'luxon';
import { PropertyCompilerSchema } from '@marcj/marshal';
import { CustomConverterCompiler, registerCustomConverterCompiler } from './register';
class DateTimeConverter implements CustomConverterCompiler {
public check(accessor: string, schema: PropertyCompilerSchema, utils: {
reserveVariable: () => string;
raise: (code: string, message: string) => string;
@leandro-manifesto
leandro-manifesto / .eslintrc.yaml
Last active July 1, 2020 21:37
"pnpm run --silent lint" doesn't work on 5.2.6
env:
browser: true
rules:
no-console:
- 'error'