ESLint is giving a warning for:
import { Meteor } from 'meteor/meteor';
The warning is: Unable to resolve path to module 'meteor/meteor'. How I can turn it off? Or resolve it?
You need to add a Meteor related special rule to your .eslintrc.json :
{
"rules": {
"import/no-unresolved": ["error", { "ignore": ["^meteor/", "^/"] }]
}
}
This rule will add 2 exceptions to the import/no-unresolved :
meteor/ to allow importing Meteor packages from the meteor/ pseudo directory./ to allow importing packages from the root of your Meteor project (eg. /imports/collections/Posts).I've been using eslint-import-resolver-meteor
settings: {
'import/resolver': 'meteor'
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With