Skip to content

Error while loading rule 'unicorn/filename-case': context.getPhysicalFilename is not a function #141

Open
empty-child opened this issue Nov 25, 2021 · 0 comments

Comments

@empty-child
Copy link

Ошибка воспроизводится только в arui-presets-lint@5.10.0

При вызове eslint выводится ошибка

Oops! Something went wrong! :(

ESLint: 7.9.0
TypeError: Error while loading rule 'unicorn/filename-case': context.getPhysicalFilename is not a function
Occurred while linting C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\src\components\error-boundary\error-boundary.tsx
    at create (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint-plugin-unicorn\rules\filename-case.js:156:40)
    at Object.wrapped [as create] (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint-plugin-unicorn\rules\utils\rule.js:38:18)
    at createRuleListeners (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:761:21)
    at C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:931:31
    at Array.forEach (<anonymous>)
    at runRules (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:876:34)
    at Linter._verifyWithoutProcessors (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:1173:31)
    at Linter._verifyWithConfigArray (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:1271:21)
    at Linter.verify (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:1226:25)
    at Linter.verifyAndFix (C:\Users\MainStation\Repos\Work\ufr-cashrequest-components\node_modules\eslint\lib\linter\linter.js:1416:29)
error Command failed with exit code 2.

Судя по всему, в этой версии eslint такого вызова еще не существует (https://eslint.org/blog/2021/06/eslint-v7.28.0-released)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant