arisslin / flattenthequeue

An app to see the degree of capacity utilisation at supermarkets
MIT License
3 stars 0 forks source link

Research: Uniform coding style #3

Closed jamarob closed 4 years ago

jamarob commented 4 years ago
arisslin commented 4 years ago

There are a lot of linters, formater etc which we can use. They exist as VS-Code Plugin but also as npm package. I would recommend to use them as npm-packages in fact that than every cloned repo has the same linter and formater settings. The tools can get customized and automated for the workflow.

I would recommend following tools:

Here is an interessting artical about combining all those plugins in VS Code: https://medium.com/technical-credit/using-prettier-with-vs-code-and-create-react-app-67c2449b9d08 Or here: https://medium.com/@haykerman/setting-up-eslint-prettier-for-react-app-in-vscode-8662de2d9a96

arisslin commented 4 years ago

GitHub Actions is a interessting tool. You can automate different steps in your development or deployment progress. For example after a PR you can start testing scripts and if they are all passed a build will be generated and deployed on your live or development server. Here is the ressource for further information: https://help.github.com/en/actions

There is also a GitHub Action for interacting with firebase: https://github.com/marketplace/actions/github-action-for-firebase

Here the marketplayce for more actions: https://github.com/marketplace?type=actions

At first i would recommend to use this to ...

albert-schilling commented 4 years ago

Great research, Andreas. I was wondering if you would recommend using create react app? After watching a tutorial on how to get react up and running without create react app, I tend to leave it out, since it brings a lot of implicit packages and configurations. For me as a rookie, this feels quite intransparent. What do you think? If we choose on setting up our project without create react app, then we can skip the eslint-config-react-app package.

Additionally, we could bring in the following packages:

parcel-bundler oder webpack 4.0 // Which build tool is best for react apps? I dunno...
babel-eslint 
eslint-plugin-import
eslint-plugin-jsx-a11y // for accessibility
eslint-plugin-react-hooks

What do you think?

I watched the Brian Holt Intro to React on Frontend Masters and felt the setup was quite reasonable.

jamarob commented 4 years ago

I suggest using cra

albert-schilling commented 4 years ago

@jamarob Oh, these are some strong points for CRA. I wasn't aware of that.