Skip to content

Commit 005e227

Browse files
authored
Merge pull request #474 from spences10/feat/update-general-observer
2 parents f4d791b + c2e4f40 commit 005e227

Some content is hidden

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

75 files changed

+1768
-1199
lines changed

.cspell/cambridge-dictionary-words.txt

Whitespace-only changes.

.cspell/code.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
colspan
2+
iframe
3+
markdownlint
4+
tbody
5+
testid
6+
tfoot
7+
valign
8+
webdev

.cspell/my-words.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
genericembed
2+
mycomponent
3+
oldschool

.cspell/names.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
adamwathan
2+
anchorfm
3+
Arellano
4+
Buzzsprout
5+
Cahllagerfeld
6+
codepen
7+
daisyui
8+
Deezer
9+
Drasner
10+
Ennoriel
11+
Hernández
12+
João
13+
Laubstein
14+
Mandal
15+
markdownlint
16+
Matías
17+
Maxime
18+
mdsvex
19+
Palmeiro
20+
pauliescanlon
21+
pnpm
22+
purrfect
23+
rehype
24+
sdras
25+
simplecast
26+
smartypants
27+
soundcloud
28+
Souvik
29+
stackblitz
30+
svead
31+
sveltekit
32+
tailwindcss
33+
vieria
34+
vite
35+
vitejs
36+
youtube
37+
Zencastr

.eslintrc.cjs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module.exports = {
2-
root: true,
3-
parser: '@typescript-eslint/parser',
4-
extends: [
5-
'eslint:recommended',
6-
'plugin:@typescript-eslint/recommended',
7-
'prettier',
8-
],
9-
plugins: ['svelte3', '@typescript-eslint'],
10-
ignorePatterns: ['*.cjs'],
11-
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
12-
settings: {
13-
'svelte3/typescript': () => require('typescript'),
14-
},
15-
parserOptions: {
16-
sourceType: 'module',
17-
ecmaVersion: 2020,
18-
},
19-
env: {
20-
browser: true,
21-
es2017: true,
22-
node: true,
23-
},
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'prettier',
8+
],
9+
plugins: ['svelte3', '@typescript-eslint'],
10+
ignorePatterns: ['*.cjs'],
11+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
12+
settings: {
13+
'svelte3/typescript': () => require('typescript'),
14+
},
15+
parserOptions: {
16+
sourceType: 'module',
17+
ecmaVersion: 2020,
18+
},
19+
env: {
20+
browser: true,
21+
es2017: true,
22+
node: true,
23+
},
2424
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,42 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
10+
1111
A clear and concise description of what the bug is.
1212

1313
**To Reproduce**
14+
1415
Steps to reproduce the behavior:
16+
1517
1. Go to '...'
1618
2. Click on '....'
1719
3. Scroll down to '....'
1820
4. See error
1921

2022
**Expected behavior**
23+
2124
A clear and concise description of what you expected to happen.
2225

2326
**Screenshots**
27+
2428
If applicable, add screenshots to help explain your problem.
2529

2630
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
31+
32+
- OS: [e.g. iOS]
33+
- Browser [e.g. chrome, safari]
34+
- Version [e.g. 22]
3035

3136
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
37+
38+
- Device: [e.g. iPhone6]
39+
- OS: [e.g. iOS8.1]
40+
- Browser [e.g. stock browser, safari]
41+
- Version [e.g. 22]
3642

3743
**Additional context**
44+
3845
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
11+
A clear and concise description of what the problem is. Ex. I'm always
12+
frustrated when [...]
1213

1314
**Describe the solution you'd like**
15+
1416
A clear and concise description of what you want to happen.
1517

1618
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
19+
20+
A clear and concise description of any alternative solutions or
21+
features you've considered.
1822

1923
**Additional context**
24+
2025
Add any other context or screenshots about the feature request here.

.github/workflows/unit-test.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
11
name: 'Tests: Unit'
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
types: [opened, synchronize]
8+
59
jobs:
6-
unit_tests:
10+
unit-tests:
711
name: Run unit tests
812
runs-on: ubuntu-latest
13+
914
steps:
15+
- uses: actions/cache@v3
16+
with:
17+
path: ~/.pnpm-store
18+
key:
19+
${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
20+
restore-keys: |
21+
${{ runner.os }}-pnpm-
22+
- uses: actions/checkout@v3
1023
- uses: pnpm/[email protected]
1124
with:
1225
version: 6.0.2
13-
- uses: actions/checkout@v3
1426
- uses: actions/setup-node@v3
15-
- name: Install pnpm
16-
run: pnpm i
27+
with:
28+
node-version: 18.x
29+
- name: Install dependencies
30+
run: pnpm install
1731
- name: Build
1832
run: pnpm run build
1933
env:
2034
PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }}
2135
PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }}
2236
- name: Test
2337
run: pnpm run test:ci
38+
- name: Check spelling
39+
run: pnpm run cspell

.prettierignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.prettierrc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
2-
"singleQuote": true,
3-
"semi": false,
4-
"trailingComma": "es5",
5-
"printWidth": 70,
6-
"arrowParens": "avoid",
7-
"proseWrap": "always"
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"semi": false,
5+
"trailingComma": "es5",
6+
"printWidth": 70,
7+
"arrowParens": "avoid",
8+
"proseWrap": "always",
9+
"plugins": ["prettier-plugin-svelte"],
10+
"pluginSearchDirs": ["."],
11+
"overrides": [
12+
{ "files": "*.svelte", "options": { "parser": "svelte" } }
13+
]
814
}

0 commit comments

Comments
 (0)