Skip to content

Commit 4d6735d

Browse files
style(many): lint all files
1 parent 7713941 commit 4d6735d

File tree

1,955 files changed

+39388
-38550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,955 files changed

+39388
-38550
lines changed

docs/angular/slides.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If you would like to use the Core version instead, which does not include additi
7575
To migrate over your CSS, first update your selectors to target the new custom elements instead:
7676

7777
| ion-slides Selector | Swiper Selector |
78-
| ------------------- | ------------------ |
78+
| ------------------- | ------------------ |
7979
| `ion-slides` | `swiper-container` |
8080
| `ion-slide` | `swiper-slide` |
8181

@@ -155,9 +155,7 @@ export class HomePage {
155155
```html
156156
<!-- home.page.html -->
157157

158-
<swiper-container [modules]="swiperModules">
159-
...
160-
</swiper-container>
158+
<swiper-container [modules]="swiperModules"> ... </swiper-container>
161159
```
162160

163161
:::note
@@ -190,11 +188,11 @@ To set these options as properties directly on `<swiper-container>` we would do
190188

191189
Below is a full list of property changes when going from `ion-slides` to Swiper Element:
192190

193-
| Name | Notes |
194-
| --------- | --------------------------------------------------------------------------------------------------------------------------------------- |
195-
| options | Set each option as a property directly on the `<swiper-container>` component. |
196-
| mode | For different styles based upon the mode, you can target the slides with `.ios swiper-container` or `.md swiper-container` in your CSS. |
197-
| pager | Use the `pagination` property instead. |
191+
| Name | Notes |
192+
| ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
193+
| options | Set each option as a property directly on the `<swiper-container>` component. |
194+
| mode | For different styles based upon the mode, you can target the slides with `.ios swiper-container` or `.md swiper-container` in your CSS. |
195+
| pager | Use the `pagination` property instead. |
198196

199197
:::note
200198
All properties available in Swiper Element can be found at <a href="https://swiperjs.com/swiper-api#parameters" target="_blank" rel="noopener noreferrer">https://swiperjs.com/swiper-api#parameters</a>.
@@ -306,9 +304,7 @@ All methods and properties available on the Swiper instance can be found at <a h
306304
Effects such as Cube or Fade can be used in Swiper Element with no additional imports, as long as you are using the bundled version of Swiper. For example, the below code will cause the slides to have a flip transition effect:
307305

308306
```html
309-
<swiper-container effect="flip">
310-
...
311-
</swiper-container>
307+
<swiper-container effect="flip"> ... </swiper-container>
312308
```
313309

314310
:::note

docs/cli/livereload.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ Remember, with the `--external` option, others on your Wi-Fi network will be abl
6464
Live reload will use HTTP by default which will cause web APIs that require a secure context (like [web crypto](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)) to fail. To establish a secure context you can use the `--ssl` argument to use HTTPS.
6565

6666
For example, with an Angular application you can run the following to pass a certificate and private key and serve your app with HTTPS:
67+
6768
```shell
6869
ionic capacitor run android --livereload --external --ssl -- --ssl-cert='server.crt' --ssl-key='server.key'
6970
```
7071

71-
Using a self signed certificate and ensuring it is trusted by the device is a complicated topic and is covered in [this article](https://ionic.zendesk.com/hc/en-us/articles/11384425513623).
72+
Using a self signed certificate and ensuring it is trusted by the device is a complicated topic and is covered in [this article](https://ionic.zendesk.com/hc/en-us/articles/11384425513623).

docs/developing/config.md

+41-43
Large diffs are not rendered by default.

docs/developing/config/global/index.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ import TabItem from '@theme/TabItem';
1717
window.Ionic = {
1818
config: {
1919
rippleEffect: false,
20-
mode: 'md'
21-
}
22-
}
20+
mode: 'md',
21+
},
22+
};
2323
```
24+
2425
</TabItem>
2526
<TabItem value="angular">
2627

@@ -38,10 +39,12 @@ import { IonicModule } from '@ionic/angular';
3839
...
3940
})
4041
```
42+
4143
</TabItem>
4244
<TabItem value="react">
4345

4446
The `setupIonicReact` function must be called before rendering any Ionic components (including `IonApp`).
47+
4548
```tsx title="App.tsx"
4649
import { setupIonicReact } from '@ionic/react';
4750

@@ -50,18 +53,19 @@ setupIonicReact({
5053
mode: 'md',
5154
});
5255
```
56+
5357
</TabItem>
5458
<TabItem value="vue">
5559

5660
```tsx title="main.ts"
57-
5861
import { IonicVue } from '@ionic/vue';
5962
import { createApp } from 'vue';
60-
63+
6164
createApp(App).use(IonicVue, {
6265
rippleEffect: false,
6366
mode: 'md',
6467
});
6568
```
69+
6670
</TabItem>
67-
</Tabs>
71+
</Tabs>

docs/developing/config/per-component/index.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import TabItem from '@theme/TabItem';
1919
window.Ionic = {
2020
config: {
2121
// Not recommended when your app requires reactive values
22-
backButtonText: 'Go Back'
23-
}
24-
}
22+
backButtonText: 'Go Back',
23+
},
24+
};
2525
```
2626

2727
**Recommended**
@@ -31,14 +31,15 @@ window.Ionic = {
3131

3232
<script>
3333
const backButton = document.querySelector('ion-back-button');
34-
34+
3535
/**
3636
* The back button text can be updated
3737
* anytime the locale changes.
3838
*/
3939
backButton.text = 'Go Back';
4040
</script>
4141
```
42+
4243
</TabItem>
4344
<TabItem value="angular">
4445

