diff --git a/.eslintrc.json b/.eslintrc.json index 8be0e266..bc025f06 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -36,6 +36,7 @@ } ], "prettier/prettier": "error", - "simple-import-sort/sort": "error" + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error" } } diff --git a/.pnp.js b/.pnp.js index b50dbd94..1658c6d7 100755 --- a/.pnp.js +++ b/.pnp.js @@ -70,7 +70,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["eslint-config-prettier", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.15.0"], ["eslint-plugin-jest", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:23.20.0"], ["eslint-plugin-prettier", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:3.1.4"], - ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:5.0.3"], + ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.0.0"], ["jest", "npm:26.6.3"], ["jest-extended", "npm:0.11.5"], ["nock", "npm:13.0.5"], @@ -2553,7 +2553,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["eslint-config-prettier", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.15.0"], ["eslint-plugin-jest", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:23.20.0"], ["eslint-plugin-prettier", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:3.1.4"], - ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:5.0.3"], + ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.0.0"], ["jest", "npm:26.6.3"], ["jest-extended", "npm:0.11.5"], ["nock", "npm:13.0.5"], @@ -2608,7 +2608,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["eslint-config-prettier", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.15.0"], ["eslint-plugin-jest", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:23.20.0"], ["eslint-plugin-prettier", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:3.1.4"], - ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:5.0.3"], + ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.0.0"], ["got", "npm:11.8.0"], ["jest", "npm:26.6.3"], ["jest-extended", "npm:0.11.5"], @@ -6554,10 +6554,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["eslint-plugin-simple-import-sort", [ - ["virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:5.0.3", { - "packageLocation": "./.yarn/$$virtual/eslint-plugin-simple-import-sort-virtual-c8f3cf3e9a/0/cache/eslint-plugin-simple-import-sort-npm-5.0.3-aba8e8c20e-75bd43970b.zip/node_modules/eslint-plugin-simple-import-sort/", + ["virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.0.0", { + "packageLocation": "./.yarn/$$virtual/eslint-plugin-simple-import-sort-virtual-807e1376ce/0/cache/eslint-plugin-simple-import-sort-npm-6.0.0-911be0b59c-7e427db9a2.zip/node_modules/eslint-plugin-simple-import-sort/", "packageDependencies": [ - ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:5.0.3"], + ["eslint-plugin-simple-import-sort", "virtual:d203bf382b1d200a4debed8aca4ef27c3ac5838eaa88751966fdf2c665f75cf7b2bdaf2167e9cb6f24b433c641ff73155e43c645d08a955402360bc364d3a9d8#npm:6.0.0"], ["@types/eslint", "npm:7.2.4"], ["eslint", "npm:7.13.0"] ], diff --git a/.yarn/cache/eslint-plugin-simple-import-sort-npm-5.0.3-aba8e8c20e-75bd43970b.zip b/.yarn/cache/eslint-plugin-simple-import-sort-npm-5.0.3-aba8e8c20e-75bd43970b.zip deleted file mode 100644 index 81aebd65..00000000 Binary files a/.yarn/cache/eslint-plugin-simple-import-sort-npm-5.0.3-aba8e8c20e-75bd43970b.zip and /dev/null differ diff --git a/.yarn/cache/eslint-plugin-simple-import-sort-npm-6.0.0-911be0b59c-7e427db9a2.zip b/.yarn/cache/eslint-plugin-simple-import-sort-npm-6.0.0-911be0b59c-7e427db9a2.zip new file mode 100644 index 00000000..e3c8f683 Binary files /dev/null and b/.yarn/cache/eslint-plugin-simple-import-sort-npm-6.0.0-911be0b59c-7e427db9a2.zip differ diff --git a/package.json b/package.json index 30512932..8489037c 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "eslint-config-prettier": "^6.11.0", "eslint-plugin-jest": "^23.20.0", "eslint-plugin-prettier": "^3.1.4", - "eslint-plugin-simple-import-sort": "^5.0.3", + "eslint-plugin-simple-import-sort": "^6.0.0", "jest": "^26.4.1", "jest-extended": "^0.11.5", "nock": "^13.0.4", diff --git a/packages/guardian-api/package.json b/packages/guardian-api/package.json index 9d683f6e..fd292216 100644 --- a/packages/guardian-api/package.json +++ b/packages/guardian-api/package.json @@ -81,7 +81,7 @@ "eslint-config-prettier": "^6.11.0", "eslint-plugin-jest": "^23.8.2", "eslint-plugin-prettier": "^3.1.2", - "eslint-plugin-simple-import-sort": "^5.0.2", + "eslint-plugin-simple-import-sort": "^6.0.0", "got": "^11.5.2", "jest": "^26.4.0", "jest-extended": "^0.11.5", diff --git a/packages/guardian-api/src/resources/index.ts b/packages/guardian-api/src/resources/index.ts index dc23c73e..f002fd73 100644 --- a/packages/guardian-api/src/resources/index.ts +++ b/packages/guardian-api/src/resources/index.ts @@ -1,3 +1,3 @@ -export * from "./users"; -export * from "./groups"; export * from "./configurations"; +export * from "./groups"; +export * from "./users"; diff --git a/packages/guardian-crypto/src/builders/index.ts b/packages/guardian-crypto/src/builders/index.ts index d3707fc8..088006be 100644 --- a/packages/guardian-crypto/src/builders/index.ts +++ b/packages/guardian-crypto/src/builders/index.ts @@ -1,2 +1,2 @@ -export * from "./guardian-user-permissions"; export * from "./guardian-group-permissions"; +export * from "./guardian-user-permissions"; diff --git a/packages/guardian-crypto/src/index.ts b/packages/guardian-crypto/src/index.ts index 8415b454..d58ff09a 100644 --- a/packages/guardian-crypto/src/index.ts +++ b/packages/guardian-crypto/src/index.ts @@ -6,4 +6,4 @@ import * as Enums from "./enums"; import * as Interfaces from "./interfaces"; import * as Transactions from "./transactions"; -export { ARKCrypto, Builders, Transactions, Interfaces, Enums, Defaults }; +export { ARKCrypto, Builders, Defaults, Enums, Interfaces, Transactions }; diff --git a/packages/guardian-crypto/src/transactions/index.ts b/packages/guardian-crypto/src/transactions/index.ts index d3707fc8..088006be 100644 --- a/packages/guardian-crypto/src/transactions/index.ts +++ b/packages/guardian-crypto/src/transactions/index.ts @@ -1,2 +1,2 @@ -export * from "./guardian-user-permissions"; export * from "./guardian-group-permissions"; +export * from "./guardian-user-permissions"; diff --git a/packages/guardian-transactions/src/handlers/index.ts b/packages/guardian-transactions/src/handlers/index.ts index d3707fc8..088006be 100644 --- a/packages/guardian-transactions/src/handlers/index.ts +++ b/packages/guardian-transactions/src/handlers/index.ts @@ -1,2 +1,2 @@ -export * from "./guardian-user-permissions"; export * from "./guardian-group-permissions"; +export * from "./guardian-user-permissions"; diff --git a/packages/guardian-transactions/src/index.ts b/packages/guardian-transactions/src/index.ts index f14bff9c..169a18ee 100644 --- a/packages/guardian-transactions/src/index.ts +++ b/packages/guardian-transactions/src/index.ts @@ -5,4 +5,4 @@ import * as Interfaces from "./interfaces"; import * as Indexers from "./wallet-indexes"; export * from "./service-provider"; -export { Handlers, Defaults, Interfaces, Indexers, Errors }; +export { Defaults, Errors, Handlers, Indexers, Interfaces }; diff --git a/yarn.lock b/yarn.lock index 2a62d400..c3b60c97 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2288,7 +2288,7 @@ __metadata: eslint-config-prettier: ^6.11.0 eslint-plugin-jest: ^23.8.2 eslint-plugin-prettier: ^3.1.2 - eslint-plugin-simple-import-sort: ^5.0.2 + eslint-plugin-simple-import-sort: ^6.0.0 got: ^11.5.2 jest: ^26.4.0 jest-extended: ^0.11.5 @@ -2400,7 +2400,7 @@ __metadata: eslint-config-prettier: ^6.11.0 eslint-plugin-jest: ^23.20.0 eslint-plugin-prettier: ^3.1.4 - eslint-plugin-simple-import-sort: ^5.0.3 + eslint-plugin-simple-import-sort: ^6.0.0 jest: ^26.4.1 jest-extended: ^0.11.5 nock: ^13.0.4 @@ -5713,12 +5713,12 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-simple-import-sort@npm:^5.0.2, eslint-plugin-simple-import-sort@npm:^5.0.3": - version: 5.0.3 - resolution: "eslint-plugin-simple-import-sort@npm:5.0.3" +"eslint-plugin-simple-import-sort@npm:^6.0.0": + version: 6.0.0 + resolution: "eslint-plugin-simple-import-sort@npm:6.0.0" peerDependencies: eslint: ">=5.0.0" - checksum: 75bd43970b6f2b92967eef34d6972ac136980cb8eab2ddcb16ec16efe8a3ecf5a0db207581c23bd141c0597258835958b66da1d8db961c721114ecd7204d167a + checksum: 7e427db9a20816cd9071e5ed8bf64cc9bb6e9a4f8e8dccca76b5cbdbe21312879725beba4d809fbf944fcbb06a44ffbbb1f5b096d17aac5917bc2a26776b7790 languageName: node linkType: hard