Skip to content

Commit

Permalink
Merge pull request #41 from typescript-tutorial-exercises/dev
Browse files Browse the repository at this point in the history
release-20240602
  • Loading branch information
ZLY201 committed Jun 1, 2024
2 parents 05959fb + 2c48ea3 commit 9b24892
Show file tree
Hide file tree
Showing 198 changed files with 2,340 additions and 45,372 deletions.
34 changes: 13 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"plugin:react/jsx-runtime",
"plugin:import/recommended",
"plugin:compat/recommended",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended"
],
"parser": "@typescript-eslint/parser",
Expand All @@ -47,10 +46,6 @@
[
"@src",
"./src"
],
[
"@problems",
"./problems"
]
]
},
Expand Down Expand Up @@ -83,13 +78,24 @@
"newlines-between": "ignore"
}
],
"quotes": [
"error",
"single"
],
"quote-props": [
"error",
"as-needed"
],
"semi": [
"error",
"always"
],
"quotes": [
"semi-spacing": [
"error",
"single"
{
"before": false,
"after": true
}
],
"no-trailing-spaces": "error",
"@typescript-eslint/no-unused-vars": [
Expand All @@ -100,20 +106,6 @@
],
"max-len": ["error", { "code": 120, "ignoreComments": true }],
"object-curly-spacing": ["error", "always"],
"prettier/prettier": [
"error",
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid"
}
],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-tag-spacing": "error",
Expand Down
4 changes: 1 addition & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ Please follow the commit specification. See [`.commitlintrc.json`](https://githu
### Commonly used NPM scripts

```bash
# add new problem
$ yarn new
# run project in development mode
$ yarn dev
# build all dist files
Expand All @@ -64,7 +62,7 @@ There are some other scripts available in the `scripts` section of the `package.
- **`assets`**: contains static files of the site
- **`config`**: contains configuration files
- **`src`**: contains the source code
- **`problems`**: contains all the problems
- **`tools`**: contains the built-in config and plugin files

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

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

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

All exercises are from [type-challenges](https://github.com/type-challenges/type-challenges).

## Contribution

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

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

| Project | License |
| ------------- | ------------- |
| [typescript-exercises/typescript-exercises](https://github.com/typescript-exercises/typescript-exercises) | [MIT](https://github.com/typescript-exercises/typescript-exercises/blob/main/LICENSE) |
| Project | License |
|:----------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------:|
| [type-challenges](https://github.com/type-challenges/type-challenges) | [MIT](https://github.com/type-challenges/type-challenges/blob/main/LICENSE) |
| [typescript-exercises/typescript-exercises](https://github.com/typescript-exercises/typescript-exercises) | [MIT](https://github.com/typescript-exercises/typescript-exercises/blob/main/LICENSE) |
26 changes: 26 additions & 0 deletions THIRD-PARTY-LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
type-challenges/type-challenges

MIT License

Copyright (c) 2020 Anthony Fu <https://github.com/antfu>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

==================================================================================

typescript-exercises/typescript-exercises

MIT License
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9b24892

Please sign in to comment.