Comments (5)
Take as well the one about using same names fornthe imports.
This three tasks are heavy because we need to propagate them to all the samples plus test that we havent broken anthing.
On the other Hand it will enhance code readibility
Sent from my Windows Phone
-----Mensaje original-----
De: "[email protected]" [email protected]
Enviado: 19/03/2016 12:27
Para: "Lemoncode/react-typescript-samples" [email protected]; "Lemoncode/react-typescript-samples" [email protected]
Asunto: RE: [react-typescript-samples] Code cleanup study (#30)
Lets start with the first two items in the list
Sent from my Windows Phone
De: Antonio L. Gil
Enviado: 19/03/2016 12:06
Para: Lemoncode/react-typescript-samples
CC: Braulio Diez
Asunto: Re: [react-typescript-samples] Code cleanup study (#30)
I add more items to list.
Must change:
FireValidationFieldVallueChange to FireFieldValueChange
Remove unnecessary imports (e.g. memberapi on reducers).
Unifying variable names in imports (e.g. Sometimes we write 'memberAPI' and in other cases we write 'MemberAPI'. In my opinion, in this case we should write in camelCase due to a new instance is created when it's exported. In other case should be in PascalCase.
Change tabs to 2 spaces characters for indentation and reformat code. For this, I recommend using tslint.json file.
Fixing syntax of properties in several interfaces. Change ',' for ';' and putting in the end of the property name.
To be discussed:
Avoid export default and import classes with curly-bracket {}
Separate presentationales from container.
Create a enum / const like class for actions types..
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
from react-typescript-samples.
Sounds good. I will work on it
from react-typescript-samples.
Let's start giving here ideas, and then compile them:
Must change:
- FireValidationFieldVallueChange to FireFieldValueChange
- Remove unnceseary imports (e.g. memberapi on reducers).
To be discussed:
- Avoid export default
- Separate presentationales from container.
- Create a enum / const like class for actions types..
from react-typescript-samples.
I add more items to list.
Must change:
- FireValidationFieldVallueChange to FireFieldValueChange
- Remove unnecessary imports (e.g. memberapi on reducers).
- Unify variable names in imports (e.g. Sometimes we write 'memberAPI' and in other cases we write 'MemberAPI'. In my opinion, in this case we should write in camelCase due to a new instance is created when it's exported. In other case should be in PascalCase.
- Change tabs to 2 spaces characters for indentation and reformat code. For this, I recommend using tslint.json file.
- Fixing syntax of properties in several interfaces. Change ',' for ';' and putting in the end of the property name.
- Unify string quotes. Use single quotes ' or double quotes but not both. The typescript coding guidelines by Microsoft proposes to use doble for strings: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
To be discussed:
- Avoid export default and import classes with curly-bracket {}
- Separate presentationales from container.
- Create a enum / const like class for actions types..
from react-typescript-samples.
Lets start with the first two items in the list
Sent from my Windows Phone
-----Mensaje original-----
De: "Antonio L. Gil" [email protected]
Enviado: 19/03/2016 12:06
Para: "Lemoncode/react-typescript-samples" [email protected]
CC: "Braulio Diez" [email protected]
Asunto: Re: [react-typescript-samples] Code cleanup study (#30)
I add more items to list.
Must change:
FireValidationFieldVallueChange to FireFieldValueChange
Remove unnecessary imports (e.g. memberapi on reducers).
Unifying variable names in imports (e.g. Sometimes we write 'memberAPI' and in other cases we write 'MemberAPI'. In my opinion, in this case we should write in camelCase due to a new instance is created when it's exported. In other case should be in PascalCase.
Change tabs to 2 spaces characters for indentation and reformat code. For this, I recommend using tslint.json file.
Fixing syntax of properties in several interfaces. Change ',' for ';' and putting in the end of the property name.
To be discussed:
Avoid export default and import classes with curly-bracket {}
Separate presentationales from container.
Create a enum / const like class for actions types..
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
from react-typescript-samples.
Related Issues (20)
- Update 14 AsyncCalls_Redux_Saga
- Update 00 boilerplate
- update 01 hello react
- TS2315: Type 'Middleware' is not generic HOT 2
- Fix New Member form in sample 08 Param Navigation
- Cannot read property 'state' of undefined at onSave in 07 Form HOT 1
- Readme.me doesn't contains diff properly in 08 Param Navigation HOT 3
- Occurs error "type 'Location' is not generic." in sample 09 Redux
- Review 00, 01, 02, 03 Readme, text plus ensure is working fine HOT 1
- Review 04 Readme, text plus ensure is working fine
- Review 05 Readme, text plus ensure is working fine
- Review 06 Readme, text plus ensure is working fine
- About page sample 07 ./src/index.tsx should be ./src/components/index.tsx HOT 2
- Review 07 Readme, text plus ensure is working fine
- Review 08 Readme, text plus ensure is working fine
- Review 09 Readme, text plus ensure is working fine
- IE11 error in bundle.js by invalid character HOT 2
- Warning message when 00_Boilerplate project runs
- Update boilerplate to newer webpack config and 01 Hello React
- webpack-cli 4.x 's error in the lesson
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-typescript-samples.