Skip to content

Commit 90e74c1

Browse files
authored
add editorconfig for the template (#1374)
* add editorconfig for the template * Update editTemplate.ts
1 parent 77a06ce commit 90e74c1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/cli/src/commands/init/editTemplate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const UNDERSCORED_DOTFILES = [
7171
'gitignore',
7272
'prettierrc.js',
7373
'watchmanconfig',
74+
'editorconfig',
7475
];
7576

7677
function processDotfiles(filePath: string) {

packages/cli/src/tools/generator/copyProjectTemplateAndReplace.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function translateFilePath(filePath: string) {
141141
.replace('_gitignore', '.gitignore')
142142
.replace('_gitattributes', '.gitattributes')
143143
.replace('_babelrc', '.babelrc')
144+
.replace('_editorconfig', '.editorconfig')
144145
.replace('_eslintrc.js', '.eslintrc.js')
145146
.replace('_flowconfig', '.flowconfig')
146147
.replace('_buckconfig', '.buckconfig')

0 commit comments

Comments
 (0)