UNPKG

759 BJavaScriptView Raw
1/* eslint sort-keys: ["error", "asc"], quote-props: ["error", "consistent"] */
2/* eslint-disable sort-keys */
3
4module.exports = {
5 rules: {
6 "react/jsx-no-bind": [
7 // We're using only "warn" here because it's not a hard error,
8 // but it can be a problem if React.memo is used a lot.
9 // Use styles/react-jsx-allow-bind if you're not using React.memo.
10 "warn",
11 {
12 "allowArrowFunctions": false,
13 "allowBind": false,
14 "allowFunctions": false,
15 "ignoreDOMComponents": true,
16 "ignoreRefs": true,
17 },
18 ], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
19 }
20};