Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules 2 #2

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cb1cdda
init: start modules 1
alextes90 Mar 15, 2023
1dd834e
Merge branch 'main' of github.com:alextes90/rs-react-modules into mod…
alextes90 Mar 15, 2023
865dd26
feat: add routing
alextes90 Mar 15, 2023
2968917
feat: add serachBar component
alextes90 Mar 15, 2023
ed74341
feat: add cards
alextes90 Mar 16, 2023
eb1bd42
refactor: remove api request to single file
alextes90 Mar 16, 2023
5ec4df5
feat: add testing
alextes90 Mar 16, 2023
76536d9
refactor: add coverage to lint ignore
alextes90 Mar 16, 2023
711d77d
feat: add plugin
alextes90 Mar 18, 2023
ca01d39
refactor: add the name of the page
alextes90 Mar 19, 2023
a909807
refactor: add 404 to current Page
alextes90 Mar 19, 2023
45df2b0
refactor: move HOC to hoc folder
alextes90 Mar 23, 2023
7c4ba55
refactor: remove api call
alextes90 Mar 23, 2023
ad16ba1
add: form to submit
alextes90 Mar 23, 2023
af3ef1c
add: add form reset
alextes90 Mar 23, 2023
fa95f10
add: formCard is added to list
alextes90 Mar 24, 2023
36f6244
add: add tests
alextes90 Mar 24, 2023
92a9f1e
fix: change formCard style
alextes90 Mar 24, 2023
4ac2fb9
add: check if file is uploaded
alextes90 Mar 26, 2023
aaa56b9
refactor: remove lint comments
alextes90 Mar 27, 2023
b7879f3
refactor: change lint rules
alextes90 Mar 28, 2023
f07cfa7
refactor: chnage capital letter
alextes90 Mar 28, 2023
8bdbc33
refactor: chnage ti UpperCase
alextes90 Mar 28, 2023
72d3cfb
refactor: change to default export
alextes90 Mar 28, 2023
18b4e58
fix: change prettir rules
alextes90 Mar 29, 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
44 changes: 44 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['react', '@typescript-eslint', 'prettier', 'react-hooks'],
rules: {
'react/react-in-jsx-scope': 0,
'react/prop-types': 0,
'react/display-name': 0,
'jsx-a11y/label-has-associated-control': 0,
'react/prefer-stateless-function': 0,
'react/no-did-update-set-state': 0,
'react/function-component-definition': 0,
'react/jsx-props-no-spreading': 0,
},
settings: {
react: {
pragma: 'React',
version: 'detect',
},
},
ignorePatterns: ['.eslintrc.cjs', 'dist', 'vite.config.ts', 'coverage'],
};
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
coverage

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"endOfLine": "auto",
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"arrowParens": "always"
}
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading