Skip to content

Commit c727ecd

Browse files
authored
Merge pull request #1 from sgratzl/sgratzl/ts
Migrate to TypeScript
2 parents 79e2578 + 1d36cc3 commit c727ecd

File tree

88 files changed

+4990
-2139
lines changed

Some content is hidden

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

88 files changed

+4990
-2139
lines changed

.editorconfig

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

.eslintrc.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
module.exports = {
2-
env: { es6: true },
3-
extends: ['plugin:prettier/recommended'],
4-
plugins: ['prettier'],
5-
parserOptions: {
6-
ecmaVersion: 2020,
7-
sourceType: 'module',
2+
extends: ['react-app', 'prettier/@typescript-eslint', 'plugin:prettier/recommended'],
3+
settings: {
4+
react: {
5+
version: '99.99.99',
6+
},
87
},
98
};

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
*.less text
2121
*.styl text
2222
*.js text
23-
*.jsx text
2423
*.ts text
25-
*.tsx text
2624
*.coffee text
2725
*.json text
2826
*.htm text

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [sgratzl]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@ assignees: ''
77
---
88

99
<!--A clear and concise description of what the bug is.-->
10+
1011
When I...
1112

1213
**To Reproduce**
14+
1315
<!--Steps to reproduce the behavior:
1416
-->
15-
1.
17+
18+
1.
1619

1720
**Expected behavior**
21+
1822
<!--A clear and concise description of what you expected to happen.-->
1923

2024
**Screenshots**
25+
2126
<!--If applicable, add screenshots to help explain your problem.-->
2227

2328
**Context**
2429

2530
- Version:
26-
- Browser:
31+
- Browser:
2732

2833
**Additional context**
34+
2935
<!--Add any other context about the problem here.-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ blank_issues_enabled: true
22
# contact_links:
33
# - name: Samuel Gratzl
44
# url: https://www.sgratzl.com
5-
# about: Please ask and answer questions here.
5+
# about: Please ask and answer questions here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ assignees: ''
77
---
88

99
<!--A clear and concise description of what feature you are missing.-->
10+
1011
It would be great if ...
1112

1213
**User story**
14+
1315
<!--Describe your problem, feature you are missing, and how you image to look like.-->
1416

1517
**Additional context**
18+
1619
<!--Add any other context or screenshots about the feature request here.-->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ assignees: ''
1010
A clear and concise description of what your question is.
1111
If possible add a CodePen or CodeSandbox link to illustrate your problem
1212
-->
13+
1314
I'm having the following question...
1415

1516
**Screenshots / Sketches**
17+
1618
<!--If applicable, add screenshots or sketches to help explain your question.-->
1719

1820
**Context**
1921

2022
- Version:
21-
- Browser:
23+
- Browser:
2224

2325
**Additional context**
26+
2427
<!--Add any other context about the question here.-->

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ jobs:
99
- uses: actions/checkout@v2
1010
- uses: actions/setup-node@v1
1111
with:
12-
node-version: "12.x"
12+
node-version: '12.x'
1313
- run: npm i -g yarn
14-
- run: yarn set version berry
14+
- run: yarn set version 2
15+
- run: cat .yarnrc_patch.yml >> .yarnrc.yml
1516
- run: yarn config set checksumBehavior ignore
1617
- name: Cache Node.js modules
17-
uses: actions/cache@v2
18+
uses: actions/cache@v1
1819
with:
1920
path: ./.yarn
20-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
21+
key: ${{ runner.os }}-yarn2-${{ hashFiles('**/yarn.lock') }}
2122
restore-keys: |
22-
${{ runner.os }}-yarn-
23+
${{ runner.os }}-yarn2-
2324
- run: yarn install
2425
- run: yarn build
2526
- run: yarn lint

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ npm-debug.log*
1111
/.pnp.js
1212

1313
# Build files
14-
/build
14+
/.tmp
15+
/dist
1516

1617
*.tgz
17-
/.vscode
18-
19-
/sample_treeshake/build
18+
/.vscode/extensions.json
19+
/docs
2020
__diff_output__

0 commit comments

Comments
 (0)