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

[eslint] 从 this.props 而来的函数名必须要以 on 开头 #1006

Closed
imruxin opened this issue Nov 5, 2018 · 2 comments
Closed

[eslint] 从 this.props 而来的函数名必须要以 on 开头 #1006

imruxin opened this issue Nov 5, 2018 · 2 comments

Comments

@imruxin
Copy link

imruxin commented Nov 5, 2018

如下图所示,晚上找了好久还是不清楚在哪里修改这个东西?

image

Taro version:1.1.1
编辑器:vs code 1.28.2 (1.28.2)

@yuche
Copy link
Contributor

yuche commented Nov 6, 2018

在你的 .eslintrc 的 rules 中禁用掉就可以了,下个版本可以用 dispatch

  rules: {
    'taro/this-props-function': 0
  },

@DiamondYuan
Copy link
Contributor

如果不想全部关闭,在页面里加一行
/eslint "taro/this-props-function": 0,/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants