Skip to content

Commit 0d084c8

Browse files
committed
Initial Commit
0 parents  commit 0d084c8

29 files changed

+14277
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SKIP_PREFLIGHT_CHECK=true

.eslintrc.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
extends: [
4+
// 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
5+
// 'react-app',
6+
// 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
7+
// 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
8+
// 'eslint:recommended',
9+
'react-app',
10+
'plugin:react/recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'prettier/@typescript-eslint',
13+
'plugin:prettier/recommended',
14+
],
15+
plugins: [
16+
'react',
17+
'@typescript-eslint',
18+
'prettier'
19+
],
20+
env: {
21+
'browser': true,
22+
'jasmine': true,
23+
'jest': true,
24+
'node': true,
25+
},
26+
rules: {
27+
'prettier/prettier': ['error', { 'singleQuote': true }],
28+
'@typescript-eslint/explicit-function-return-type': [0],
29+
'@typescript-eslint/no-use-before-define': [0],
30+
'@typescript-eslint/no-empty-interface': [0],
31+
'no-console': [0],
32+
},
33+
settings: {
34+
react: {
35+
pragma: 'React',
36+
version: 'detect',
37+
}
38+
},
39+
parserOptions: {
40+
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
41+
sourceType: 'module', // Allows for the use of imports
42+
},
43+
};

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
semi: false,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 120,
6+
tabWidth: 2,
7+
};

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.formatOnSave": false,
3+
"eslint.autoFixOnSave": true,
4+
"eslint.validate": [
5+
"javascript",
6+
"javascriptreact",
7+
{
8+
"language": "typescript",
9+
"autoFix": true
10+
},
11+
{
12+
"language": "typescriptreact",
13+
"autoFix": true
14+
}
15+
],
16+
}

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
## Available Scripts
4+
5+
In the project directory, you can run:
6+
7+
### `npm start`
8+
9+
Runs the app in the development mode.<br>
10+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11+
12+
The page will reload if you make edits.<br>
13+
You will also see any lint errors in the console.
14+
15+
### `npm test`
16+
17+
Launches the test runner in the interactive watch mode.<br>
18+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19+
20+
### `npm run build`
21+
22+
Builds the app for production to the `build` folder.<br>
23+
It correctly bundles React in production mode and optimizes the build for the best performance.
24+
25+
The build is minified and the filenames include the hashes.<br>
26+
Your app is ready to be deployed!
27+
28+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29+
30+
### `npm run eject`
31+
32+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33+
34+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35+
36+
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37+
38+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39+
40+
## Learn More
41+
42+
43+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
44+
45+
To learn React, check out the [React documentation](https://reactjs.org/).
46+
47+
48+
# Setup Docs
49+
50+
# Useful docs
51+
52+
Infering React properties TypeScript definition from React runtime PropTypes
53+
https://dev.to/busypeoples/notes-on-typescript-inferring-react-proptypes-1g88
54+
55+
https://dev.to/ferdaber/typescript-and-jsx-part-iii---typing-the-props-for-a-component-1pg2
56+
https://dev.to/benweiser/how-to-set-up-eslint-typescript-prettier-with-create-react-app-3675
57+
https://medium.com/@dors718/linting-your-react-typescript-project-with-eslint-and-prettier-2423170c3d42
58+
https://medium.com/quick-code/how-to-integrate-eslint-prettier-in-react-6efbd206d5c4
59+
https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb

0 commit comments

Comments
 (0)