Skip to content

Instantly share code, notes, and snippets.

View cheton's full-sized avatar
🎯

Cheton Wu cheton

🎯
View GitHub Profile
@cheton
cheton / index.js
Last active March 21, 2016 16:42
Flat Tree
'use strict';
import _ from 'lodash';
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
const isArray = Array.isArray;
const extend = (target, ...sources) => {
sources.forEach((source) => {
for (let key in source) {
@cheton
cheton / .babalrc
Created March 17, 2016 07:08
Webpack Configuration
{
"presets": ["es2015", "stage-0", "react"],
"env": {
"development": {
"presets": ["react-hmre"]
}
}
}
@cheton
cheton / .stylinrc
Created March 8, 2016 07:31
Stylus Linter
//
// https://github.com/rossPatton/stylint
//
{
"blocks": false,
"brackets": "always",
"colons": "always",
"colors": false,
"commaSpace": "always",
"commentSpace": false,
@cheton
cheton / .eslintrc
Last active July 21, 2016 07:25
ESLint
{
"plugins": [
"react"
],
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"es6": true
},