qiusuo-fuyuan / qiusuo-frontend

0 stars 0 forks source link

Coding Best Practice #39

Open ryan-zheng-teki opened 4 years ago

ryan-zheng-teki commented 4 years ago

Best Practice (1)use prettier to auto format, setup the vscode configuration (2)use eslint to do the auto lint. eslint has many rules. But it makes code better (3)we use webpack and babel for compiling(do we really need babel, shall we use ts-loader. nowadays many browsers are supporting model syntaxes. And babel configuration to be honest makes things complicated) Microsoft is having better support for the eco-system

CSS Coding Guideline (1) block__element--modifier(BOM) (2) single dash to for name such as "community-page"