You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ЛИБО проверка пропускается, тк на файле висит /* eslint-disable */
Материалы
log
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│││context.getSourceisnotafunction││Occurredwhilelinting/home/operator/work/atls_shdvor/ui/intersection-observer/src/hooks/use-intersection-observer.hook.ts│
│ Rule: "react-hooks/rules-of-hooks"││││595|}elseif(codePathFunctionName){││596|// Custom message if we found an invalid function name. ││>597|var_message2="React Hook \""+context.getSource(hook)+"\" is called in "+("function \""+context.getSource(codePathFunctionName)+││"\" ")+'that is neither a React function component nor a custom '+'React Hook function.'+' React component names must start with an uppercase letter.'+' React ││ Hook names must start with the word "use".';││|^││598|││599|context.report({││600|node: hook,││││onCodePathEndeslint-plugin-react-hooks.development.js:597:61(.yarn/__virtual__/eslint-plugin-react-hooks-virtual-bc1c96780e/2/.yarn/berry/cache/eslint-plugin-react-hooks-npm-4.6.2-05bc129286-10.zip/node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js)││ruleErrorHandlerlinter.js:1084:48(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/linter.js)││safe-emitter.js:45:58(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/safe-emitter.js)││Object.emitsafe-emitter.js:45:38(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/safe-emitter.js)││runRuleslinter.js:1140:25(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/linter.js)││ #flatVerifyWithoutProcessors linter.js:1911:31(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/linter.js)││Linter._verifyWithFlatConfigArrayAndWithoutProcesslinter.js:1992:49(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/linter.js)││ors││Linter._verifyWithFlatConfigArraylinter.js:2081:21(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/linter.js)││Linter.verifylinter.js:1528:61(.yarn/__virtual__/eslint-virtual-ddfad26347/2/.yarn/berry/cache/eslint-npm-9.14.0-04ed57b338-10.zip/node_modules/eslint/lib/linter/linter.js)│││└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Данные окружения
archlinux 6.11.9-arch1-1
The text was updated successfully, but these errors were encountered:
Описание бага
хочу закоммититься
есть ошибки линтера
ошибку гугглил, нашел вот это - bug: eslint-plugin-react-hooks throws TypeError: context.getSource is not a function t3-oss/create-t3-turbo#984
в raijin посмотрел, версия пакета
eslint-plugin-react-hooks
старая, возможно нужно обновитьВоспроизведение
ошибка происходит при проверке линтером вот этого файла - https://github.com/torin-asakura/shdvor/blob/caa4876ddfa080a2bd2d0f17f04dd6d3ab0e38db/ui/intersection-observer/src/hooks/use-intersection-observer.hook.ts#L10
Ожидаемое поведение
/* eslint-disable */
Материалы
log
Данные окружения
The text was updated successfully, but these errors were encountered: