Skip to content

Commit 9b24892

Browse files
authored
Merge pull request #41 from typescript-tutorial-exercises/dev
release-20240602
2 parents 05959fb + 2c48ea3 commit 9b24892

File tree

198 files changed

+2340
-45372
lines changed

Some content is hidden

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

198 files changed

+2340
-45372
lines changed

.eslintrc.json

+13-21
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"plugin:react/jsx-runtime",
2323
"plugin:import/recommended",
2424
"plugin:compat/recommended",
25-
"plugin:prettier/recommended",
2625
"plugin:eslint-comments/recommended"
2726
],
2827
"parser": "@typescript-eslint/parser",
@@ -47,10 +46,6 @@
4746
[
4847
"@src",
4948
"./src"
50-
],
51-
[
52-
"@problems",
53-
"./problems"
5449
]
5550
]
5651
},
@@ -83,13 +78,24 @@
8378
"newlines-between": "ignore"
8479
}
8580
],
81+
"quotes": [
82+
"error",
83+
"single"
84+
],
85+
"quote-props": [
86+
"error",
87+
"as-needed"
88+
],
8689
"semi": [
8790
"error",
8891
"always"
8992
],
90-
"quotes": [
93+
"semi-spacing": [
9194
"error",
92-
"single"
95+
{
96+
"before": false,
97+
"after": true
98+
}
9399
],
94100
"no-trailing-spaces": "error",
95101
"@typescript-eslint/no-unused-vars": [
@@ -100,20 +106,6 @@
100106
],
101107
"max-len": ["error", { "code": 120, "ignoreComments": true }],
102108
"object-curly-spacing": ["error", "always"],
103-
"prettier/prettier": [
104-
"error",
105-
{
106-
"printWidth": 80,
107-
"tabWidth": 2,
108-
"useTabs": false,
109-
"semi": true,
110-
"singleQuote": true,
111-
"trailingComma": "all",
112-
"bracketSpacing": true,
113-
"jsxBracketSameLine": false,
114-
"arrowParens": "avoid"
115-
}
116-
],
117109
"react/jsx-indent": ["error", 2],
118110
"react/jsx-indent-props": ["error", 2],
119111
"react/jsx-tag-spacing": "error",

.github/CONTRIBUTING.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ Please follow the commit specification. See [`.commitlintrc.json`](https://githu
4949
### Commonly used NPM scripts
5050

5151
```bash
52-
# add new problem
53-
$ yarn new
5452
# run project in development mode
5553
$ yarn dev
5654
# build all dist files
@@ -64,7 +62,7 @@ There are some other scripts available in the `scripts` section of the `package.
6462
- **`assets`**: contains static files of the site
6563
- **`config`**: contains configuration files
6664
- **`src`**: contains the source code
67-
- **`problems`**: contains all the problems
65+
- **`tools`**: contains the built-in config and plugin files
6866

6967
All our source files are written in typescript, please make sure your submissions have strict type deduction and follow eslint specifications.
7068

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
Please go to [typescript-tutorial-exercises.github.io](https://typescript-tutorial-exercises.github.io/) to start your TypeScript travel!
1111

12+
All exercises are from [type-challenges](https://github.com/type-challenges/type-challenges).
13+
1214
## Contribution
1315

1416
Feel free to dive in! Open an issue or submit PRs. It may be helpful to read the [Contributor Guide](./.github/CONTRIBUTING.md).
@@ -26,6 +28,7 @@ This project is free and open-source software licensed under the [MIT License](.
2628

2729
This project partially copies code from the following projects, their licenses are listed in [Third-party library licenses](./THIRD-PARTY-LICENSE).
2830

29-
| Project | License |
30-
| ------------- | ------------- |
31-
| [typescript-exercises/typescript-exercises](https://github.com/typescript-exercises/typescript-exercises) | [MIT](https://github.com/typescript-exercises/typescript-exercises/blob/main/LICENSE) |
31+
| Project | License |
32+
|:----------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------:|
33+
| [type-challenges](https://github.com/type-challenges/type-challenges) | [MIT](https://github.com/type-challenges/type-challenges/blob/main/LICENSE) |
34+
| [typescript-exercises/typescript-exercises](https://github.com/typescript-exercises/typescript-exercises) | [MIT](https://github.com/typescript-exercises/typescript-exercises/blob/main/LICENSE) |

THIRD-PARTY-LICENSE

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

329
MIT License
Binary file not shown.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.de.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.es.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.fr.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.it.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.ja.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.ko.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.ru.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.zh-cn.js

-8
This file was deleted.

assets/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.zh-tw.js

-8
This file was deleted.

0 commit comments

Comments
 (0)