Skip to content

Commit ea50874

Browse files
committed
style: format code
1 parent 88517e0 commit ea50874

24 files changed

+221
-238
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
1717
</p>
1818

19-
2019
<p align="center">
2120
<a href="https://david-dm.org/ahmnouira/ionic-react-header-parallax"><img src="https://david-dm.org/ahmnouira/ionic-react-header-parallax/status.svg"></a>
2221
<a href="https://david-dm.org/ahmnouira/ionic-react-header-parallax?type=dev"><img src="https://david-dm.org/ahmnouira/ionic-react-header-parallax/dev-status.svg"></a>
23-
</p>
22+
</p>

babel.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
// babel.config.js
22
module.exports = {
3-
presets: [
4-
['@babel/preset-env', {targets: {node: 'current'}}],
5-
'@babel/preset-typescript',
6-
],
7-
};
3+
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
4+
}

example/src/App.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React from 'react';
2-
import { render } from '@testing-library/react';
3-
import App from './App';
1+
import React from 'react'
2+
import { render } from '@testing-library/react'
3+
import App from './App'
44

55
test('renders without crashing', () => {
6-
const { baseElement } = render(<App />);
7-
expect(baseElement).toBeDefined();
8-
});
6+
const { baseElement } = render(<App />)
7+
expect(baseElement).toBeDefined()
8+
})

example/src/App.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import { Redirect, Route } from 'react-router-dom';
2-
import { IonApp, IonRouterOutlet } from '@ionic/react';
3-
import { IonReactRouter } from '@ionic/react-router';
4-
import Home from './pages/Home';
1+
import { Redirect, Route } from 'react-router-dom'
2+
import { IonApp, IonRouterOutlet } from '@ionic/react'
3+
import { IonReactRouter } from '@ionic/react-router'
4+
import Home from './pages/Home'
55

66
/* Core CSS required for Ionic components to work properly */
7-
import '@ionic/react/css/core.css';
7+
import '@ionic/react/css/core.css'
88

99
/* Basic CSS for apps built with Ionic */
10-
import '@ionic/react/css/normalize.css';
11-
import '@ionic/react/css/structure.css';
12-
import '@ionic/react/css/typography.css';
10+
import '@ionic/react/css/normalize.css'
11+
import '@ionic/react/css/structure.css'
12+
import '@ionic/react/css/typography.css'
1313

1414
/* Optional CSS utils that can be commented out */
15-
import '@ionic/react/css/padding.css';
16-
import '@ionic/react/css/float-elements.css';
17-
import '@ionic/react/css/text-alignment.css';
18-
import '@ionic/react/css/text-transformation.css';
19-
import '@ionic/react/css/flex-utils.css';
20-
import '@ionic/react/css/display.css';
15+
import '@ionic/react/css/padding.css'
16+
import '@ionic/react/css/float-elements.css'
17+
import '@ionic/react/css/text-alignment.css'
18+
import '@ionic/react/css/text-transformation.css'
19+
import '@ionic/react/css/flex-utils.css'
20+
import '@ionic/react/css/display.css'
2121

2222
/* Theme variables */
23-
import './theme/variables.css';
23+
import './theme/variables.css'
2424

2525
const App: React.FC = () => (
2626
<IonApp>
@@ -35,6 +35,6 @@ const App: React.FC = () => (
3535
</IonRouterOutlet>
3636
</IonReactRouter>
3737
</IonApp>
38-
);
38+
)
3939

40-
export default App;
40+
export default App

example/src/components/ExploreContainer.css

Lines changed: 0 additions & 24 deletions
This file was deleted.

example/src/components/ExploreContainer.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/src/components/Lorem.css

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
div {
2-
padding: 8px;
3-
margin-bottom: 12px;
2+
padding: 8px;
3+
margin-bottom: 12px;
44
}
55

6-
76
p {
8-
font-size: 16px;
9-
line-height: 22px;
10-
color: #8c8c8c;
11-
margin: 0;
12-
}
13-
7+
font-size: 16px;
8+
line-height: 22px;
9+
color: #8c8c8c;
10+
margin: 0;
11+
}

example/src/components/Lorem.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
import './Lorem.css';
1+
import './Lorem.css'
22

3-
export const Lorem: React.FC<{}> = ({ }) => {
4-
5-
return (
6-
<div>
7-
8-
<p>
9-
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
10-
industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and
11-
scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into
12-
electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release
13-
of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software
14-
like Aldus PageMaker including versions of Lorem Ipsum.
15-
</p>
16-
</div>
17-
)
18-
}
3+
export const Lorem: React.FC<{}> = ({}) => {
4+
return (
5+
<div>
6+
<p>
7+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
8+
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
9+
a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,
10+
remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing
11+
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions
12+
of Lorem Ipsum.
13+
</p>
14+
</div>
15+
)
16+
}

example/src/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom';
3-
import App from './App';
4-
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
5-
import reportWebVitals from './reportWebVitals';
1+
import React from 'react'
2+
import ReactDOM from 'react-dom'
3+
import App from './App'
4+
import * as serviceWorkerRegistration from './serviceWorkerRegistration'
5+
import reportWebVitals from './reportWebVitals'
66

77
ReactDOM.render(
88
<React.StrictMode>
99
<App />
1010
</React.StrictMode>,
1111
document.getElementById('root')
12-
);
12+
)
1313

1414
// If you want your app to work offline and load faster, you can change
1515
// unregister() to register() below. Note this comes with some pitfalls.
1616
// Learn more about service workers: https://cra.link/PWA
17-
serviceWorkerRegistration.unregister();
17+
serviceWorkerRegistration.unregister()
1818

1919
// If you want to start measuring performance in your app, pass a function
2020
// to log results (for example: reportWebVitals(console.log))
2121
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
22-
reportWebVitals();
22+
reportWebVitals()

example/src/pages/Home.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
* {
2-
--ion-color-primary: #5f468c;
3-
}
2+
--ion-color-primary: #5f468c;
3+
}

0 commit comments

Comments
 (0)