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

/eslint-import-resolver-zombiebox/

    Package Sidebar

    Install

    npm i eslint-import-resolver-zombiebox

    Weekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    26.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • l1bbcsg