{"name":"eslint-import-resolver-alias","version":"1.0.4","description":"a simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias.","main":"index.js","scripts":{"release":"node build/release.js","test":"mocha test/test.js --require test/setup.js","cov":"istanbul cover node_modules/mocha/bin/_mocha -i index.js -- test/test.js --require test/setup.js"},"keywords":["eslint","eslintplugin","modules","alias","eslint-plugin-import","import-resolver"],"engines":{"node":">= 4"},"author":{"name":"johvin"},"license":"MIT","devDependencies":{"adjust-md-for-publish":"^1.0.0","builtin-modules":"^2.0.0","istanbul":"^1.0.0-alpha.2","mocha":"^3.2.0"},"peerDependencies":{"eslint-plugin-import":">=1.4.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/johvin/eslint-import-resolver-alias.git"},"bugs":{"url":"https://github.com/johvin/eslint-import-resolver-alias/issues"},"homepage":"https://github.com/johvin/eslint-import-resolver-alias#readme","_id":"eslint-import-resolver-alias@1.0.4","_shasum":"6cb5de08e0be5bcf6e7968222b27b1776ac9128f","_from":"dist","_resolved":"file:dist","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"johvin","email":"johvin10@gmail.com"},"dist":{"shasum":"6cb5de08e0be5bcf6e7968222b27b1776ac9128f","tarball":"http://registry-npm.ywwl.com/eslint-import-resolver-alias/download/eslint-import-resolver-alias-1.0.4.tgz","fileCount":5,"unpackedSize":6185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4B1sCRA9TVsSAnZWagAAT8cP+wdkIrOKMfNbkf1HVUh3\nhbe/AvZTnWAqHlXQc8WfiY+xkyU4Mp/4V6W6kxFh4DqwX0hlbcIHVHVVa0Lj\nJW5pFYXGovN4jsnj09UCZuTNqQi2VZi1b9kng3Uq98bp9PYsRvSu7zdyl4EJ\n2/nsBGHmnCK9iXsR6U+llQYV7JaaQ+w/CSzHaQFSU/Ze3d8aK5JQFFQ6KKNY\nQ/gwREEmQyhf5UKpPke5Pcl5uRzMNKconvKI9IBXUf4eZ7ZIziKv1T4VBizU\nfBEK90CJ8ickW+EbqP1nGEPCcr2iH76Nk3l3R5EWopg+WrBs11yMwiAl0HPV\n9wqrSg1kvRRj7XREXHw4k5fzGaCQtUkSutzatoXyC6DOMWc072TGgFiSypE9\n0uk+G9l0L/angn/8QHsDUAQtvuD6KfY9EvOtVJ9rfpQJP8ZdaABZD0nJveFb\nzyCZWzT35Q1uBS9FjhnEpRQ3v1PivrqTAwwXKthWoE8UE9gooNJ3+nCzYogx\nR3HbAODlz8yy+nSsoaGnD2pgNsDv1Kb4gGjblw7dZuBR0VrJYA4qJIuGbdKr\nOMeJ0GTdqepJAyCqcsA0Rp1po3T4yc1HytGZGDMinE6WoRkuzbIRAKRWIOKA\n+XYnL9bCnhBD5hlQL5y7u46iMTerwb3/diOWiz4K17ZPN8Sd9fOq5CZ23+Q6\nAZ34\r\n=mclg\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-uBnyAkXLVy+kGcg70XaVcXQ8cwICFN2LYHzZ/oR/TlUL9zXu0mEEy+YMrcoSRzjj8rDUO351OczMortbOj61lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcv9/lF/5UPBsTVabVnakJcc3lFMzXmBmEuiKvC9x9qAiEAvU+zhvMO6I6oJmTzE7XxsLAwUZArq3QPDzVNS0+dn0E="}],"size":2488,"noattachment":false,"key":"/eslint-import-resolver-alias/-/eslint-import-resolver-alias-1.0.4.tgz"},"maintainers":[{"name":"johvin","email":"johvin10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-import-resolver-alias_1.0.4_1524637036323_0.26943085662689836"},"_hasShrinkwrap":false,"deprecated":"critical bug fixed in latest version","readme":"# eslint-import-resolver-alias\n\n[![Version npm][version]](http://browsenpm.org/package/eslint-import-resolver-alias)\n![Version node][node]\n[![Build Status][build]](https://travis-ci.org/johvin/eslint-import-resolver-alias)\n[![Download][download]](https://www.npmjs.com/package/eslint-import-resolver-alias)\n[![Dependencies][david]](https://david-dm.org/johvin/eslint-import-resolver-alias)\n![peerDependencies][peer]\n[![Coverage Status][cover]](https://coveralls.io/github/johvin/eslint-import-resolver-alias?branch=master)\n[![Known Vulnerabilities][vulnerabilities]](https://snyk.io/test/npm/eslint-import-resolver-alias)\n[![License][license]](https://opensource.org/licenses/MIT)\n\n[version]: http://img.shields.io/npm/v/eslint-import-resolver-alias.svg?style=flat-square\n[node]: https://img.shields.io/node/v/eslint-import-resolver-alias/latest.svg?style=flat-square\n[build]: http://img.shields.io/travis/johvin/eslint-import-resolver-alias/master.svg?style=flat-square\n[download]: https://img.shields.io/npm/dm/eslint-import-resolver-alias.svg?style=flat-square\n[david]: https://img.shields.io/david/johvin/eslint-import-resolver-alias.svg?style=flat-square\n[peer]: https://img.shields.io/david/peer/johvin/eslint-import-resolver-alias.svg?style=flat-square\n[cover]: http://img.shields.io/coveralls/johvin/eslint-import-resolver-alias/master.svg?style=flat-square\n[vulnerabilities]: https://snyk.io/test/npm/eslint-import-resolver-alias/badge.svg?style=flat-square\n[license]: https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat-square\n\n\nThis is a simple Node.js module import resolution plugin for [`eslint-plugin-import`](https://www.npmjs.com/package/eslint-plugin-import), which supports native Node.js module resolution, module alias/mapping and custom file extensions.\n\n\n## Installation\n\nPrerequisites: Node.js >=4.x and corresponding version of npm.\n\n```shell\nnpm install eslint-plugin-import eslint-import-resolver-alias --save-dev\n```\n\n\n## Usage\n\nPass this resolver and its parameters to `eslint-plugin-import` using your `eslint` config file, `.eslintrc` or `.eslintrc.js`.\n\n```js\n// .eslintrc.js\nmodule.exports = {\n  settings: {\n    'import/resolver': {\n      alias: {\n        map: [\n          ['babel-polyfill', 'babel-polyfill/dist/polyfill.min.js'],\n          ['helper', './utils/helper'],\n          ['material-ui/DatePicker', '../custom/DatePicker'],\n          ['material-ui', 'material-ui-ie10']\n        ],\n        extensions: ['.ts', '.js', '.jsx', '.json']\n      }\n    }\n  }\n};\n```\n\nNote:\n\n- The alias config object contains two properties, `map` and `extensions`, both of which are array types\n- The item of `map` array is also array type which contains 2 string\n    + The first string represents the alias of module name or path\n    + The second string represents the actual module name or path\n- The `map` item `['helper', './utils/helper']` means that the modules which match `helper` or `helper/*` will be resolved to `./utils/helper` or `./utils/helper/*` which are located relative to the `process current working directory` (almost the project root directory). If you just want to resolve `helper` to `./utils/helper`, use `['^helper$', './utils/helper']` instead. See [issue #3](https://github.com/johvin/eslint-import-resolver-alias/issues/3)\n- The order of 'material-ui/DatePicker' and 'material-ui' cannot be reversed, otherwise the alias rule 'material-ui/DatePicker' does not work\n- The default value of `extensions` property is `['.js', '.json', '.node']` if it is assigned to an empty array or not specified\n\n*If the `extensions` property is not specified, the config object can be simplified to the `map` array.*\n\n```js\n// .eslintrc.js\nmodule.exports = {\n  settings: {\n    'import/resolver': {\n      alias: [\n        ['babel-polyfill', 'babel-polyfill/dist/polyfill.min.js'],\n        ['helper', './utils/helper'],\n        ['material-ui/DatePicker', '../custom/DatePicker'],\n        ['material-ui', 'material-ui-ie10']\n      ]\n    }\n  }\n};\n```\n\nWhen the config is not a valid object (such as `true`), the resolver falls back to native Node.js module resolution.\n\n```js\n// .eslintrc.js\nmodule.exports = {\n  settings: {\n    'import/resolver': {\n      alias: true\n    }\n  }\n};\n```\n","publish_time":1524637036417,"_cnpm_publish_time":1524637036417,"dist-tags":{"latest":"1.1.2"}}