-
Notifications
You must be signed in to change notification settings - Fork 7
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
Development setup #62
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/cmdalbem/ciclomapa/aiJsxS6tfuz3aaTkGPqnmFBpZxTN |
This reverts commit db84df1.
Now the build it's working :) Since I had to handle the issues raised by ESLint, I also added the Husky to validate them when making a commit. |
@@ -163,8 +163,6 @@ class App extends Component { | |||
} | |||
}) | |||
|
|||
console.debug('url params obj:', paramsObj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oi @lguima !
alguma razão pra ter removido essa linha de debug, ou foi por acidente? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Achei que era um debug esquecido, é proposital? hehe
@@ -0,0 +1,49 @@ | |||
# Contributing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boa, brigado por organizar esse arquivo!
tava há tempos querendo fazer isso haha
@@ -3,398 +3,419 @@ import { Popover, Button } from 'antd'; | |||
|
|||
import { PieChart, Pie } from 'recharts'; | |||
|
|||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
só de curiosidade, todas essas alterações foram feitas automaticamente pelas ferramentas, ou algumas vc teve que fazer na mão?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vc chegou a reordenar ou refator algo?
ou foi só o diff do github que se perdeu aqui?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else { | ||
fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURI(areaName)}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
só comentando, esse aqui é um exemplo de como o eslint, as vezes, piora a legibilidade do código hehe não achas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ficou assim, na vdd:
fetch(
`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURI(
areaName
)}`
)
É possível ignorar a linha para não ser formatada, se for o caso.
Acho que tem mais casos de melhoria do que de piora, não? Já havia sido considerado o linter?
... | ||
"editor.formatOnSave": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
essa configuração faz o editor corrigir automaticamente todos warnings quando o arquivo é salvo, certo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exatamente, assim garante que quando for fazer o commit, já está corrigido.
@@ -30,11 +30,18 @@ | |||
}, | |||
"scripts": { | |||
"start": "craco start", | |||
"lint": "eslint src --max-warnings=0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
essa configuração obriga a ter zero warnings de eslint, certo?
vc se importa se não usarmos essa configuração? pessoalmente as vezes eu tenho preferencia por, em alguns casos muito específicos, quebrar algumas regrinhas pra melhorar a legibilidade do código
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nesses casos tem como ignorar o linter para determinados arquivos ou linhas, assim não gera warning:
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Setting up some tools to improve the development across contributors.
Changelog