diff --git a/config/eslintrc_typescript.js b/config/eslintrc_typescript.js index d1651f1..a8e9069 100644 --- a/config/eslintrc_typescript.js +++ b/config/eslintrc_typescript.js @@ -117,7 +117,18 @@ module.exports = { { 'selector': 'variable', - 'format': ['camelCase', 'UPPER_CASE'] + 'format': [ + 'camelCase', + 'UPPER_CASE', + // We need allow `PascalCase` for React component. + // e.g. + // ``` + // const SomeContext = React.useContext(); + // + // const MemoizedComponent = React.memo(function SomeComponent() {}); + // ``` + 'PascalCase', + ] }, {