twilio-labs / twilio-style

Twilio's shareable ESLint config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-import - Error while loading rule 'import/no-unused-modules': Cannot read property 'path' of null

sabinasiddiqi opened this issue · comments

I did a quick test run on our codebase using the instructions here for a typescript react app: https://github.com/twilio-labs/twilio-style/tree/master/packages/eslint-config-twilio-ts

And am getting this error:

TypeError: Error while loading rule 'import/no-unused-modules': Cannot read property 'path' of null

Seems like an existing issue for eslint-plugin-import:

import-js/eslint-plugin-import#1382

"eslint-plugin-import": "^2.18.2",
- updating eslint-plugin-import to 2.20.20 should fix this: import-js/eslint-plugin-import@v2.19.0...master#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR32

currently on 2.20.2 so this issue should've been fixed!