Closed JerryBels closed 3 years ago
import parsePhone from 'libphonenumber-js/mobile';
ESLint: 'libphonenumber-js-mobile' should be listed in the project's dependencies. Run 'npm i -S libphonenumber-js-mobile' to add it(import/no-extraneous-dependencies)
What's the expected result?
No Eslint error I guess?
Looks like a duplicate of https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/40 You can ask about it somewhere in ESLint repo issues.
Okay I will. Thank you for your help!
Steps to reproduce
import parsePhone from 'libphonenumber-js/mobile';
Observed result
ESLint: 'libphonenumber-js-mobile' should be listed in the project's dependencies. Run 'npm i -S libphonenumber-js-mobile' to add it(import/no-extraneous-dependencies)
Expected result
What's the expected result?
No Eslint error I guess?