Skip to content

Commit 85b9f1b

Browse files
committed
Support auto-fixing
1 parent dc06fb2 commit 85b9f1b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/__snapshots__/index.test.ts.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,22 @@ Object {
6262
"processors": Object {
6363
"diff": Object {
6464
"postprocess": [Function],
65+
"supportsAutofix": true,
6566
},
6667
"staged": Object {
6768
"postprocess": [Function],
69+
"supportsAutofix": true,
6870
},
6971
},
7072
},
7173
"processors": Object {
7274
"diff": Object {
7375
"postprocess": [Function],
76+
"supportsAutofix": true,
7477
},
7578
"staged": Object {
7679
"postprocess": [Function],
80+
"supportsAutofix": true,
7781
},
7882
},
7983
}

src/processors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const diff = {
2020
)
2121
)
2222
.flat(),
23+
24+
supportsAutofix: true,
2325
};
2426

2527
const diffConfig = {
@@ -46,6 +48,8 @@ const staged = {
4648
)
4749
)
4850
.flat(),
51+
52+
supportsAutofix: true,
4953
};
5054

5155
const stagedConfig = {

0 commit comments

Comments
 (0)