Skip to content
代码片段 群组 项目
提交 e71eda30 编辑于 作者: “乔丽阳14762”'s avatar “乔丽阳14762”
浏览文件

[add]添加hzero前端代码规范md文档

上级 299b178d
No related branches found
No related tags found
无相关合并请求
此差异已折叠。
......@@ -171,7 +171,6 @@ module.exports = {
], // 允许何种扩展文件后缀的文件使用jsx语法
"global-require": [1], // 要求 require() 出现在顶层模块作用域中
"import/prefer-default-export": [0], // 只有一个export时,使用default
"react/jsx-no-bind": [0], // 禁止在JSX属性中使用 .bind 方法和箭头函数
"react/prefer-stateless-function": [0], // 应该用一个纯函数表示无状态的函数
"react/destructuring-assignment": [0], // 必须使用解构状态分配 如{ Component: Component }应该为{ Component }
"react/jsx-one-expression-per-line": [0], // 是否限制每行只允许一个jsx元素
......@@ -218,7 +217,6 @@ module.exports = {
"linebreak-style": [0], // 强制使用一致的换行风格
"class-methods-use-this": [0], // 强制类方法使用 this
"no-plusplus": [0], // 禁用一元操作符 ++ 和 --
"react/sort-comp": [0], // 强制执行组件方法顺序
"no-trailing-spaces": [2], // 禁用行尾空格
"no-unused-vars": [2], // 禁止出现未使用过的变量
"no-multi-spaces": [2], // 禁止使用多个空格
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册