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

Fix linting issues #11

Merged
merged 5 commits into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Description

This PR [short description here]

- item 1
- item 2
- ...

## Next Steps

- item 1
- item 2
- ...
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm fmt
4 changes: 4 additions & 0 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"src/**/*.{js,jsx,ts,tsx}":
- "prettier --write"
- "eslint --fix"
"*.{json,yaml,yml,css,md}": "prettier --write"
marco-souza marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
.next
node_modules
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
}
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ Este projeto tem por objetivo facilitar o processo de recepção de novos membro
## Instalação

1. Clone o repositório
- para fazer isso basta abrir o terminal e rodar o seguinte comando `git clone https://github.com/podcodar/app.git`

- para fazer isso basta abrir o terminal e rodar o seguinte comando `git clone https://github.com/podcodar/app.git`

2. Execute o comando `yarn` para instalar as dependências do projeto.
- lembre-se de navegar até a pasta onde o projeto se encontra e então quando la estiver, execute o comando acima! Ps: para navegar entre pastas pelo terminal basta usar o comando`cd nome da pasta` para entrar na pasta e `cd ..` para regredir.

- lembre-se de navegar até a pasta onde o projeto se encontra e então quando la estiver, execute o comando acima! Ps: para navegar entre pastas pelo terminal basta usar o comando`cd nome da pasta` para entrar na pasta e `cd ..` para regredir.

## Utilização

- Certifique-se de que os passos de instalação já estejam concluídos! E então execute um desses comandos,
- Certifique-se de que os passos de instalação já estejam concluídos! E então execute um desses comandos,

```bash
npm run dev
# or
Expand All @@ -21,7 +24,6 @@ yarn dev

Com o passo anterior feito, abra o link [http://localhost:3000](http://localhost:3000) para ver o resultado.


## Tecnologias Utilizadas

- Next JS
Expand All @@ -35,6 +37,6 @@ Com o passo anterior feito, abra o link [http://localhost:3000](http://localhost

1. Faça o fork do projeto
2. Crie uma branch com a sua feature: git checkout -b my-feature
3. Faça o commit das suas alterações: ```git commit -m 'fea: My new feature'```
3. Faça o commit das suas alterações: `git commit -m 'fea: My new feature'`
4. Faça o push da sua branch: git push origin my-feature
5. Envie um Pull Request
5. Envie um Pull Request
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const nextConfig = {
appDir: true,
},
images: {
domains: ["images.unsplash.com"]
}
domains: ["images.unsplash.com"],
},
};

const withBundleAnalyzer = require("@next/bundle-analyzer")({
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"fmt": "next lint --fix",
"fmt": "prettier --write . && next lint --fix",
marco-souza marked this conversation as resolved.
Show resolved Hide resolved
"lint": "next lint",
"analyze": "ANALYZE=true yarn build"
"analyze": "ANALYZE=true yarn build",
"prepare": "husky install"
},
"dependencies": {
"@headlessui/react": "^1.7.14",
Expand All @@ -28,7 +29,10 @@
"devDependencies": {
"@podcodar/eslint-config-next": "^1.4.2",
"autoprefixer": "^10.4.14",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"postcss": "^8.4.22",
"prettier": "^2.8.8",
"tailwindcss": "^3.3.1"
}
}
Loading