Skip to content

Commit

Permalink
fix: init renames _prettierrc.js to .prettierrc.js
Browse files Browse the repository at this point in the history
In facebook/react-native@65eea9d, the prettier config for ESLint has been extracted to a .prettierrc file.

It was however not added to the React Native `template` folder and this was causing linting issues in newly generated RN apps.

In that [PR](facebook/react-native#25478) to `react-native`, a `_prettierrc.js` file was added to the `template` folder, however, a newly generated project would have the file still underscored (see facebook/react-native#25478 (comment))

This commit addresses that issue by adding `prettierrc.js` to the list of underscored files that need to be renamed to dotfiles.
  • Loading branch information
RobinCsl committed Jul 15, 2019
1 parent c386351 commit 1864b0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/commands/init/editTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const UNDERSCORED_DOTFILES = [
'flowconfig',
'gitattributes',
'gitignore',
'prettierrc.js',
'watchmanconfig',
];

Expand Down

0 comments on commit 1864b0f

Please sign in to comment.