1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-25 17:28:05 +00:00
mobilizon/docs/contribute/styleguide.md

30 lines
1 KiB
Markdown
Raw Normal View History

# Styleguide
2019-05-19 09:38:09 +00:00
## Elixir
We format our code with the Elixir Formatter and check for issues with [Credo](https://github.com/rrrene/credo) (a few rules are not blocking).
2019-05-19 09:38:09 +00:00
Please run these two commands before pushing code:
* `mix format`
* `mix credo --strict -a`
These two commands must not return an error code, since they are required to pass inside CI.
2019-05-19 09:38:09 +00:00
## Front-end
### Linting
We use `tslint` and `eslint` with the `airbnb` preset.
Errors should be reported when the development server is running or when building a production bundle `yarn run build`.
2019-05-19 09:38:09 +00:00
Please run the following command before pushing code `yarn run lint`.
This command must not return an error code, since it's required to pass inside CI.
We also try to follow the [official Vue.js style guide](https://vuejs.org/v2/style-guide/).
### Styleguide
We present the components used on Mobilizon's front-end here: https://framasoft.frama.io/mobilizon/frontend/. The documentation is builded through [Vue Styleguidist](https://vue-styleguidist.github.io/)