Skip to content

Commit c604182

Browse files
authored
fix(create): write the lint-staged config to its own file (#6303)
Closes #6298
1 parent 7b5212f commit c604182

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/@vue/cli/lib/Generator.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ const defaultConfigTransforms = {
5656
file: {
5757
lines: ['.browserslistrc']
5858
}
59+
}),
60+
'lint-staged': new ConfigTransform({
61+
file: {
62+
js: ['lint-staged.config.js'],
63+
json: ['.lintstagedrc', '.lintstagedrc.json'],
64+
yaml: ['.lintstagedrc.yaml', '.lintstagedrc.yml']
65+
}
5966
})
6067
}
6168

0 commit comments

Comments
 (0)