mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-24 08:08:54 -06:00
fix(create): write the lint-staged config to its own file (#6303)
Closes #6298
This commit is contained in:
@@ -56,6 +56,13 @@ const defaultConfigTransforms = {
|
||||
file: {
|
||||
lines: ['.browserslistrc']
|
||||
}
|
||||
}),
|
||||
'lint-staged': new ConfigTransform({
|
||||
file: {
|
||||
js: ['lint-staged.config.js'],
|
||||
json: ['.lintstagedrc', '.lintstagedrc.json'],
|
||||
yaml: ['.lintstagedrc.yaml', '.lintstagedrc.yml']
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user