Skip to content

Commit 9f3f1cb

Browse files
authored
Prettier linting, README update (#399)
1 parent af24166 commit 9f3f1cb

File tree

419 files changed

+6266
-13738
lines changed

Some content is hidden

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

419 files changed

+6266
-13738
lines changed

.devcontainer/devcontainer.json

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,41 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8-
// Append -bullseye or -buster to pin to an OS version.
9-
// Use -bullseye variants on local on arm64/Apple Silicon.
10-
"args": {
11-
"VARIANT": "16"
12-
}
13-
},
4+
"name": "Node.js & TypeScript",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8+
// Append -bullseye or -buster to pin to an OS version.
9+
// Use -bullseye variants on local on arm64/Apple Silicon.
10+
"args": {
11+
"VARIANT": "16"
12+
}
13+
},
1414

15-
"customizations": {
15+
"customizations": {
16+
"codespaces": {
17+
"repositories": {}
18+
},
1619

17-
"codespaces": {
18-
"repositories": {
19-
}
20-
},
21-
22-
"vscode": {
23-
"extensions": [
24-
"dbaeumer.vscode-eslint"
25-
]
26-
}
27-
},
20+
"vscode": {
21+
"extensions": ["dbaeumer.vscode-eslint"]
22+
}
23+
},
2824

29-
30-
31-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
32-
// "forwardPorts": [],
25+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26+
// "forwardPorts": [],
3327

34-
// Use 'postCreateCommand' to run commands after the container is created.
35-
// "postCreateCommand": "./.devcontainer/setup.sh",
28+
// Use 'postCreateCommand' to run commands after the container is created.
29+
// "postCreateCommand": "./.devcontainer/setup.sh",
3630

37-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
38-
"remoteUser": "node",
39-
"portsAttributes": {
40-
"3000": {
41-
"label": "Web Portal"
42-
},
43-
"4000": {
44-
"label": "Backend (Don't use)"
45-
}
46-
}
31+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
32+
"remoteUser": "node",
33+
"portsAttributes": {
34+
"3000": {
35+
"label": "Web Portal"
36+
},
37+
"4000": {
38+
"label": "Backend (Don't use)"
39+
}
40+
}
4741
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: 'Feature: '
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/dependabot.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
open-pull-requests-limit: 10
8-
- package-ecosystem: github-actions
9-
directory: "/"
10-
schedule:
11-
interval: weekly
12-
open-pull-requests-limit: 10
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: github-actions
9+
directory: '/'
10+
schedule:
11+
interval: weekly
12+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,29 @@ name: Test
33
on:
44
push:
55
branches-ignore:
6-
- "dependabot/**"
6+
- 'dependabot/**'
77
pull_request:
88

99
jobs:
1010
test:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- name: Checkout repository
16-
uses: actions/[email protected]
14+
- name: Checkout repository
15+
uses: actions/[email protected]
1716

18-
- name: Setup Node
19-
uses: actions/[email protected]
17+
- name: Setup Node
18+
uses: actions/[email protected]
2019

21-
- name: Install Dependencies
22-
run: npm ci
20+
- name: Install Dependencies
21+
run: npm ci
2322

24-
- name: Run Linting
25-
run: npm run offline-lint:js
23+
- name: Run Linting
24+
run: npm run offline-lint:js
2625

27-
- name: Run tests
28-
run: npm test
26+
- name: Run tests
27+
run: npm test
2928

30-
- name: Build container
31-
run: |
32-
docker build .
29+
- name: Build container
30+
run: |
31+
docker build .

.github/workflows/codeql-analysis.yml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
1-
name: "Code scanning - action"
1+
name: 'Code scanning - action'
22

33
on:
44
push:
55
branches-ignore:
6-
- "dependabot/**"
6+
- 'dependabot/**'
77
pull_request:
88
schedule:
99
- cron: '0 22 * * 5'
1010

1111
jobs:
1212
CodeQL-Build:
13-
1413
strategy:
1514
fail-fast: false
1615

1716
# CodeQL runs on ubuntu-latest and windows-latest
1817
runs-on: ubuntu-latest
1918

2019
steps:
21-
- name: Checkout repository
22-
uses: actions/[email protected]
23-
24-
# Initializes the CodeQL tools for scanning.
25-
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v2
27-
# Override language selection by uncommenting this and choosing your languages
28-
# with:
29-
# languages: go, javascript, csharp, python, cpp, java
30-
31-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
32-
# If this step fails, then you should remove it and run the build manually (see below)
33-
- name: Autobuild
34-
uses: github/codeql-action/autobuild@v2
35-
36-
# ℹ️ Command-line programs to run using the OS shell.
37-
# 📚 https://git.io/JvXDl
38-
39-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
40-
# and modify them (or add more) to build your code if your project
41-
# uses a compiled language
42-
43-
#- run: |
44-
# make bootstrap
45-
# make release
46-
47-
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@v2
20+
- name: Checkout repository
21+
uses: actions/[email protected]
22+
23+
# Initializes the CodeQL tools for scanning.
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v2
26+
# Override language selection by uncommenting this and choosing your languages
27+
# with:
28+
# languages: go, javascript, csharp, python, cpp, java
29+
30+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
31+
# If this step fails, then you should remove it and run the build manually (see below)
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v2
34+
35+
# ℹ️ Command-line programs to run using the OS shell.
36+
# 📚 https://git.io/JvXDl
37+
38+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
39+
# and modify them (or add more) to build your code if your project
40+
# uses a compiled language
41+
42+
#- run: |
43+
# make bootstrap
44+
# make release
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v2

.github/workflows/container.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Build
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [develop]
66
pull_request:
7-
branches: [ develop ]
7+
branches: [develop]
88

99
jobs:
1010
# Build a Docker container to validate the build
1111
containerize:
1212
runs-on: ubuntu-latest
1313
steps:
14-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
15-
- uses: actions/[email protected]
16-
- uses: docker/build-push-action@v3
14+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
15+
- uses: actions/[email protected]
16+
- uses: docker/build-push-action@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ env-orgs.json
1111
.gdn
1212
feedscan
1313
feedscan*
14+
..prettierignore.swp

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore artifacts
2+
dist
3+
4+
# View
5+
views/email/email.css

0 commit comments

Comments
 (0)