@@ -75,6 +76,7 @@ class MyComponent {
7576
backButtonText = 'Go Back';
7677
}
7778
```
79+
7880
</TabItem>
7981
<TabItem value="react">
8082

@@ -85,7 +87,7 @@ import { setupIonicReact } from '@ionic/react';
8587

8688
setupIonicReact({
8789
// Not recommended when your app requires reactive values
88-
backButtonText: 'Go Back'
90+
backButtonText: 'Go Back',
8991
});
9092
```
9193

@@ -106,6 +108,7 @@ const ExampleComponent = () => {
106108
)
107109
}
108110
```
111+
109112
</TabItem>
110113
<TabItem value="vue">
111114

@@ -114,10 +117,10 @@ const ExampleComponent = () => {
114117
```ts
115118
import { IonicVue } from '@ionic/vue';
116119
import { createApp } from 'vue';
117-
118-
// Not recommended when your app requires reactive values
120+
121+
// Not recommended when your app requires reactive values
119122
createApp(App).use(IonicVue, {
120-
backButtonText: 'Go Back'
123+
backButtonText: 'Go Back',
121124
});
122125
```
123126

@@ -139,5 +142,6 @@ createApp(App).use(IonicVue, {
139142
const backButtonText = ref('Go Back');
140143
</script>
141144
```
145+
142146
</TabItem>
143-
</Tabs>
147+
</Tabs>

docs/developing/config/per-platform-fallback/index.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const getConfig = () => {
3434
...
3535
});
3636
```
37+
3738
</TabItem>
3839
<TabItem value="react">
3940

@@ -43,18 +44,18 @@ import { isPlatform, setupIonicReact } from '@ionic/react';
4344
const getConfig = () => {
4445
if (isPlatform('hybrid')) {
4546
return {
46-
tabButtonLayout: 'label-hide'
47-
}
47+
tabButtonLayout: 'label-hide',
48+
};
4849
}
49-
50+
5051
return {
51-
tabButtonLayout: 'icon-top'
52+
tabButtonLayout: 'icon-top',
5253
};
5354
};
5455

5556
setupIonicReact(getConfig());
56-
5757
```
58+
5859
</TabItem>
5960
<TabItem value="vue">
6061

@@ -64,16 +65,17 @@ import { IonicVue, isPlatform } from '@ionic/vue';
6465
const getConfig = () => {
6566
if (isPlatform('hybrid')) {
6667
return {
67-
tabButtonLayout: 'label-hide'
68-
}
68+
tabButtonLayout: 'label-hide',
69+
};
6970
}
70-
71+
7172
return {
72-
tabButtonLayout: 'icon-top'
73+
tabButtonLayout: 'icon-top',
7374
};
7475
};
7576

7677
createApp(App).use(IonicVue, getConfig());
77-
````
78+
```
79+
7880
</TabItem>
79-
</Tabs>
81+
</Tabs>

docs/developing/config/per-platform-overrides/index.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const getConfig = () => {
3737
...
3838
});
3939
```
40+
4041
</TabItem>
4142
<TabItem value="react">
4243

@@ -59,8 +60,8 @@ const getConfig = () => {
5960
};
6061

6162
setupIonicReact(getConfig());
62-
6363
```
64+
6465
</TabItem>
6566
<TabItem value="vue">
6667

@@ -83,6 +84,7 @@ const getConfig = () => {
8384
};
8485

8586
createApp(App).use(IonicVue, getConfig());
86-
````
87+
```
88+
8789
</TabItem>
88-
</Tabs>
90+
</Tabs>

docs/developing/config/per-platform/index.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { isPlatform, IonicModule } from '@ionic/angular';
3131
...
3232
})
3333
```
34+
3435
</TabItem>
3536
<TabItem value="react">
3637

@@ -45,6 +46,7 @@ setupIonicReact({
4546
animated: !isPlatform('mobileweb'),
4647
});
4748
```
49+
4850
</TabItem>
4951
<TabItem value="vue">
5052

