ljharb on master
[Docs] `jsx-key`: split the exa… (compare)
hello to all.
I have this issue with ESLint and React props / propTypes
...
this.props.hasOwnProperty('modelConfig'); /* => ESLint error: "no-prototype-builtins" */
this.props.hasOwnProperty.call('modelConfig'); /* => ESLint error: "react/prop-types" (underlined is the "call" word) */
...
MyClass.propTypes = {
modelConfig: ImmutablePropTypes.map,
};
How to solve it?
Hi - so in one of the PRs it was mentioned that the code base should ideally only contain const
and let
, and no more var
. So would you be interested in a PR for this?
I don't mind to do it as it would provide me a good opportunity to go through the code, but it would still take a couple of days as I want to take my time and read the code rather than just skim through it and just do find/replace.