Skip to content

Commit

Permalink
Add eslint and babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
naoufal committed Mar 8, 2016
1 parent 80dd576 commit 2a5ce19
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "react"]
}
5 changes: 5 additions & 0 deletions .eslintignore
@@ -0,0 +1,5 @@
**/lib/*
**/dist/*
**/examples/*
**/node_modules/*
**/webpack.config*.js
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "airbnb"
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"build:lib": "babel src --out-dir lib",
"lint": "eslint src",
"test": "npm run lint && npm run test:node",
"test:ci": "npm run lint && && npm run test:coverage",
"test:ci": "npm run lint && npm run test:coverage",
"test:coverage": "babel-node ./node_modules/.bin/isparta cover _mocha",
"test:node": "mocha --compilers js:babel-core/register --recursive",
"test:watch": "npm test -- --watch"
Expand Down

0 comments on commit 2a5ce19

Please sign in to comment.