cats-oss / eslint-config-abema

This project is presets of eslint configurations which we used in our some internal projects.
MIT License
4 stars 1 forks source link

Allow `PascalCase` for variable namaing to define React Component #499

Closed tetsuharuohzeki closed 3 years ago

tetsuharuohzeki commented 3 years ago

Basically, we should use camelCase or UPPER_CASE. But this change allow these patterns for react:

const SomeContext = React.useContext();

const MemoizedComponent = React.memo(function SomeComponent(props) {
  ...
});