Skip to content

Instantly share code, notes, and snippets.

@lucas-santoni
lucas-santoni / bad.js
Last active June 4, 2019 17:00
src/components/YamlParser/index.js
try {
const parsed = yaml.load(text);
this.setState({
parsed: JSON.stringify(parsed, null, 2),
});
} catch (e) {
// Forward the error in the output area
this.setState({
parsed: 'Error\n----\n' + e.message,
});
@lucas-santoni
lucas-santoni / .eslintrc
Created May 11, 2019 15:24
ESLint configuration, for TypeScript
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
// Version bumps are sometimes a bit slow so we can
// but this at false to avoid a warning at lint/build
"warnOnUnsupportedTypeScriptVersion": true
},
"settings": {
"import/resolver": {
@lucas-santoni
lucas-santoni / keybase.md
Last active February 24, 2021 22:46
This is my keybase GitHub proof.

Keybase proof

I hereby claim:

  • I am lucas-santoni on github.
  • I am geographer (https://keybase.io/geographer) on keybase.
  • I have a public key whose fingerprint is B11A ABD1 6AD3 4347 2A73 0992 28B9 C2C0 398F 3407

To claim this, I am signing this object: