From d48776a2bfc3717b9c46bbf930d98268fe735704 Mon Sep 17 00:00:00 2001 From: Sergey Orlov Date: Fri, 19 Jan 2024 22:24:51 +0300 Subject: [PATCH] fix(eslint-config): fixed typo and replaced link with shorter one --- packages/eslint-config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index 06e122e..dee5825 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -44,13 +44,13 @@ module.exports = { selector: 'CallExpression[callee.name = useMemo] :matches(ArrowFunctionExpression, ArrowFunctionExpression ReturnStatement, FunctionExpression ReturnStatement) :matches(TemplateLiteral[expressions.length = 0], TemplateLiteral > Identifier, TemplateLiteral > Literal)', message: - 'Do not memorize primitives https://dev.to/katekate/another-react-dos-and-donts-4ba0#:~:text=1.2.%20Avoid%20useMemo%20for%20primitive%20memoization.', + 'Do not memoize primitives https://dev.to/katekate/another-react-dos-and-donts-4ba0#12-dont-use-raw-usememo-endraw-for-primitive-memoization', }, { selector: 'CallExpression[callee.name = useMemo] :matches(ArrowFunctionExpression, ArrowFunctionExpression ReturnStatement, FunctionExpression ReturnStatement) > Literal', message: - 'Do not memorize primitives https://dev.to/katekate/another-react-dos-and-donts-4ba0#:~:text=1.2.%20Avoid%20useMemo%20for%20primitive%20memoization.', + 'Do not memoize primitives https://dev.to/katekate/another-react-dos-and-donts-4ba0#12-dont-use-raw-usememo-endraw-for-primitive-memoization', }, ],