diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index 41d71c9..a401fd9 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -43,6 +43,17 @@ module.exports = { }, ], + 'no-restricted-syntax': ["error", + { + "selector": "CallExpression[callee.name = useMemo] ArrowFunctionExpression TemplateLiteral > Identifier", + "message": "Do not memorize primitives" + }, + { + "selector": "CallExpression[callee.name = useMemo] FunctionExpression ReturnStatement TemplateLiteral > Identifier ", + "message": "Do not memorize primitives." + }, + ], + 'default-param-last': 'warn', '@typescript-eslint/member-ordering': [