Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
413b430
feat: add CRA react + typescript, add config eslint and prettier
avshir Mar 18, 2023
b1454c9
feat: add react-router-dom
avshir Mar 19, 2023
d2280d1
feat: add scss, base style .scss for app
avshir Mar 19, 2023
f30a9da
fix: update Header component
avshir Mar 19, 2023
bf844e5
feat: add HomePage, AboutPage, Page404, Footer components
avshir Mar 19, 2023
f998900
feat: add Routing v6, add Layout component, update App
avshir Mar 19, 2023
56db17c
feat: add data.ts for app, add types for data
avshir Mar 20, 2023
2c93851
feat: add Card, CardList Component, update HomePage.tsx
avshir Mar 20, 2023
3601e50
fix: update App component
avshir Mar 20, 2023
8de7a17
fix: update CardList component
avshir Mar 20, 2023
43bb8af
feat: add SearchPanel component
avshir Mar 20, 2023
8c4a00d
feat: add netlify.toml for work router in deploy
avshir Mar 20, 2023
cce6fc0
feat: add testing-library/react, axios
avshir Mar 20, 2023
16c382f
feat: add test for App Component
avshir Mar 20, 2023
7cab1ab
feat: add test for Card, CardsList Components
avshir Mar 20, 2023
2d2e772
feat: add test for Header, AboutPage, Page404 Components
avshir Mar 20, 2023
098c776
fix: update CardList for correct work tests
avshir Mar 20, 2023
854d211
refactor: apply prettier for files
avshir Mar 20, 2023
7ef5a9d
fix: update logic in SearchPanel component
avshir Mar 22, 2023
0a62e2b
fix: update SearchPanel component
avshir Mar 23, 2023
f74064a
feat: add test for App Component
avshir Mar 23, 2023
1005519
feat: add components FormPage, For
avshir Mar 24, 2023
033127c
Revert "feat: add components FormPage, For"
avshir Mar 24, 2023
8e92ad2
feat: add components FormPage, Form, add route form to App component
avshir Mar 24, 2023
fb069bd
fix: update styles in constants.scss, base.scss
avshir Mar 24, 2023
2716b34
fix: update Header Component, update style
avshir Mar 24, 2023
0bb700f
fix: update style in Page404 component
avshir Mar 24, 2023
16e2e74
fix: update FormPage component
avshir Mar 26, 2023
93fdf08
feat: add CardForm component
avshir Mar 26, 2023
ce8eb4d
feat: add CardFormList component
avshir Mar 26, 2023
75bd491
fix: update Form component
avshir Mar 26, 2023
161a81a
fix: add className in SearchPanel component
avshir Mar 26, 2023
2cfb0e9
fix: update style in base.scss
avshir Mar 26, 2023
e411a3c
feat: add test for FormPage component
avshir Mar 26, 2023
5ef9311
fix: add message before create new FormCard in Form component
avshir Mar 26, 2023
e627373
feat: add tests for CardFormList component
avshir Mar 27, 2023
68b0f0f
feat: add tests for CardForm component
avshir Mar 27, 2023
e22c1f4
fix: update test for FormPage Component
avshir Mar 27, 2023
a500bf2
fix: update Form component: add logic to show gender
avshir Mar 27, 2023
9687650
fix: delete nnecessary file
avshir Mar 28, 2023
0573136
feat: add custom validate in Form component, update styles in form.scss
avshir Mar 28, 2023
babda4d
fix: update styles .scss in some components
avshir Mar 28, 2023
deaee5c
feat: add tests for Form component
avshir Mar 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es2021": true,
"jest": true,
"node": true
},
"root": true,
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react", "prettier", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": ["error", "only-multiline"],
"react/prop-types": "off",
"react/display-name": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-var-reqiures": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5",
"jsxSingleQuote": true,
"bracketSpacing": true,

"useTabs": false,
"arrowParens": "always",
"endOfLine": "auto"
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/"
status = 200
Loading