- do this:
yarn add prettier --dev
yarn add --dev prettier eslint-plugin-prettier
yarn add --dev eslint-config-prettier
// .eslintrc
{
"extends": [
#!/bin/bash | |
# NB: First install nscd with sudo apt-get install nscd | |
# run this command to flush dns cache: | |
sudo /etc/init.d/dns-clean restart | |
# or use: | |
sudo /etc/init.d/networking force-reload | |
# Flush nscd dns cache: | |
sudo /etc/init.d/nscd restart |
#!/usr/bin/env node | |
const program = require('commander') // eslint-disable-line | |
program | |
.version('0.1.0') | |
.option('-r, --rebuild', 'Start the containers and rebuild the images') | |
.option('-d, --down', 'Stop the containers') | |
.option('-l, --logs', 'Log the output of all containers') | |
.option('-f, --follow', 'Log the output of all containers in watch mode') | |
.parse(process.argv) |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSXTransformer=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){"use strict";var ReactTools=_dereq_("../main");var inlineSourceMap=_dereq_("./inline-source-map");var headEl;var dummyAnchor;var inlineScriptCount=0;var supportsAccessors=Obj |
yarn add prettier --dev
yarn add --dev prettier eslint-plugin-prettier
yarn add --dev eslint-config-prettier
// .eslintrc
{
"extends": [
React.createClass({ | |
getInitialState () { | |
return { | |
hideTodos: true | |
} | |
}, | |
render () { | |
return ( | |
<div> |
function async(genFunc) { | |
const genObj = genFunc(); | |
const firstNext = genObj.next() | |
log(firstNext) | |
step(firstNext); | |
function step({value,done}) { | |
if (!done) { | |
// A Promise was yielded | |
value |
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true, | |
"jest": true | |
}, | |
parserOptions: { | |
ecmaVersion: 6, |