eslint-import-resolver-node
Node default behavior import resolution plugin for eslint-plugin-import.
Last updated a month ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-import-resolver-node 
SYNC missed versions from official npm registry.

eslint-import-resolver-node

npm

Default Node-style module resolution plugin for eslint-plugin-import.

Published separately to allow pegging to a specific version in case of breaking changes.

Config is passed directly through to resolve as options:

settings:
  import/resolver:
    node:
      extensions:
        # if unset, default is just '.js', but it must be re-added explicitly if set
        - .js
        - .jsx
        - .es6
        - .coffee

      paths:
        # an array of absolute paths which will also be searched
        # think NODE_PATH
        - /usr/local/share/global_modules

      # this is technically for identifying `node_modules` alternate names
      moduleDirectory:

        - node_modules # defaults to 'node_modules', but...
        - bower_components

        - project/src  # can add a path segment here that will act like
                       # a source root, for in-project aliasing (i.e.
                       # `import MyStore from 'stores/my-store'`)

or to use the default options:

settings:
  import/resolver: node

Current Tags

  • 0.3.4                                ...           latest (a month ago)
  • 0.2.0                                ...           next (4 years ago)

11 Versions

  • 0.3.4                                ...           a month ago
  • 0.3.3                                ...           6 months ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Downloads
Today 22,246
This Week 44,617
This Month 256,816
Last Day 22,371
Last Week 131,141
Last Month 509,232
Dependencies (2)
Dev Dependencies (4)
Dependents (163)

Copyright 2014 - 2016 © taobao.org |