follow even more suggestions by @mattwr18

This commit is contained in:
Alina Beck 2019-11-04 12:19:53 +03:00
parent c7ef9ba04a
commit 9caf3e7d8a
2 changed files with 6 additions and 6 deletions

View File

@ -68,20 +68,20 @@ You can then visit the Storybook playground on `http://localhost:3002`
{% tab title="Without Docker" %}
After starting the application following the above guidelines, open new terminal windows for each of these commands:
After starting the application following the above guidelines, open new terminal windows and navigate to the `/webapp` directory for each of these commands:
```bash
# run eslint
# run eslint in /webapp
$ yarn lint
```
```bash
# run unit tests
# run unit tests in /webapp
$ yarn test
```
```bash
# start storybook
# start storybook in /webapp
$ yarn storybook
```

View File

@ -15,9 +15,9 @@ Placed in the same folder are also:
## We use typed props
Vue.js allows us to define component props either as strings or as objects with `type`, `default` and `required` values. Always go for the second option!
Vue.js allows us to define component props either as strings or as objects (with `type` and `default` or `required` values). Always go for the second option!
Also: define defaults _only and always_ for non-required props.
Also: only (and always!) define a `default` for props that are _not required_.
Why?
- it makes our code more robust a warning will be shown when passing a wrong prop type