Skip to content

Commit 6b7d2ba

Browse files
authored
Rewrite (#137)
* Rewrite * Update main branch name * Remove references to wss * Add prettierignore * Add license * Consistency with previous version * Add nbsp * Update nvmrc * Update * Reimplement dependabot * Remove background
1 parent 594abd0 commit 6b7d2ba

Some content is hidden

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

50 files changed

+9059
-4632
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ trim_trailing_whitespace = false
1414
[{*.json,*.yml,*.yaml}]
1515
indent_size = 2
1616
indent_style = space
17+
18+
[messages.json]
19+
insert_final_newline = false

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Allow ESLint to lint hidden files
2+
!.*
3+
4+
dist/**
5+
node_modules/**
6+
.solid/**
7+
src/assets/icons.tsx

.eslintrc.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
plugins:
2+
- solid
3+
- '@typescript-eslint/eslint-plugin'
4+
- eslint-plugin-tsdoc
5+
- react
6+
extends:
7+
- eslint:recommended
8+
- plugin:solid/recommended
9+
- plugin:@typescript-eslint/recommended
10+
- plugin:react/recommended
11+
parser: '@typescript-eslint/parser'
12+
parserOptions:
13+
project: ./tsconfig.json
14+
tsconfigRootDir: .
15+
ecmaVersion: 2018
16+
sourceType: module
17+
rules:
18+
tsdoc/syntax: warn
19+
react/react-in-jsx-scope: off
20+
react/no-unknown-property: off
21+
no-mixed-spaces-and-tabs:
22+
- error
23+
- smart-tabs
24+
'@typescript-eslint/ban-ts-comment': off
25+
prefer-const:
26+
- error
27+
- destructuring: all

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: install
16+
run: npm i --legacy-peer-deps
17+
18+
- name: build
19+
run: npm run build
20+
21+
- name: deploy pages
22+
uses: JamesIves/[email protected]
23+
with:
24+
branch: gh-pages
25+
folder: dist/public

.github/workflows/lint.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Lint
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize]
37
jobs:
48
lint:
59
name: Run linters
@@ -8,14 +12,20 @@ jobs:
812
- name: Checkout the repository
913
uses: actions/checkout@v3
1014

15+
- name: Get Node.js version from .nvmrc
16+
id: get-node-version
17+
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
18+
1119
- name: Setup Node.js
1220
uses: actions/setup-node@v3
1321
with:
1422
node-version-file: '.nvmrc'
1523

1624
- name: Install dependencies
17-
run: npm install
25+
run: npm ci
1826

1927
- name: Run linters
2028
run: |
2129
npm run lint
30+
env:
31+
CI: true

.gitignore

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1-
/.idea/
2-
/node_modules/
1+
2+
dist
3+
.solid
4+
.output
5+
.vercel
6+
.netlify
7+
netlify
8+
9+
# dependencies
10+
/node_modules
11+
12+
# IDEs and editors
13+
/.idea
14+
.project
15+
.classpath
16+
*.launch
17+
.settings/
18+
19+
# Temp
20+
gitignore
21+
22+
# System Files
23+
.DS_Store
24+
Thumbs.db

.htmlvalidate.json

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

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
dist/**
2+
node_modules/**
3+
.solid/**
4+
15
package.json
26
package-lock.json

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"drewbourne.vscode-remark-lint",
5+
"esbenp.prettier-vscode",
6+
"stylelint.vscode-stylelint",
7+
"editorconfig.editorconfig"
8+
]
9+
}

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"eslint.format.enable": true,
3+
"editor.formatOnSave": true,
4+
5+
"[typescript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[typescriptreact]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[javascript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"[json]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
}
17+
}

0 commit comments

Comments
 (0)