Skip to content

Commit

Permalink
Add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 8, 2016
1 parent ad4e318 commit 05fcc93
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,24 @@
"babel-preset-stage-0": "6.5.0",
"postcss-parser-tests": "5.0.10",
"babel-eslint": "6.1.2",
"lint-staged": "2.0.3",
"pre-commit": "1.1.3",
"babel-core": "6.14.0",
"babel-cli": "6.14.0",
"eslint": "3.4.0",
"ava": "0.16.0"
},
"scripts": {
"prepublish": "npm run build",
"clean": "rm *.js || echo 'Already cleaned'",
"build": "npm run clean && babel -s inline -d ./ *.es6",
"lint": "eslint *.es6 test/*.js",
"test": "npm run build && ava && npm run lint"
}
"lint-staged": "lint-staged",
"prepublish": "npm run build",
"clean": "rm *.js || echo 'Already cleaned'",
"build": "npm run clean && babel -s inline -d ./ *.es6",
"lint": "eslint *.es6 test/*.js",
"test": "npm run build && ava && npm run lint"
},
"lint-staged": {
"test/*.js": "eslint",
"*.es6": "eslint"
},
"pre-commit": ["lint-staged"]
}

0 comments on commit 05fcc93

Please sign in to comment.