Skip to content

Commit fcfb3e8

Browse files
authored
feat: add eslint (#90)
1 parent 6d01620 commit fcfb3e8

File tree

65 files changed

+976
-133
lines changed

Some content is hidden

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

65 files changed

+976
-133
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install dependencies
3232
run: pnpm install
3333
- name: Lint
34-
run: pnpm prettier --check .
34+
run: pnpm lint
3535
- name: Build
3636
run: pnpm build
3737
- name: Test

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
nodejs 18.18.0
2+
pnpm 8.10.5

docs/demo/src/content/tutorial/1-forms-css/1-introduction/1-welcome/_files/welcome.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
33
Hello, World!
44

docs/demo/src/content/tutorial/1-forms-css/1-introduction/1-welcome/content.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Style up your forms!
44
slug: welcome
55
focus: /welcome.css
66
---
7+
78
:::info{noBorder=true title="Welcome!"}
89
This is a demo tutorial built with <a href="https://tutorialkit.dev" target="_blank">TutorialKit</a>. Although we use it for demonstration purposes, the lessons include actual CSS techniques, so we hope you'll enjoy them and learn something new!
910
:::
@@ -12,4 +13,4 @@ This is a demo tutorial built with <a href="https://tutorialkit.dev" target="_bl
1213

1314
Forms are an incredibly common set of HTML elements – they are a part of almost every web app – but styling them is often not as straightforward as styling a typical `div` or `section`.
1415

15-
This tutorial will let you learn and experiment with some practical techniques that will help elevate your form's CSS to the next level!
16+
This tutorial will let you learn and experiment with some practical techniques that will help elevate your form's CSS to the next level!

docs/demo/src/content/tutorial/1-forms-css/2-colors/1-accent-color/content.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ Such colors might not fit your brand, or the current theme of your application.
1515

1616
Thankfully, you can change them, and the good news is: you only need one CSS property to do that!
1717

18-
1918
Try setting `accent-color` for the whole document by adding the following code inside the `body` selector:
2019

21-
```css add={2}
20+
```css add={2}
2221
body {
23-
accent-color: #ff3399;
22+
accent-color: #ff3399;
2423
}
25-
```
24+
```

docs/demo/src/content/tutorial/1-forms-css/2-colors/2-progressbar/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Although `accent-color` that we've set in the previous step already impacts this
1414

1515
Let's start by setting removing the border from the element. As you do it, you will notice that it will also change other aspects of the default appearance, like the height and radius.
1616

17-
```css add={2}
17+
```css add={2}
1818
progress {
19-
border: none;
19+
border: none;
2020
}
21-
```
21+
```

docs/demo/src/content/tutorial/1-forms-css/2-colors/3-more-progressbar/content.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ template: default
88

99
## Styling the `<progress>`
1010

11-
Now that the default appearance is turned off, we can start customizing the element. Progress bar consists of two parts:
11+
Now that the default appearance is turned off, we can start customizing the element. Progress bar consists of two parts:
1212

1313
- `progress-bar`
1414
- `progress-value`
@@ -17,12 +17,12 @@ Note: this part is not a standardized CSS yet, so when creating these two select
1717

1818
```css
1919
progress::-webkit-progress-bar {
20-
/* ... */
20+
/* ... */
2121
}
2222

2323
progress::-webkit-progress-value {
24-
/* ... */
24+
/* ... */
2525
}
2626
```
2727

28-
In `style.css` you already see these selectors. Try styling them up: set `background` and `border-radius` to values you like!
28+
In `style.css` you already see these selectors. Try styling them up: set `background` and `border-radius` to values you like!

docs/demo/src/content/tutorial/1-forms-css/2-colors/4-handle-firefox/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ We should make sure only browsers that can support this kind of customization ap
1818
}
1919
```
2020

21-
In `style.css` you already see these selectors. Try styling them up: set `background` and `border-radius` to values you like!
21+
In `style.css` you already see these selectors. Try styling them up: set `background` and `border-radius` to values you like!

docs/demo/src/content/tutorial/1-forms-css/3-fieldset/1-fieldset-element/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ slug: fieldset-element
55
focus: /index.html
66
---
77

8-
The `<fieldset>` HTML element groups related form controls, such as buttons, inputs, textareas, and labels, within a web form.
8+
The `<fieldset>` HTML element groups related form controls, such as buttons, inputs, textareas, and labels, within a web form.
99

1010
This allows you to apply common styling and functional rules to the entire set of elements. Let's take a closer look at working with fieldsets!
1111

12-
The current forms includes 6 inputs and we will want each pair to be visually and logically grouped together.
12+
The current forms includes 6 inputs and we will want each pair to be visually and logically grouped together.
1313

1414
Create **3 fieldsets** by wrapping them around the markup responsible for displaing the form fields:
1515

@@ -24,4 +24,4 @@ Create **3 fieldsets** by wrapping them around the markup responsible for displa
2424
<input id="q_2" />
2525
</div>
2626
</fieldset>
27-
```
27+
```

docs/demo/src/content/tutorial/1-forms-css/3-fieldset/2-a-legend/content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ slug: a-legend
55
focus: /index.html
66
---
77

8-
Even with the default styling `<fieldset>` already visually separates one group of form controls from another.
9-
It might be better to explain to a form user what each group represents. That's the purpose of a `<legend>` element.
8+
Even with the default styling `<fieldset>` already visually separates one group of form controls from another.
9+
It might be better to explain to a form user what each group represents. That's the purpose of a `<legend>` element.
1010

1111
Let's add a legend to each of our fieldsets:
1212

@@ -22,4 +22,4 @@ Let's add a legend to each of our fieldsets:
2222
<input id="q_2" />
2323
</div>
2424
</fieldset>
25-
```
25+
```

0 commit comments

Comments
 (0)