Content-Length: 818180 | pFad | http://github.com/NativeScript/docs/commit/468d13356716325fc06976ceb45e34d9c4c72959

BF chore: textlint tweaks · NativeScript/docs@468d133 · GitHub
Skip to content

Commit 468d133

Browse files
committed
chore: textlint tweaks
1 parent 1bdb7c2 commit 468d133

9 files changed

+47
-20
lines changed

Diff for: .textlintrc

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
11
{
22
"rules": {
33
"terminology": {
4-
"severity" : "warning",
4+
"severity": "warning",
55
"defaultTerms": false,
66
// Some terms borrowed from https://github.com/cypress-io/cypress-documentation/blob/main/.textlintrc
77
"terms": [
8+
// NativeScript specifics
9+
["absolute[- ]?layout(s?)", "AbsoluteLayout$1"],
10+
["dock[- ]?layout(s?)", "DockLayout$1"],
11+
["flex(box)?[- ]?layout(s?)", "FlexboxLayout$1"],
12+
["grid[- ]?layout(s?)", "GridLayout$1"],
13+
["root[- ]?layout(s?)", "RootLayout$1"],
14+
["stack[- ]?layout(s?)", "StackLayout$1"],
15+
["wrap[- ]?layout(s?)", "WrapLayout$1"],
16+
["activity[- ]?indicator(s?)", "ActivityIndicator$1"],
17+
["date[- ]?picker(s?)", "DatePicker$1"],
18+
["html[- ]?view(s?)", "HtmlView$1"],
19+
["list[- ]?picker(s?)", "ListPicker$1"],
20+
["list[- ]?view(s?)", "ListView$1"],
21+
["place[- ]?holder(s?)", "Placeholder$1"],
22+
["scroll[- ]?view(s?)", "ScrollView$1"],
23+
["search[- ]?bar(s?)", "SearchBar$1"],
24+
["segmented[- ]?bar(s?)", "SegmentedBar$1"],
25+
["tab[- ]?view(s?)", "TabView$1"],
26+
["text[- ]?field(s?)", "TextField$1"],
27+
["text[- ]?view(s?)", "TextView$1"],
28+
["time[- ]?picker(s?)", "TimePicker$1"],
29+
["web[- ]?view(s?)", "WebView$1"],
30+
["action[- ]?bar(s?)", "ActionBar$1"],
31+
832
// Brands and Technologies
933
"JavaScript",
1034
"TypeScript",
1135
"NativeScript",
36+
["ns", "NativeScript"],
1237
"GitHub",
1338
["VSCode", "VS Code"],
1439
"webpack",

Diff for: content/configuration/nativescript.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ Avaialable hooks (prefix with `before-` or `after-`):
401401
- `buildAndroidPlugin` - Builds aar file for Android plugin, runs during prepareNativeApp
402402
- `buildAndroid` - Builds Android app
403403
- `buildIOS` - Builds iOS app
404-
- `checkEnvironment` - Validate project env, runs during ns doctor, clean, and most build commands
404+
- `checkEnvironment` - Validate project env, runs during `ns` doctor, clean, and most build commands
405405
- `checkForChanges` - Changes occurred during watch
406406
- `install` - Application installed to device/emulator
407407
- `prepare` - Compiles webpack and prepares native app in platforms folder

Diff for: content/guide/code-sharing.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ contributors:
55
- NathanWalker
66
---
77

8+
<!-- textlint-disable terminology -->
9+
810
JavaScript provides opportunities of immense scalability if architectured properly. One key word that often comes up in this department is **"code sharing"**. Over the years, several lessons have emerged around scalability with JavaScript in lieu of NativeScript in particular.
911

1012
**The NativeScript TSC's 5 fundamental lessons about good code sharing**:

Diff for: content/tutorials/build-a-master-detail-app-with-angular.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Next, let's break down the layout and UI elements of the home page.
334334

335335
![Home page layout breakdown](/assets/images/tutorial/tutorial-example-app-master-breakdown.png)
336336

337-
The home page can be divided into two main parts, the action bar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the action bar with the title. Open `home.component.html` and add the following code:
337+
The home page can be divided into two main parts, the ActionBar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the ActionBar with the title. Open `home.component.html` and add the following code:
338338

339339
```html
340340
<!-- src/app/features/home/home.component.html -->
@@ -608,7 +608,7 @@ export class HomeComponent {
608608
}
609609
```
610610

611-
Next, let's add the tap event to the listview items. Open `home.component.html` and add the following:
611+
Next, let's add the tap event to the ListView items. Open `home.component.html` and add the following:
612612

613613
```html{10}
614614
<!-- src/app/features/home/home.component.html -->
@@ -699,7 +699,7 @@ Let's break down the layout and UI elements of the details page.
699699

700700
![Details page layout breakdown](/assets/images/tutorial/tutorial-example-app-details-breakdown.png)
701701

702-
The details page can be divided into three main parts, the action bar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Angular's `*ngFor` directive to loop through the array and create a UI element or set of elements for each entry in the array. Open `details.component.html` and add the following code:
702+
The details page can be divided into three main parts, the ActionBar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Angular's `*ngFor` directive to loop through the array and create a UI element or set of elements for each entry in the array. Open `details.component.html` and add the following code:
703703

704704
```html
705705
<!-- src/app/features/details/details.component.html -->

Diff for: content/tutorials/build-a-master-detail-app-with-plain-javascript.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Next, let's break down the layout and UI elements of the home page.
249249

250250
![Home page layout breakdown](/assets/images/tutorial/tutorial-example-app-master-breakdown.png)
251251

252-
The home page can be divided into two main parts, the action bar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the action bar with the title. Open `home-page.xml` and add the following code:
252+
The home page can be divided into two main parts, the ActionBar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the ActionBar with the title. Open `home-page.xml` and add the following code:
253253

254254
```xml
255255
<!-- app/home/home-page.xml -->
@@ -471,7 +471,7 @@ export class HomeViewModel extends Observable {
471471
}
472472
```
473473

474-
Next, let's add the tap event to the listview items. Open `home-page.xml` and add the following:
474+
Next, let's add the tap event to the ListView items. Open `home-page.xml` and add the following:
475475

476476
```xml{10}
477477
<!-- app/home/home-page.xml -->
@@ -566,7 +566,7 @@ Let's break down the layout and UI elements of the details page.
566566

567567
![Details page layout breakdown](/assets/images/tutorial/tutorial-example-app-details-breakdown.png)
568568

569-
The details page can be divided into three main parts, the action bar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use NativeScript's `Repeater` component to loop through the array and create a UI element or set of elements for each entry in the array. Open `details-page.xml` and add the following code:
569+
The details page can be divided into three main parts, the ActionBar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use NativeScript's `Repeater` component to loop through the array and create a UI element or set of elements for each entry in the array. Open `details-page.xml` and add the following code:
570570

571571
```xml{4,7-33}
572572
<!-- app/details/details-page.xml -->

Diff for: content/tutorials/build-a-master-detail-app-with-plain-typescript.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Next, let's break down the layout and UI elements of the home page.
277277

278278
![Home page layout breakdown](/assets/images/tutorial/tutorial-example-app-master-breakdown.png)
279279

280-
The home page can be divided into two main parts, the action bar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the action bar with the title. Open `home-page.xml` and add the following code:
280+
The home page can be divided into two main parts, the ActionBar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the ActionBar with the title. Open `home-page.xml` and add the following code:
281281

282282
```xml
283283
<!-- app/home/home-page.xml -->
@@ -500,7 +500,7 @@ export class HomeViewModel extends Observable {
500500
}
501501
```
502502

503-
Next, let's add the tap event to the listview items. Open `home-page.xml` and add the following:
503+
Next, let's add the tap event to the ListView items. Open `home-page.xml` and add the following:
504504

505505
```xml{10}
506506
<!-- app/home/home-page.xml -->
@@ -597,7 +597,7 @@ Let's break down the layout and UI elements of the details page.
597597

598598
![Details page layout breakdown](/assets/images/tutorial/tutorial-example-app-details-breakdown.png)
599599

600-
The details page can be divided into three main parts, the action bar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use NativeScript's `Repeater` component to loop through the array and create a UI element or set of elements for each entry in the array. Open `details-page.xml` and add the following code:
600+
The details page can be divided into three main parts, the ActionBar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use NativeScript's `Repeater` component to loop through the array and create a UI element or set of elements for each entry in the array. Open `details-page.xml` and add the following code:
601601

602602
```xml{4,7-33}
603603
<!-- app/details/details-page.xml -->

Diff for: content/tutorials/build-a-master-detail-app-with-react.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Next, let's break down the layout and UI elements of the home page.
280280

281281
![Home page layout breakdown](/assets/images/tutorial/tutorial-example-app-master-breakdown.png)
282282

283-
The home page can be divided into two main parts, the action bar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the action bar with the title. Open `Navigator.tsx` and add the following code:
283+
The home page can be divided into two main parts, the ActionBar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the ActionBar with the title. Open `Navigator.tsx` and add the following code:
284284

285285
```tsx{17-19,24-26}
286286
// src/components/Navigator.tsx
@@ -653,7 +653,7 @@ export function HomeScreen({ navigation }: HomeScreenProps) {
653653
}
654654
```
655655

656-
Next, let's add the tap event to the listview items. Open `HomeScreen.tsx` and add the following:
656+
Next, let's add the tap event to the ListView items. Open `HomeScreen.tsx` and add the following:
657657

658658
```tsx{66}
659659
// src/components/HomeScreen.tsx
@@ -766,7 +766,7 @@ Let's break down the layout and UI elements of the details page.
766766

767767
![Details page layout breakdown](/assets/images/tutorial/tutorial-example-app-details-breakdown.png)
768768

769-
The details page can be divided into three main parts, the action bar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Javascript's array `map` operator to loop through the `details` array and create a UI element or set of elements for each entry in the array. Open `DetailsScreen.tsx` and add the following code:
769+
The details page can be divided into three main parts, the ActionBar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Javascript's array `map` operator to loop through the `details` array and create a UI element or set of elements for each entry in the array. Open `DetailsScreen.tsx` and add the following code:
770770

771771
```tsx{20-44}
772772
// src/components/DetailsScreen.tsx

Diff for: content/tutorials/build-a-master-detail-app-with-svelte.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Next, let's break down the layout and UI elements of the home page.
253253

254254
![Home page layout breakdown](/assets/images/tutorial/tutorial-example-app-master-breakdown.png)
255255

256-
The home page can be divided into two main parts, the action bar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the action bar with the title. Open `Home.svelte` and add the following code:
256+
The home page can be divided into two main parts, the ActionBar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the ActionBar with the title. Open `Home.svelte` and add the following code:
257257

258258
```html
259259
<!-- app/pages/Home.svelte -->
@@ -479,7 +479,7 @@ We will be using the `navigate` function from `svelte-native` class to navigate
479479
</script>
480480
```
481481

482-
Next, let's add the tap event to the listview items. Open `Home.svelte` and add the following:
482+
Next, let's add the tap event to the ListView items. Open `Home.svelte` and add the following:
483483

484484
```html{11}
485485
<!-- app/pages/Home.svelte -->
@@ -582,7 +582,7 @@ Let's break down the layout and UI elements of the details page.
582582

583583
![Details page layout breakdown](/assets/images/tutorial/tutorial-example-app-details-breakdown.png)
584584

585-
The details page can be divided into three main parts, the action bar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Svelte's `#each` block to loop through the array and create a UI element or set of elements for each entry in the array. Open `Details.svelte` and add the following code:
585+
The details page can be divided into three main parts, the ActionBar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Svelte's `#each` block to loop through the array and create a UI element or set of elements for each entry in the array. Open `Details.svelte` and add the following code:
586586

587587
```html{5,8-32}
588588
<!-- app/pages/Details.svelte -->

Diff for: content/tutorials/build-a-master-detail-app-with-vue.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Next, let's break down the layout and UI elements of the home page.
258258

259259
![Home page layout breakdown](/assets/images/tutorial/tutorial-example-app-master-breakdown.png)
260260

261-
The home page can be divided into two main parts, the action bar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the action bar with the title. Open `Home.vue` and add the following code:
261+
The home page can be divided into two main parts, the ActionBar with the title and the scrollable main content area with the cards (we will talk about the cards in the next section). Let's start with creating the ActionBar with the title. Open `Home.vue` and add the following code:
262262

263263
```vue{6}
264264
<!-- app/components/Home.vue -->
@@ -535,7 +535,7 @@ export default Vue.extend({
535535
</script>
536536
```
537537

538-
Next, let's add the tap event to the listview items. Open `Home.vue` and add the following:
538+
Next, let's add the tap event to the ListView items. Open `Home.vue` and add the following:
539539

540540
```html{11}
541541
<!-- app/components/Home.vue -->
@@ -648,7 +648,7 @@ Let's break down the layout and UI elements of the details page.
648648

649649
![Details page layout breakdown](/assets/images/tutorial/tutorial-example-app-details-breakdown.png)
650650

651-
The details page can be divided into three main parts, the action bar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Vue's `v-for` directive to loop through the array and create a UI element or set of elements for each entry in the array. Open `Details.vue` and add the following code:
651+
The details page can be divided into three main parts, the ActionBar with the flick title, the hero image, and the main content with the flick details. We will use the `details` array from our `flicks` object to populate the flick details section. The `details` array contains objects with a `title` and `body` which are rendered uniformly, each with their style. We can use Vue's `v-for` directive to loop through the array and create a UI element or set of elements for each entry in the array. Open `Details.vue` and add the following code:
652652

653653
```vue{6,9-31}
654654
<!-- app/components/Details.vue -->

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/docs/commit/468d13356716325fc06976ceb45e34d9c4c72959

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy