1.0.1 • Published 5 years ago

eslint-import-resolver-zombiebox v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

eslint-import-resolver-zombiebox

ESLint import plugin resolver for ZombieBox framework.

Resolves import aliases set by ZombieBox. It works with ZombieBox itself, its addons and applications.

Usage

Install plugin:

npm install --save-dev eslint-import-resolver-zombiebox 

Add it to .eslintrc.js:

module.exports = {
	settings: {
		'import/resolver': 'zombiebox' 
	}
}

Configuration

packageJson option sets the path to project package.json file. If s not present, resolver will try to find it automatically from current working directory.

configs allows to specify config file paths or objects as accepted by Application constructor.

module.exports = {
	settings: {
		'import/resolver': {
			'zombiebox': {
				packageJson: '/path/to/package.json',
				configs: [
					'/path/to/app/config.js',
					{
						foo: 'bar'
					}
				]
			}
		} 
	}
}