eslint stander js代码规范
时间:2021-01-06 22:12:12
收藏:0
阅读:32
规范url:https://standardjs.com/readme-zhcn.html
定义变量 等号两边有空格
定义变量和方法必须使用
定义方法 方法名与括号 括号与大括号中间都要有空格
定义字符串用单引号
关键字 if 与括号间要有空格
用===代替==
逗号后台要有空格
不允许有多行空行
原文:https://www.cnblogs.com/howhy/p/14242682.html
评论(0)