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

Latest commit

 

History

History
38 lines (32 loc) · 640 Bytes

File metadata and controls

38 lines (32 loc) · 640 Bytes

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