Skip to content

Commit

Permalink
added litstaged
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie committed Jan 2, 2018
1 parent 5d12f54 commit ea432fc
Show file tree
Hide file tree
Showing 3 changed files with 401 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": ["eslint --fix", "git add"]
}
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"url": "https://github.com/wizeline/phoenix.git"
},
"scripts": {
"lint-staged": "lint-staged",
"danger": "danger",
"test": "echo no test",
"lint": "eslint ./"
"lint": "eslint ./",
"precommit": "lint-staged",
"test": "echo no test"
},
"dependencies": {
"ramda": "^0.25.0",
Expand All @@ -17,6 +19,7 @@
},
"devDependencies": {
"babel-eslint": "^8.0.3",
"danger": "^2.1.6",
"eslint": "^4.13.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.6.0",
Expand All @@ -28,7 +31,8 @@
"eslint-plugin-prettier": "^2.4.0",
"eslint-plugin-react": "^7.4.0",
"flow-bin": "^0.62.0",
"prettier": "^1.9.2",
"danger": "^2.1.6"
"husky": "^0.14.3",
"lint-staged": "^6.0.0",
"prettier": "^1.9.2"
}
}
Loading

0 comments on commit ea432fc

Please sign in to comment.