@@ -58,6 +60,7 @@ import { IonicVue, isPlatform } from '@ionic/vue';
5860
createApp(App).use(IonicVue, {
5961
animated: !isPlatform('mobileweb'),
6062
});
61-
````
63+
```
64+
6265
</TabItem>
63-
</Tabs>
66+
</Tabs>

docs/developing/hardware-back-button.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ It is recommended to check whether or not the user is on the root page prior to
338338

339339
The table below lists all of the internal hardware back button event handlers that Ionic Framework uses. The `Propagates` column notes whether or not that particular handler tells Ionic Framework to call the next back button handler.
340340

341-
| Handler | Priority | Propagates | Description |
342-
| ---------- | -------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
341+
| Handler | Priority | Propagates | Description |
342+
| ---------- | -------- | ---------- | --------------------------------------------------------------------------------------------------------------------------- |
343343
| Overlays | 100 | No | Applies to overlay components `ion-action-sheet`, `ion-alert`, `ion-loading`, `ion-modal`, `ion-popover`, and `ion-picker`. |
344-
| Menu | 99 | No | Applies to `ion-menu`. |
345-
| Navigation | 0 | Yes | Applies to routing navigation (i.e. Angular Routing). |
344+
| Menu | 99 | No | Applies to `ion-menu`. |
345+
| Navigation | 0 | Yes | Applies to routing navigation (i.e. Angular Routing). |

docs/layout/css-utilities.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ The float CSS property specifies that an element should be placed along the left
141141
src="https://ionicframework.com/docs/img/demos/avatar.svg"
142142
height="50px"
143143
/>
144-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac
145-
vehicula lorem.
144+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac vehicula lorem.
146145
</ion-col>
147146
<ion-col>
148147
<h3>float-left</h3>
@@ -152,8 +151,7 @@ The float CSS property specifies that an element should be placed along the left
152151
height="50px"
153152
class="ion-float-left"
154153
/>
155-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac
156-
vehicula lorem.
154+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac vehicula lorem.
157155
</ion-col>
158156
<ion-col>
159157
<h3>float-right</h3>
@@ -163,8 +161,7 @@ The float CSS property specifies that an element should be placed along the left
163161
height="50px"
164162
class="ion-float-right"
165163
/>
166-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac
167-
vehicula lorem.
164+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac vehicula lorem.
168165
</ion-col>
169166
</ion-row>
170167
</ion-grid>

docs/layout/structure.md

-4
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,14 @@ import Footer from '@site/static/usage/v7/footer/basic/index.md';
3434

3535
<Footer />
3636

37-
3837
## Tabs Layout
3938

4039
A layout consisting of horizontal [tabs](../api/tabs.md) can be used to let the user quickly change between content views. Each tab can contain static content or a navigation stack by using a [router outlet](../api/router-outlet.md) or [nav](../api/nav.md).
4140

42-
4341
import Tabs from '@site/static/usage/v7/tabs/router/index.md';
4442

4543
<Tabs />
4644

47-
4845
## Menu Layout
4946

5047
A standard layout among mobile apps includes the ability to toggle a side [menu](../api/menu.md) by clicking a button or swiping it open from the side. Side menus are generally used for navigation, but they can contain any content.
@@ -53,7 +50,6 @@ import Menu from '@site/static/usage/v7/menu/basic/index.md';
5350

5451
<Menu />
5552

56-
5753
## Split Pane Layout
5854

5955
A [split pane](../api/split-pane.md) layout has a more complex structure because it can combine the previous layouts. It allows for multiple views to be displayed when the viewport is above a specified breakpoint. If the device's screen size is below a certain size, the split pane view will be hidden.

docs/native-faq.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ slug: /native/faq
55

66
# Frequently Asked Question
77

8-
## What is Capacitor?
8+
## What is Capacitor?
99

10-
Capacitor a native runtime built by the Ionic team that offers web developers the ability to deploy their web apps to a native device. Capacitor also exposing native device capabilities through JavaScript so developers could access features like native location services, filesystem access, or notifications as if they are interacting with any other JavaScript library.
10+
Capacitor a native runtime built by the Ionic team that offers web developers the ability to deploy their web apps to a native device. Capacitor also exposing native device capabilities through JavaScript so developers could access features like native location services, filesystem access, or notifications as if they are interacting with any other JavaScript library.
1111

1212
## Permission Issues
1313

@@ -17,9 +17,8 @@ If you're using a plugin, it may require adding additional permissions to your n
1717
- `NSPhotoLibraryAddUsageDescription` (`Privacy - Photo Library Additions Usage Description`)
1818
- `NSPhotoLibraryUsageDescription` (`Privacy - Photo Library Usage Description`)
1919

20-
You need to manually add those permissions to the `info.plist` in your native project. Otherwise, calls to the native camera API will fail.
21-
20+
You need to manually add those permissions to the `info.plist` in your native project. Otherwise, calls to the native camera API will fail.
2221

2322
## Unexpected behaviour
2423

25-
If for some reason the plugin does not behave in a way that is unexpected, please [open an issue on our github repo](https://github.com/ionic-team/capacitor-plugins)! Providing a clear issue report along with a reproduction can help get your issue resolved.
24+
If for some reason the plugin does not behave in a way that is unexpected, please [open an issue on our github repo](https://github.com/ionic-team/capacitor-plugins)! Providing a clear issue report along with a reproduction can help get your issue resolved.

0 commit comments

Comments
 (0)