catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.79k stars 216 forks source link

Eslint issue when using max or mobile metadata #404

Closed JerryBels closed 3 years ago

JerryBels commented 3 years ago

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?

catamphetamine commented 3 years ago

Looks like a duplicate of https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/40 You can ask about it somewhere in ESLint repo issues.

JerryBels commented 3 years ago

Okay I will. Thank you for your help!