all JSX components need to be able to import from a framework to get access to e.g. React.createElement
:
import React from 'react'
export default () => <h1>It works</h1>
// export default () => React.createElement('h1', {}, 'It works')
{ | |
"data": { | |
"items": [ | |
{ | |
"symbolInput": "GBPEUR", | |
"basic": { | |
"symbol": "GBPEUR", | |
"name": "UK Pound Sterling/Euro FX Cross Rate", | |
"exchange": "SOURCE IS A THOMSON REUTERS CONTRIBUTOR", | |
"exhangeCode": "RCT", |
#!/bin/bash | |
DESTINATION_BUCKET="hashed-assets-eu" | |
DESTINATION_FOLDER="page-kit" | |
upload_file() { | |
local FILE="$1" | |
local ENCODING | |
local TYPE | |
; |
operation | fixable state | what to do |
---|---|---|
add-to-project | card already exists | use the existing card in the state |
clone | clone already exists | fetch and reset to origin/master (it's already kind of) |
create-project | n/a | |
file | n/a | |
filter-repo-name | n/a | |
get-project | n/a |
// inlined from https://github.com/chalk/ansi-regex/blob/master/index.js | |
const regex = /[\u001B\u009B][[\]()#;?]*(?:(?:(?:[a-zA-Z\d]*(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)|(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-ntqry=><~]))/g | |
module.exports = string => typeof string === 'string' ? string.replace(regex, '') : string |
[ | |
[ "steel", "normal" ], | |
[ "ice", "poison" ], | |
[ "rock", "normal" ], | |
[ "ground", "fighting" ], | |
[ "fairy", "poison" ], | |
[ "dragon", "bug" ], | |
[ "bug", "normal" ], | |
[ "fairy", "dark" ], | |
[ "ice", "bug" ], |
[ | |
[ "ghost", "steel" ], | |
[ "dark", "bug" ], | |
[ "flying", "water" ], | |
[ "normal", "steel" ], | |
[ "fire", "ice" ], | |
[ "fire", "bug" ], | |
[ "poison", "ice" ], | |
[ "bug", "ice" ], | |
[ "dragon", "normal" ], |
#!/usr/bin/env node | |
const loadPackageJson = require('@financial-times/package-json') | |
const { execSync } = require('child_process') | |
const packageJson = loadPackageJson({ filepath: './package.json' }) | |
const coffee = process.argv[2] === 'coffee' | |
packageJson.requireDependency({ pkg: 'husky', version: '^2.3.0', field: 'devDependencies' }) |