Fixed camelCase / PascalCase typo. (#107)
* Fixed camelCase / PascalCase typo. * Remove React-specific naming convetions.
This commit is contained in:
parent
70f67166f1
commit
41c9949400
@ -384,15 +384,6 @@ Having a good guideline for creating commits and sticking to it makes working wi
|
||||
_Why:_
|
||||
>Name it what you like, `dist` is also cool. But make sure that keep it consistent with your team. What gets in there is most likely generated (bundled, compiled, transpiled) or moved there. What you can generate, your teammates should be able to generate too, so there is no point committing them into your remote repository. Unless you specifically want to.
|
||||
|
||||
* Use `PascalCase' 'camelCase` for filenames and directory names. Use `PascalCase` only for Components.
|
||||
|
||||
* `CheckBox/index.js` should have the `CheckBox` component, as could `CheckBox.js`, but **not** `CheckBox/CheckBox.js` or `checkbox/CheckBox.js` which are redundant.
|
||||
|
||||
* Ideally the directory name should match the name of the default export of `index.js`.
|
||||
|
||||
_Why:_
|
||||
> Then you can expect what component or module you will receive by simply just importing its parent folder.
|
||||
|
||||
<a name="code-style"></a>
|
||||
## 7. Code style
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user