Skip to content

Instantly share code, notes, and snippets.

@phucpnt
Last active September 12, 2016 16:24
Show Gist options
  • Save phucpnt/96220977a276a404e8a38ca9050973e2 to your computer and use it in GitHub Desktop.
Save phucpnt/96220977a276a404e8a38ca9050973e2 to your computer and use it in GitHub Desktop.
Es6 (babel) boilerplate with eslint airbnb base
{
"presets": [
"es2015",
"react"
]
}
{
"extends": "airbnb-base",
"env": {
"mocha": true
},
"rules": {
"indent": ["error", 2],
"max-len": ["error", 120, 2, {"ignoreUrls": true}]
}
}
.idea
node_modules
dist
npm-debug.log
.vagrant

Your awesome readme

{
"name": "your-awesome-proj",
"version": "0.0.1",
"description": "your awesome description",
"main": "index.js",
"scripts": {
"build": "rimraf lib/* && npm ",
"build:admin": "babel src --out-dir lib/ --ignore __test__",
},
"author": "Phuc PNT. <mail@phucpnt.com>",
"license": "BSD-2",
"devDependencies": {
"babel-cli": "^6.11.4",
"babel-preset-es2015": "^6.13.2",
"eslint": "^3.2.2",
"eslint-config-airbnb-base": "^4.0.0",
"eslint-plugin-import": "^1.10.2",
},
"dependencies": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment