Skip to content

Commit

Permalink
fix busted lint-staged config
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed May 18, 2018
1 parent f2be6d4 commit e0306ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"linters": {
"(bin/*|**/*.js)": [
"prettier-eslint --write",
"git add"
]
},
"ignore": [
"docs/**/*.js",
"test/**/*.fixture.js"
]
}
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@
"scripts": {
"prepublishOnly": "nps test clean build",
"start": "nps",
"test": "nps test"
"test": "nps test",
"precommit": "lint-staged"
},
"dependencies": {
"browser-stdout": "1.3.1",
Expand Down Expand Up @@ -527,12 +528,6 @@
},
"homepage": "https://mochajs.org",
"logo": "https://cldup.com/S9uQ-cOLYz.svg",
"lint-staged": {
"*.js": [
"prettier-eslint --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"bracketSpacing": false
Expand Down

0 comments on commit e0306ff

Please sign in to comment.