Skip to content

Commit fd2dbd5

Browse files
committed
Port to typescript
1 parent 90a22d6 commit fd2dbd5

File tree

223 files changed

+24237
-27151
lines changed

Some content is hidden

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

223 files changed

+24237
-27151
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
build/*
1+
build/*
2+
/**/*.d.ts

.eslintrc.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@typescript-eslint/parser",
33
"parserOptions": {
44
"ecmaVersion": 6,
55
"sourceType": "module",
66
"ecmaFeatures": {
7-
"jsx": true,
87
"modules": true,
98
"experimentalObjectRestSpread": true
109
}
1110
},
12-
"plugins": [
13-
"react"
14-
],
15-
"extends": ["eslint:recommended", "plugin:react/recommended"],
11+
"plugins": ["@typescript-eslint"],
12+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
1613
"rules": {
1714
"comma-dangle": 0,
1815
"no-unused-vars": "warn",
1916
"no-unexpected-multiline": "warn",
20-
"prefer-const": "warn"
21-
},
22-
"settings": {
23-
"react": {
24-
"pragma": "React",
25-
"version": "15.6.1"
26-
}
17+
"prefer-const": "warn",
18+
"@typescript-eslint/no-empty-function": "off",
19+
"@typescript-eslint/explicit-module-boundary-types": "off",
20+
"@typescript-eslint/no-explicit-any": "off",
21+
"@typescript-eslint/no-var-requires": "off"
2722
},
23+
"settings": {},
2824
"env": {
2925
"browser": true,
3026
"node": true,
3127
"jasmine": true,
3228
"jest": true,
3329
"es6": true
3430
}
35-
}
31+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help improve simple-keyboard-layouts
4+
title: ''
5+
labels: ''
6+
assignees: hodgef
7+
8+
---
9+
10+
**Simple-keyboard version**
11+
As some bugs have been addressed in later versions, please ensure you are running the latest.
12+
13+
**Describe the bug**
14+
A clear and concise description of what the bug is. Providing a [sandbox example](https://codesandbox.io/s/vanilla) or code depicting the issue is important, as this will help us reproduce the issue.
15+
16+
**Screenshots**
17+
If applicable, add screenshots to help explain your problem.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea you'd like to see in simple-keyboard-layouts
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**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 [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/github.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# About .github
2+
3+
This directory handles special features to be used on simple-keyboard-layouts' Github repository.
4+
It is not needed for simple-keyboard-layouts to run and can be safely removed.

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Description
2+
3+
A few sentences describing the overall goals of the pull request's commits.
4+
5+
## Checks
6+
7+
- [ ] Tests ( `npm run test` ) are passing

.github/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 5
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 2
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
- "💥 Bug"
10+
- "⚡️ Enhancement"
11+
# Label to use when marking an issue as stale
12+
staleLabel: Stale
13+
# Comment to post when marking an issue as stale. Set to `false` to disable
14+
markComment: >
15+
This issue has been automatically marked as stale because it has not had
16+
recent activity. It will be closed if no further activity occurs. Thank you
17+
for your contributions.
18+
# Comment to post when closing a stale issue. Set to `false` to disable
19+
closeComment: false

.github/workflows/main.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Build
2-
on: [push, pull_request]
2+
on: [push]
33

44
jobs:
55
build:
@@ -9,16 +9,15 @@ jobs:
99
node-version: [12.x]
1010
os: [ubuntu-latest]
1111
steps:
12-
- uses: actions/checkout@v1
13-
- name: Use Node.js ${{ matrix.node_version }}
14-
uses: actions/setup-node@v1
15-
with:
16-
node-version: ${{ matrix.node_version }}
17-
- name: npm install, build, and test
18-
run: |
19-
npm install
20-
npm run start -- --testMode
21-
npm run demo
22-
env:
23-
CI: true
24-
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node_version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node_version }}
17+
- name: npm install, build, and test
18+
run: |
19+
npm install
20+
npm run test
21+
env:
22+
CI: true
23+

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818

1919
- name: Setup GIT
2020
run: |
21+
git reset --hard
2122
git config --local --list
2223
git checkout master
2324
git config user.email "$GH_EMAIL"

.github/workflows/pull_request.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build PR
2+
on: [pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
node-version: [12.x]
10+
os: [ubuntu-latest]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node_version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node_version }}
17+
- name: npm install, build, and test
18+
run: |
19+
npm install
20+
npm run test
21+
env:
22+
CI: true

0 commit comments

Comments
 (0)