{"_id":"@breathelife/prettier-plugin-sort-imports","_rev":"5-a83c4c4d64ecd7a0f5b9c5c6f06983bf","name":"@breathelife/prettier-plugin-sort-imports","dist-tags":{"latest":"3.0.5"},"versions":{"3.0.2":{"name":"@breathelife/prettier-plugin-sort-imports","version":"3.0.2","description":"A prettier plugins to sort imports in provided RegEx order","main":"lib/src/index.js","repository":{"url":"https://github.com/getbreathelife/prettier-plugin-sort-imports.git","type":"git"},"homepage":"https://github.com/getbreathelife/prettier-plugin-sort-imports#readme","scripts":{"compile":"tsc","example":"prettier --config .prettierrc --plugin lib/src/index.js","test":"jest -i","type-check":"tsc --noEmit","prepublishOnly":"npm run compile && npm run test"},"keywords":["prettier","plugin","sort","import","typescript","javascript"],"author":{"name":"Ayush Sharma","email":"ayush.sharma@trivago.com","url":"https://github.com/ayusharma"},"license":"Apache-2.0","dependencies":{"@babel/core":"7.13.10","@babel/parser":"7.13.10","@babel/types":"7.13.0","@types/lodash":"4.14.168","babylon":"^7.0.0-beta.47","javascript-natural-sort":"0.7.1","lodash":"4.17.21","prettier":"^2.3.2","recast":"^0.20.5"},"devDependencies":{"@types/chai":"4.2.15","@types/jest":"26.0.20","@types/node":"14.14.34","ast-types":"^0.14.2","jest":"26.6.3","ts-jest":"26.5.3","typescript":"4.2.3"},"peerDependencies":{"prettier":"2.x"},"licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@breathelife/prettier-plugin-sort-imports@3.0.2","dist":{"shasum":"7c065b45f7eae99957c4e3b384a4e88d6956b127","integrity":"sha512-LAAupMOaAI+hhVzGUTzBMbLEjzOCHTItIlMF9kAQ5cAIQkwLxktOqgQlXgMSrIvMyj/ytDVxSCLhzQ25mvjxoA==","tarball":"https://registry.npmjs.org/@breathelife/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-3.0.2.tgz","fileCount":14,"unpackedSize":354830,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu8+ER/N7ddWncTmJuGkHP9xiWoZIs01qAqFPOiWlxPgIhAJdD2uJ+TFSaU8kMAH2Sl7JNfTIgKczX2q6YIybhh8Kz"}]},"_npmUser":{"name":"breathelife","email":"dev@breathelife.com"},"directories":{},"maintainers":[{"name":"breathelife","email":"dev@breathelife.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-sort-imports_3.0.2_1634751953138_0.14342289284531806"},"_hasShrinkwrap":false},"3.0.3":{"name":"@breathelife/prettier-plugin-sort-imports","version":"3.0.3","description":"A prettier plugins to sort imports in provided RegEx order","main":"lib/src/index.js","repository":{"url":"git+https://github.com/getbreathelife/prettier-plugin-sort-imports.git","type":"git"},"homepage":"https://github.com/getbreathelife/prettier-plugin-sort-imports#readme","scripts":{"compile":"tsc","example":"prettier --config .prettierrc --plugin lib/src/index.js","test":"jest -i","type-check":"tsc --noEmit","prepublishOnly":"npm run compile && npm run test"},"keywords":["prettier","plugin","sort","import","typescript","javascript"],"author":{"name":"Ayush Sharma","email":"ayush.sharma@trivago.com","url":"https://github.com/ayusharma"},"license":"Apache-2.0","dependencies":{"@babel/core":"7.13.10","@babel/parser":"7.13.10","@babel/types":"7.13.0","@types/lodash":"4.14.168","babylon":"^7.0.0-beta.47","javascript-natural-sort":"0.7.1","lodash":"4.17.21","prettier":"^2.3.2","recast":"^0.20.5"},"devDependencies":{"@types/chai":"4.2.15","@types/jest":"26.0.20","@types/node":"14.14.34","ast-types":"^0.14.2","jest":"26.6.3","ts-jest":"26.5.3","typescript":"4.2.3"},"peerDependencies":{"prettier":"2.x"},"gitHead":"bd09e037f5cc59ac4ad65d1a27cff1ea4b615a87","bugs":{"url":"https://github.com/getbreathelife/prettier-plugin-sort-imports/issues"},"_id":"@breathelife/prettier-plugin-sort-imports@3.0.3","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-TSs96XIs6OLBSTugTF2z9eA9JyADpMYo0FUwm98M2VFKH0VpW1itxZFPMDPcSHak+2nS1t59gn8lOCMmD+aLnA==","shasum":"d1ef801983831d6ef68d3cd0970f56dc3726f023","tarball":"https://registry.npmjs.org/@breathelife/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-3.0.3.tgz","fileCount":22,"unpackedSize":374798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGACrirY2SwUrbcRckFT8HLWCAWj7dBFTimXF4L05MglAiEA8CibEIyafE4p5e/rrexAv7GJp7FSdD/slmEAFupWw8A="}]},"_npmUser":{"name":"breathelife","email":"dev@breathelife.com"},"directories":{},"maintainers":[{"name":"breathelife","email":"dev@breathelife.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-sort-imports_3.0.3_1634754975698_0.5274637600141032"},"_hasShrinkwrap":false},"3.0.4":{"name":"@breathelife/prettier-plugin-sort-imports","version":"3.0.4","description":"A prettier plugins to sort imports in provided RegEx order","main":"lib/src/index.js","repository":{"url":"git+https://github.com/getbreathelife/prettier-plugin-sort-imports.git","type":"git"},"homepage":"https://github.com/getbreathelife/prettier-plugin-sort-imports#readme","scripts":{"compile":"tsc","example":"prettier --config .prettierrc --plugin lib/src/index.js","test":"jest -i","type-check":"tsc --noEmit","prepublishOnly":"npm run compile && npm run test"},"keywords":["prettier","plugin","sort","import","typescript","javascript"],"author":{"name":"Ayush Sharma","email":"ayush.sharma@trivago.com","url":"https://github.com/ayusharma"},"license":"Apache-2.0","dependencies":{"@babel/core":"^7.15.0","@babel/parser":"^7.16.2","@babel/types":"^7.16.0","javascript-natural-sort":"^0.7.1","lodash":"^4.17.21","recast":"^0.20.5"},"devDependencies":{"@types/chai":"^4.2.22","@types/jest":"^26.0.20","@types/lodash":"^4.14.176","@types/node":"^16.11.6","ast-types":"^0.14.2","jest":"^26.6.3","prettier":"^2.4.1","ts-jest":"^26.5.3","typescript":"^4.4.4"},"peerDependencies":{"prettier":"2.x"},"gitHead":"e596a77fb8b13e363bfc2bc74825425697de1f9e","bugs":{"url":"https://github.com/getbreathelife/prettier-plugin-sort-imports/issues"},"_id":"@breathelife/prettier-plugin-sort-imports@3.0.4","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-lPhyvGHU8EUhTBgLzM8667UkV+7vOEb8L5SgAIekZEwHGpA1myYDDmRoTbQnLYvoqKwxXh+7N5gbH9O+TLgcJQ==","shasum":"05a2311b86ab2127b9bae941157849d84ca5a7bd","tarball":"https://registry.npmjs.org/@breathelife/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-3.0.4.tgz","fileCount":22,"unpackedSize":375798,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgPAvbfxuFpvWghOmjpvioO9JguQRMi6p0tImVE82T+AiAsP8dFAV/LklebOSbbbtfoBouJQ7PGUxN/eOKCZBAg1A=="}]},"_npmUser":{"name":"breathelife","email":"dev@breathelife.com"},"directories":{},"maintainers":[{"name":"breathelife","email":"dev@breathelife.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-sort-imports_3.0.4_1635865159421_0.9784375778800676"},"_hasShrinkwrap":false},"3.0.5":{"name":"@breathelife/prettier-plugin-sort-imports","version":"3.0.5","description":"A prettier plugins to sort imports in provided RegEx order","main":"lib/src/index.js","repository":{"url":"git+https://github.com/getbreathelife/prettier-plugin-sort-imports.git","type":"git"},"homepage":"https://github.com/getbreathelife/prettier-plugin-sort-imports#readme","scripts":{"compile":"tsc","example":"prettier --config .prettierrc --plugin lib/src/index.js","test":"jest -i","type-check":"tsc --noEmit","prepublishOnly":"npm run compile && npm run test"},"keywords":["prettier","plugin","sort","import","typescript","javascript"],"author":{"name":"Ayush Sharma","email":"ayush.sharma@trivago.com","url":"https://github.com/ayusharma"},"license":"Apache-2.0","dependencies":{"@babel/core":"^7.15.0","@babel/parser":"^7.16.2","@babel/types":"^7.16.0","javascript-natural-sort":"^0.7.1","lodash":"^4.17.21","recast":"^0.20.5"},"devDependencies":{"@types/chai":"^4.2.22","@types/jest":"^26.0.20","@types/lodash":"^4.14.176","@types/node":"^16.11.6","ast-types":"^0.14.2","jest":"^26.6.3","prettier":"^2.4.1","ts-jest":"^26.5.3","typescript":"^4.4.4"},"peerDependencies":{"prettier":"2.x"},"gitHead":"763892f4b8b32ca9b8429af5691fa4e311f68408","bugs":{"url":"https://github.com/getbreathelife/prettier-plugin-sort-imports/issues"},"_id":"@breathelife/prettier-plugin-sort-imports@3.0.5","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-pnlHE7iUYt/ApZYC3pbfmp/Elx+HL0j5RpNefnAbk0n4J4/iiUn//q1VDyGl12b8zG6Xz1oj01RoStQDzrErmA==","shasum":"d67c68e6aea69a032bfd8e41dc7be004d494ffad","tarball":"https://registry.npmjs.org/@breathelife/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-3.0.5.tgz","fileCount":22,"unpackedSize":376852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzZ4mCRA9TVsSAnZWagAA+VoP/0vPev4xyvoWS1WHXXoB\nLuvIY+fSe/fkn+UyMVfhEJA0vGdSgkF3aKSrlTEsP0XFNvrjFVaC7CZOL5v4\n+igZcM6cyVgHDZEAgTXZ7KPaf2HGMDGGakvjcUkoYbiw6d3nDqX2ryaYWtKb\nbTrMiIHO7d2Pww0zb9ik502uYTWwyB/+BOh/zrhfS6NfKORtFAcBF7NMq/BS\nDlFrNyz4Xp4xWJEKtLSo3kELk5WHStGNHOYCJGBRpujI478HmsjJNetkd5In\nhy8uftjC+uGBqh5FPsM81dJGyeBtRX0TEujvfQhb8AtwRyRvoA270j2Jwr10\n4hxhLExZhukH2cGD6vlHYT0daYycu1z17y2aHcBYT1NH5FEEzXY+Ool0QGcp\n52RPJeka8aoi8LVIsKsBuisuvPlv9C8x2tWbna9MbEcZ6cRDV9cGAasXql0P\n8Ghe3H8d9DB6bEiaSOWra5He+3dyiVK/Vh4VlL3q6b3LIOME7i6d+qkEPwE+\nKkQ6CvvvLKXF0tHsRu3zNGxbMtOeWvyzuOt1hXvCe4K/S+5yifv0FxAHDyEp\nnV2K4ChVubwe/9MU8mj9DKYiCh9X0gyM0oQVnXuLewcvdnxrmmvg1ueaxNRg\nlvkWtknpe+36St9tRDzwQ4nZcE6rMTFFXFWUJO8f4E2nhLcNz49mDVo0yoJo\n3nmp\r\n=PEpU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjmcPdyn9TT8KrZ2cZh/e+jHkyqY4zr57qkQVuJZ3WIQIhALp1i/La7tDf2ePgepui/M/j6sHbBdLRtEYh4HG5KvX5"}]},"_npmUser":{"name":"breathelife","email":"dev@breathelife.com"},"directories":{},"maintainers":[{"name":"breathelife","email":"dev@breathelife.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prettier-plugin-sort-imports_3.0.5_1636580572551_0.5863988583728683"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-20T17:45:53.099Z","3.0.2":"2021-10-20T17:45:53.357Z","modified":"2022-04-04T20:29:58.711Z","3.0.3":"2021-10-20T18:36:15.944Z","3.0.4":"2021-11-02T14:59:19.604Z","3.0.5":"2021-11-10T21:42:53.033Z"},"maintainers":[{"name":"breathelife","email":"dev@breathelife.com"}],"description":"A prettier plugins to sort imports in provided RegEx order","homepage":"https://github.com/getbreathelife/prettier-plugin-sort-imports#readme","keywords":["prettier","plugin","sort","import","typescript","javascript"],"repository":{"url":"git+https://github.com/getbreathelife/prettier-plugin-sort-imports.git","type":"git"},"author":{"name":"Ayush Sharma","email":"ayush.sharma@trivago.com","url":"https://github.com/ayusharma"},"license":"Apache-2.0","readme":"# @breathelife/prettier-plugin-sort-imports\n\nA prettier plugin to sort import declarations by provided RegEx order. Based on [`@trivago/prettier-plugin-sort-imports`](https://github.com/trivago/prettier-plugin-sort-imports)\n\n### Install\n\nnpm\n\n```shell script\nnpm install --save-dev @breathelife/prettier-plugin-sort-imports\n```\n\nor, using yarn\n\n```shell script\nyarn add --dev @breathelife/prettier-plugin-sort-imports\n```\n\n### Usage\n\nAdd an order in prettier config file.\n\n```ecmascript 6\nmodule.exports = {\n  \"printWidth\": 80,\n  \"tabWidth\": 4,\n  \"trailingComma\": \"all\",\n  \"singleQuote\": true,\n  \"jsxBracketSameLine\": true,\n  \"semi\": true,\n  \"importOrder\": [\"^@core/(.*)$\", \"^@server/(.*)$\", \"^@ui/(.*)$\", \"^[./]\"],\n}\n```\n\n### APIs\n\n#### `importOrder`\nA collection of regular expressions in string format. The plugin\nuses [`new RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp)\nto evaluate regular expression. E.g. `node.source.value.match(new RegExp(val))` Here, `val` \nis the string provided in import order.\n\n#### `strictGrouping`\nRemoves blank lines between import statements of the same group. Defaults to `false`.\n\n#### `experimentalBabelParserPluginsList`\nA collection of parser names for babel parser. The plugin passes this list to babel parser so it can understand the syntaxes used in the file being formatted. The plugin uses prettier itself to figure out the parser it needs to use but if that fails, you can use this field to enforce the usage of the plugins babel needs.\n\n```ecmascript 6\nmodule.exports = {\n  \"printWidth\": 80,\n  \"tabWidth\": 4,\n  \"trailingComma\": \"all\",\n  \"singleQuote\": true,\n  \"jsxBracketSameLine\": true,\n  \"semi\": true,\n  \"importOrder\": [\"^@core/(.*)$\", \"^@server/(.*)$\", \"^@ui/(.*)$\", \"^[./]\"],\n  \"strictGrouping\": true,\n  \"experimentalBabelParserPluginsList\" : [\"jsx\", \"typescript\"]\n}\n```\n\n\n### How does import sort work ?\n\nThe plugin extracts the imports which are defined in `importOrder`. \nThese imports are _local imports_. The imports which are not part of the \n`importOrder` is considered as _3rd party imports_.\n\nAfter, the plugin sorts the _local imports_ and _3rd party imports_ using\n[natural sort algorithm](https://en.wikipedia.org/wiki/Natural_sort_order).\nIn the end, the plugin returns final imports with _3rd party imports_ on top and \n_local imports_ at the end.\n\n### FAQ / Troubleshooting\n\n#### Q. How can I add the RegEx imports in the `importOrder` list ?\nYou can define the RegEx in the `importOrder`. For\nexample if you want to sort the following imports:\n```ecmascript 6\nimport React from 'react';\nimport classnames from 'classnames';\nimport z from '@server/z';\nimport a from '@server/a';\nimport s from './';\nimport p from '@ui/p';\nimport q from '@ui/q';\n```\nthen the `importOrder` would be `[\"^@ui/(.*)$\",\"^@server/(.*)$\", '^[./]']`. \nNow, the final output would be as follows:\n\n```ecmascript 6\nimport classnames from 'classnames';\nimport React from 'react';\nimport p from '@ui/p';\nimport q from '@ui/q';\nimport a from '@server/a';\nimport z from '@server/z';\nimport s from './';\n```\n\n#### Q. How can I run examples in this project ?\nThere is a _examples_ directory. The examples file can be formatted by using\n`npm run example` command.\n\n\n```shell script\nnpm run example examples/example.tsx\n```\n\n#### Q. How to use the plugin with `*.d.ts` files ?\nThe plugin automatically ignores the  `*.d.ts` files. We encourage you to declare the `*.d.ts` files in `.prettierignore`. (Read more here)[https://prettier.io/docs/en/ignore.html#ignoring-files-prettierignore].  \n\n#### Q. How does the plugin handle the first comment in the file. \nThe plugin keeps the first comment as it is in the file. The plugin also removes the new lines in between first comment and the first import.\n**input:**\n```js\n// comment\n\nimport a from 'a'\n```\n**output:**\n```js\n// comment\nimport a from 'a'\n```\n\n#### Q. I'm getting error about experimental syntax.\nIf you are using some experimental syntax and the plugin has trouble parsing your files, you might getting errors similar to this:\n```shell script\nSyntaxError: This experimental syntax requires enabling one of the following parser plugin(s): ...\n```\nTo solve this issue, you can use the new option `experimentalBabelParserPluginsList` in your `.prettierrc` and pass an array of plugin names to be used.\n\n### Difference between this fork and the upstream package\nThe upstream package collects every import lines, sort them according to the given order and rewrite the files with the sorted import statements at the top.\n\nWhile this strategy works well for most use cases, at Breathe Life we sometimes have other types of statements inserted between imports, which won't be preserved\nwith the original strategy. This fork replaces the import statements line-by-line and supports `// prettier-ignore` comments for statements that need to be preserved\nbetween imports.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/getbreathelife/prettier-plugin-sort-imports/issues"}}