Skip to content

Commit 7a24324

Browse files
authored
Reset Prettier brackets options to defaults (#125)
1 parent 5a12726 commit 7a24324

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

template/App.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,15 @@
55
* @format
66
*/
77

8-
import {NewAppScreen} from '@react-native/new-app-screen';
9-
import {
10-
StatusBar,
11-
StyleSheet,
12-
useColorScheme,
13-
View,
14-
} from 'react-native';
8+
import { NewAppScreen } from '@react-native/new-app-screen';
9+
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
1510

1611
function App() {
1712
const isDarkMode = useColorScheme() === 'dark';
1813

1914
return (
2015
<View style={styles.container}>
21-
<StatusBar
22-
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
23-
/>
16+
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
2417
<NewAppScreen templateFileName="App.tsx" />
2518
</View>
2619
);

template/_prettierrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module.exports = {
22
arrowParens: 'avoid',
3-
bracketSameLine: true,
4-
bracketSpacing: false,
53
singleQuote: true,
64
trailingComma: 'all',
75
};

template/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @format
33
*/
44

5-
import {AppRegistry} from 'react-native';
5+
import { AppRegistry } from 'react-native';
66
import App from './App';
7-
import {name as appName} from './app.json';
7+
import { name as appName } from './app.json';
88

99
AppRegistry.registerComponent(appName, () => App);

template/metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
1+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
22

33
/**
44
* Metro configuration

0 commit comments

Comments
 (0)