@trivago/prettier-plugin-sort-imports
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@trivago/prettier-plugin-sort-imports", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A prettier plugins to sort imports in provided RegEx order", | ||
"main": "lib/src/index.js", | ||
"repository": { | ||
"url": "https://github.com/trivago/prettier-plugin-sort-imports", | ||
"type": "git" | ||
}, | ||
"homepage": "https://github.com/trivago/prettier-plugin-sort-imports#readme", | ||
"scripts": { | ||
@@ -7,0 +12,0 @@ "compile": "tsc", |
@@ -31,3 +31,3 @@ # Prettier plugin sort imports | ||
"semi": true, | ||
"importOrder": ["^@core/(.*)$", "^@server/(.*)", "^@ui/(.*)$", "^[./]"], | ||
"importOrder": ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], | ||
} | ||
@@ -41,3 +41,3 @@ ``` | ||
to evaluate RegEx. E.g. `node.source.value.match(new RegExp(val))` Here, `val` | ||
is the string provide in import order. | ||
is the string provided in import order. | ||
@@ -58,3 +58,3 @@ | ||
##### Q. Hoe can I add the RegEx imports in the `importOrder` list ? | ||
##### Q. How can I add the RegEx imports in the `importOrder` list ? | ||
You can define the RegEx in the `importOrder`. For | ||
@@ -71,3 +71,3 @@ example if you want to sort the following imports: | ||
``` | ||
then the `importOrder` would be `["^@ui/(.*)$","^@server/(.*)", '^[./]']`. | ||
then the `importOrder` would be `["^@ui/(.*)$","^@server/(.*)$", '^[./]']`. | ||
Now, the final output would be as follows: | ||
@@ -74,0 +74,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
20210
0
0