mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
Add defaults for react/jsx-no-bind
This commit is contained in:
6
packages/eslint-config-airbnb/rules/react.js
vendored
6
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -40,7 +40,11 @@ module.exports = {
|
||||
'react/jsx-max-props-per-line': [0, { 'maximum': 1 }],
|
||||
// Prevent usage of .bind() and arrow functions in JSX props
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
|
||||
'react/jsx-no-bind': 2,
|
||||
'react/jsx-no-bind': [2, {
|
||||
'ignoreRefs': false,
|
||||
'allowArrowFunctions': false,
|
||||
'allowBind': false,
|
||||
}],
|
||||
// Prevent duplicate props in JSX
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
|
||||
'react/jsx-no-duplicate-props': [0, { 'ignoreCase': false }],
|
||||
|
||||
Reference in New Issue
Block a user