Skip to content

Commit 631e03a

Browse files
dbtools-antcampoLeonSilva15
authored andcommitted
fix(generators): copy templates eslint configuration on generation
Merge pull request copy-eslint-config-in-template-generation
1 parent 362d3f7 commit 631e03a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generators/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ export default class extends Generator {
104104
this.templatePath( `${this.options.templateChoice}/.gitignore.template` ),
105105
this.destinationPath( '.gitignore' ),
106106
);
107+
this.fs.copy(
108+
this.templatePath( `${this.options.templateChoice}/.eslintrc.cjs` ),
109+
this.destinationPath( '.eslintrc.cjs' ),
110+
);
107111
this.fs.copyTpl(
108112
this.templatePath( `${ path.dirname( this.options.templateChoice ) }/app/${ path.basename( this.options.templateChoice ) == 'node-jet' ? 'index-proxied' : 'index' }.cjs` ),
109113
this.destinationPath( 'server/index.cjs' ),

0 commit comments

Comments
 (0)