Solves the problem with unresolved imports in Nuxt.js with Eslint
Node.js 8.0.0 or newer is required
Recommended
yarn add eslint-import-resolver-nuxt-import
npm install eslint-import-resolver-nuxt-import --save
Config is passed directly through to resolve as options:
"settings": {
"import/resolver": {
"nuxt-import": {}
}
}
Set default extensions
"settings": {
"import/resolver": {
"nuxt-import": {
"extensions": [".mjs", ".js", ".vue", ".graphql", ".json"]
}
}
}