Skip to content

Commit 7613521

Browse files
committed
fix busted lint-staged config
1 parent 8368722 commit 7613521

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.lintstagedrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"linters": {
3+
"(bin/*|**/*.js)": [
4+
"prettier-eslint --write",
5+
"git add"
6+
]
7+
},
8+
"ignore": [
9+
"docs/**/*.js",
10+
"test/**/*.fixture.js"
11+
]
12+
}

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@
454454
"scripts": {
455455
"prepublishOnly": "nps test clean build",
456456
"start": "nps",
457-
"test": "nps test"
457+
"test": "nps test",
458+
"precommit": "lint-staged"
458459
},
459460
"dependencies": {
460461
"browser-stdout": "1.3.1",
@@ -527,12 +528,6 @@
527528
},
528529
"homepage": "https://mochajs.org",
529530
"logo": "https://cldup.com/S9uQ-cOLYz.svg",
530-
"lint-staged": {
531-
"*.js": [
532-
"prettier-eslint --write",
533-
"git add"
534-
]
535-
},
536531
"prettier": {
537532
"singleQuote": true,
538533
"bracketSpacing": false

0 commit comments

Comments
 (0)