Skip to content

Commit

Permalink
Merge pull request #28 from salute-developers/SPEED-1322
Browse files Browse the repository at this point in the history
fix(eslint-config): fixed typo and replaced link with shorter one
  • Loading branch information
SeanSilke authored Jan 22, 2024
2 parents 3527736 + d48776a commit 10f8ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
],

Expand Down

0 comments on commit 10f8ae9

Please sign in to comment.