Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

coding style guide #90

Open
wildskyf opened this issue Apr 11, 2019 · 4 comments
Open

coding style guide #90

wildskyf opened this issue Apr 11, 2019 · 4 comments
Assignees
Labels
project affair For project management

Comments

@wildskyf
Copy link
Member

No description provided.

@wildskyf
Copy link
Member Author

@wildskyf
Copy link
Member Author

ref: https://editorconfig.org

@wildskyf wildskyf self-assigned this Apr 11, 2019
@wildskyf
Copy link
Member Author

wildskyf commented Apr 25, 2019

no semicolon, but If there is a line start with () or [] (also, regex, +, - ), we add a semicolon in the beginning of the line.

ref: https://www.zhihu.com/question/20298345/answer/49551142

we could also use https://github.com/yyx990803/semi and git pre-commit hook to ensure we have same coding style.

@poga
Copy link
Contributor

poga commented Apr 25, 2019

https://standardjs.com/ this is my favorite :D.

It also provides a formatter to fix style automatically for you.

@wildskyf wildskyf added the project affair For project management label Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
project affair For project management
Projects
None yet
Development

No branches or pull requests

2 participants