Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react/no-multi-comp add ignoreStateless #5

Open
bojan0624 opened this issue Aug 16, 2019 · 0 comments
Open

react/no-multi-comp add ignoreStateless #5

bojan0624 opened this issue Aug 16, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@bojan0624
Copy link
Contributor

规则名、规则归属
是否为ESLint自带规则,还是第三方扩展?类似reacttypescript,请提供具体的规则文档地址,如:

目前规则的状态
禁止 一个文件中声明一个以上的组件(包括stateless)

期望规则的状态
不限制一个文件中的stateless组件数量,抽取文件依靠开发个人判断

  "react/no-multi-comp": [true, { "ignoreStateless": true }]

有哪些合适的理由
为 props 使用renderprops 也需要抽象文件的话 太繁琐了

render: (_, record) => <Button onClick={() => handleView(record)}>查看</Button>
@Jiasm Jiasm added the enhancement New feature or request label Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants