Nonvoluntary Professional Mangling
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

eslint-import-resolver-zombiebox

1.0.1 • Public • Published

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

Install

npm i eslint-import-resolver-zombiebox

DownloadsWeekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

26.6 kB

Total Files

12

Last publish

Collaborators

  • avatar