Skip to content

Commit 539ba99

Browse files
author
Jens van Hellemondt
committed
🍱 options.useBuildAndLintAction
1 parent d25829f commit 539ba99

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

generator/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ module.exports = (api, options) => {
7373
api.render('./templates/Plugins/analytics', options);
7474
}
7575

76+
if (options.useBuildAndLintAction) {
77+
api.extendPackage({
78+
dependencies: {
79+
'@vue/cli-plugin-eslint': '~4.4.0',
80+
'babel-eslint': '^10.1.0',
81+
'eslint': '^6.7.2',
82+
'eslint-plugin-import': '^2.22.1',
83+
'eslint-plugin-vue': '^6.2.2',
84+
},
85+
});
86+
api.render('./templates/ESLint', options);
87+
}
88+
7689
api.onCreateComplete(() => {
7790
if (fs.existsSync('src/store.js')) {
7891
fs.unlinkSync(api.resolve('src/store.js'));

0 commit comments

Comments
 (0)