Skip to content

Commit fe858db

Browse files
committed
feat: initial commit + Added the use-hotkeys hook.
0 parents  commit fe858db

31 files changed

+5007
-0
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintrc

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint", "no-only-tests", "eslint-comments"],
5+
"ignorePatterns": ["node_modules", "dist", "dev", "tsup.config.ts", "vitest.config.ts"],
6+
"parserOptions": {
7+
"project": "./tsconfig.json",
8+
"tsconfigRootDir": ".",
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"prefer-const": "warn",
13+
"no-console": "warn",
14+
"no-debugger": "warn",
15+
"@typescript-eslint/no-unused-vars": [
16+
"warn",
17+
{
18+
"argsIgnorePattern": "^_",
19+
"varsIgnorePattern": "^_",
20+
"caughtErrorsIgnorePattern": "^_"
21+
}
22+
],
23+
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
24+
"@typescript-eslint/no-unnecessary-condition": "warn",
25+
"@typescript-eslint/no-useless-empty-export": "warn",
26+
"no-only-tests/no-only-tests": "warn",
27+
"eslint-comments/no-unused-disable": "warn"
28+
}
29+
}

.github/ISSUE_TEMPLATE/bug-report.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "🐛 Bug report"
2+
description: Create a report to help us improve
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Thank you for reporting an issue :pray:.
8+
9+
The more information you fill in, the better the community can help you.
10+
- type: textarea
11+
id: description
12+
attributes:
13+
label: Describe the bug
14+
description: Provide a clear and concise description of the challenge you are running into.
15+
validations:
16+
required: true
17+
- type: input
18+
id: link
19+
attributes:
20+
label: Minimal Reproduction Link
21+
description: |
22+
Please provide a link to a minimal reproduction of the bug you are running into.
23+
It makes the process of verifying and fixing the bug much easier.
24+
Note:
25+
- Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the solid-js and solid-primitives.
26+
- To create a shareable code example you can use [Stackblitz](https://stackblitz.com/) (https://solid.new). Please no localhost URLs.
27+
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
28+
placeholder: |
29+
e.g. https://stackblitz.com/edit/...... OR Github Repo
30+
validations:
31+
required: true
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Feature Request"
2+
description: For feature/enhancement requests. Please search for existing issues first.
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Thank you for bringing your ideas here :pray:.
8+
9+
The more information you fill in, the better the community can understand your idea.
10+
- type: textarea
11+
id: problem
12+
attributes:
13+
label: Describe The Problem To Be Solved
14+
description: Provide a clear and concise description of the challenge you are running into.
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: solution
19+
attributes:
20+
label: Suggest A Solution
21+
description: |
22+
A concise description of your preferred solution. Things to address include:
23+
- Details of the technical implementation
24+
- Tradeoffs made in design decisions
25+
- Caveats and considerations for the future
26+
validations:
27+
required: true

.github/workflows/codeql.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "30 1 * * 0"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v3
21+
22+
- name: Initialize CodeQL
23+
uses: github/codeql-action/init@v1
24+
with:
25+
languages: javascript
26+
27+
- name: Perform CodeQL Analysis
28+
uses: github/codeql-action/analyze@v1
29+
with:
30+
upload: false
31+
output: sarif-results
32+
33+
# Only include files that are public
34+
- name: filter-sarif
35+
uses: advanced-security/filter-sarif@main
36+
with:
37+
patterns: |
38+
/src/**/*.*
39+
-**/*.test.*
40+
input: sarif-results/javascript.sarif
41+
output: sarif-results/javascript.sarif
42+
43+
- name: Upload SARIF
44+
uses: github/codeql-action/upload-sarif@v1
45+
with:
46+
sarif_file: sarif-results/javascript.sarif

.github/workflows/format.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Format
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
format:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
# Give the default GITHUB_TOKEN write permission to commit and push the
13+
# added or changed files to the repository.
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: pnpm/[email protected]
19+
20+
- name: Setup Node.js environment
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 18
24+
25+
# "git restore ." discards changes to package-lock.json
26+
- name: Install dependencies
27+
run: |
28+
pnpm install --no-frozen-lockfile --ignore-scripts
29+
git restore .
30+
31+
- name: Format
32+
run: pnpm run format
33+
34+
- name: Add, Commit and Push
35+
uses: stefanzweifel/git-auto-commit-action@v4
36+
with:
37+
commit_message: 'Format'

.github/workflows/tests.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 2
18+
19+
- uses: pnpm/[email protected]
20+
21+
- name: Setup Node.js environment
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 18
25+
cache: pnpm
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Build
31+
run: pnpm run build
32+
33+
- name: Test
34+
run: pnpm run test
35+
env:
36+
CI: true
37+
38+
- name: Lint
39+
run: pnpm run lint

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
gitignore
4+
5+
# tsup
6+
tsup.config.bundled_*.{m,c,}s

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"semi": false,
6+
"singleQuote": true,
7+
"useTabs": false,
8+
"arrowParens": "avoid",
9+
"bracketSpacing": true
10+
}

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
3+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Carlo Antonio Taleon
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)