Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

negezor/eslint-import-resolver-nuxt-import

Repository files navigation

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"]
		}
	}
}

Releases

No releases published

Packages

No packages published