eslint-import-resolver-nuxt-import
v0.0.1
Published
ESLint plugin with rules that help validate proper imports.
Downloads
384
Readme
eslint-import-resolver-nuxt-import
Solves the problem with unresolved imports in Nuxt.js with Eslint
Installation
Node.js 8.0.0 or newer is required
Yarn
Recommended
yarn add eslint-import-resolver-nuxt-import
NPM
npm install eslint-import-resolver-nuxt-import --save
Usage
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"]
}
}
}