Skip to content

Commit

Permalink
fix(eslint): 使用 ref 不报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Aug 22, 2018
1 parent 86d396e commit e5afc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-taro/rules/jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ module.exports = {

// Forbid certain props on Components
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
'react/forbid-component-props': ['error', { forbid: ['ref'] }],
'react/forbid-component-props': ['off'],

// Prevent problem with children and props.dangerouslySetInnerHTML
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
Expand Down

0 comments on commit e5afc21

Please sign in to comment.