From 44ba450b99706e0c5bc4c48d81fef93534c5ba9e Mon Sep 17 00:00:00 2001 From: Dima Livshits Date: Thu, 24 Nov 2022 21:34:39 +0300 Subject: [PATCH] perf: paralint concurrency 2 --- packages/core/package.json | 5 ++- packages/desktop-extra/package.json | 5 ++- packages/desktop/package.json | 5 ++- packages/infra/package.json | 1 + packages/mobile/package.json | 5 ++- packages/ssr/package.json | 5 ++- yarn.lock | 68 +++++++++++++++++++++++++++++ 7 files changed, 84 insertions(+), 10 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index c594b43a2..60c598071 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -22,8 +22,8 @@ "build:es5": "cd src/main && swc ts -d ../../target/es5 --config-file ../../swc.es5.json && cd ../.. && tsc-esm-fix --target=target/es5 --fillBlank", "build:es6": "cd src/main && swc ts -d ../../target/es6 --config-file ../../swc.es6.json && cd ../.. && tsc-esm-fix --target=target/es6 --fillBlank", "build:dts": "tsc --project tsconfig.dts.json", - "format": "eslint --fix src && prettier --loglevel silent --write src", - "lint": "eslint src" + "format": "paralint --concurrency 2 --fix src && prettier --loglevel silent --write src", + "lint": "paralint --concurrency 2 src" }, "files": [ "target/dts/**/*", @@ -63,6 +63,7 @@ "eslint-config-qiwi": "1.17.6", "fast-glob": "3.2.11", "file-loader": "6.2.0", + "paralint": "1.1.2", "prettier": "2.7.1", "prettier-config-qiwi": "1.7.2", "react": "18.2.0", diff --git a/packages/desktop-extra/package.json b/packages/desktop-extra/package.json index bedb8c48f..e2a8c1c4c 100644 --- a/packages/desktop-extra/package.json +++ b/packages/desktop-extra/package.json @@ -23,8 +23,8 @@ "build:es6": "cd src/main && swc ts -d ../../target/es6 --config-file ../../swc.es6.json && cd ../.. && tsc-esm-fix --target=target/es6 --fillBlank", "build:dts": "tsc --project tsconfig.dts.json", "test": "jest", - "format": "eslint --fix src && prettier --loglevel silent --write src", - "lint": "eslint src" + "format": "paralint --concurrency 2 --fix src && prettier --loglevel silent --write src", + "lint": "paralint --concurrency 2 src" }, "files": [ "target/dts/**/*", @@ -54,6 +54,7 @@ "file-loader": "6.2.0", "jest": "^29.0.2", "jest-environment-jsdom": "^29.0.2", + "paralint": "1.1.2", "prettier": "2.7.1", "prettier-config-qiwi": "1.7.2", "react-i18next": "^11.18.5", diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 276a8923a..e757e748e 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -30,8 +30,8 @@ "chrome:start": "docker run --rm -p 6161:3000 --add-host=host.docker.internal:host-gateway browserless/chrome", "test:start": "wait-on http-get://localhost:6060/ http-get://localhost:6161/ && styleguidist-visual test --config styleguide.visual.config.cjs", "test:approve": "styleguidist-visual approve --config styleguide.visual.config.cjs", - "format": "eslint --fix src && prettier --loglevel silent --write src", - "lint": "eslint src" + "format": "paralint --concurrency 2 --fix src && prettier --loglevel silent --write src", + "lint": "paralint --concurrency 2 src" }, "files": [ "target/dts/**/*", @@ -49,6 +49,7 @@ "eslint-config-qiwi": "1.17.6", "fast-glob": "3.2.11", "file-loader": "6.2.0", + "paralint": "1.1.2", "prettier": "2.7.1", "prettier-config-qiwi": "1.7.2", "react-docgen-typescript": "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch", diff --git a/packages/infra/package.json b/packages/infra/package.json index 4f2b544dd..aa8c86865 100644 --- a/packages/infra/package.json +++ b/packages/infra/package.json @@ -18,6 +18,7 @@ "eslint-config-qiwi": "1.17.6", "fast-glob": "3.2.11", "file-loader": "6.2.0", + "paralint": "1.1.2", "prettier": "2.7.1", "prettier-config-qiwi": "1.7.2", "react-docgen-typescript": "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch", diff --git a/packages/mobile/package.json b/packages/mobile/package.json index 8b7ad8ce3..ed8f0b6d2 100644 --- a/packages/mobile/package.json +++ b/packages/mobile/package.json @@ -30,8 +30,8 @@ "chrome:start": "docker run --rm -p 7171:3000 --add-host=host.docker.internal:host-gateway browserless/chrome", "test:start": "wait-on http-get://localhost:7070/ http-get://localhost:7171/ && styleguidist-visual test --config styleguide.visual.config.cjs", "test:approve": "styleguidist-visual approve --config styleguide.visual.config.cjs", - "format": "eslint --fix src && prettier --loglevel silent --write src", - "lint": "eslint src" + "format": "paralint --concurrency 2 --fix src && prettier --loglevel silent --write src", + "lint": "paralint --concurrency 2 src" }, "files": [ "target/dts/**/*", @@ -49,6 +49,7 @@ "eslint-config-qiwi": "1.17.6", "fast-glob": "3.2.11", "file-loader": "6.2.0", + "paralint": "1.1.2", "prettier": "2.7.1", "prettier-config-qiwi": "1.7.2", "react-docgen-typescript": "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch", diff --git a/packages/ssr/package.json b/packages/ssr/package.json index d308ad71c..d9888b7d6 100644 --- a/packages/ssr/package.json +++ b/packages/ssr/package.json @@ -22,8 +22,8 @@ "build:es5": "cd src/main && swc ts -d ../../target/es5 --config-file ../../swc.es5.json && cd ../.. && tsc-esm-fix --target=target/es5 --fillBlank", "build:es6": "cd src/main && swc ts -d ../../target/es6 --config-file ../../swc.es6.json && cd ../.. && tsc-esm-fix --target=target/es6 --fillBlank", "build:dts": "tsc --project tsconfig.dts.json", - "format": "eslint --fix src && prettier --loglevel silent --write src", - "lint": "eslint src" + "format": "paralint --concurrency 2 --fix src && prettier --loglevel silent --write src", + "lint": "paralint --concurrency 2 src" }, "files": [ "target/dts/**/*", @@ -41,6 +41,7 @@ "eslint-config-qiwi": "1.17.6", "fast-glob": "3.2.11", "file-loader": "6.2.0", + "paralint": "1.1.2", "prettier": "2.7.1", "prettier-config-qiwi": "1.7.2", "react-docgen-typescript": "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch", diff --git a/yarn.lock b/yarn.lock index 132b8c6a0..95cc966fd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1075,6 +1075,15 @@ __metadata: languageName: node linkType: hard +"@npmcli/promise-spawn@npm:^6.0.1": + version: 6.0.1 + resolution: "@npmcli/promise-spawn@npm:6.0.1" + dependencies: + which: "npm:^3.0.0" + checksum: cf53e15285531f9a5b9bfd9199fac2fced65aa15fc022509679c8f382f8342dfcd2da382a46a32a3346c9190a7a715d410e1124e67146eab44f9b4a24615f4aa + languageName: node + linkType: hard + "@popperjs/core@npm:^2.8.6, @popperjs/core@npm:^2.9.0": version: 2.11.6 resolution: "@popperjs/core@npm:2.11.6" @@ -1114,6 +1123,7 @@ __metadata: fast-glob: "npm:3.2.11" file-loader: "npm:6.2.0" markdown-to-jsx: "npm:^7.1.7" + paralint: "npm:1.1.2" prettier: "npm:2.7.1" prettier-config-qiwi: "npm:1.7.2" react: "npm:18.2.0" @@ -1158,6 +1168,7 @@ __metadata: file-loader: "npm:6.2.0" jest: "npm:^29.0.2" jest-environment-jsdom: "npm:^29.0.2" + paralint: "npm:1.1.2" prettier: "npm:2.7.1" prettier-config-qiwi: "npm:1.7.2" react-day-picker: "npm:^8.2.0" @@ -1188,6 +1199,7 @@ __metadata: eslint-config-qiwi: "npm:1.17.6" fast-glob: "npm:3.2.11" file-loader: "npm:6.2.0" + paralint: "npm:1.1.2" prettier: "npm:2.7.1" prettier-config-qiwi: "npm:1.7.2" react-docgen-typescript: "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch" @@ -1221,6 +1233,7 @@ __metadata: eslint-config-qiwi: "npm:1.17.6" fast-glob: "npm:3.2.11" file-loader: "npm:6.2.0" + paralint: "npm:1.1.2" prettier: "npm:2.7.1" prettier-config-qiwi: "npm:1.7.2" react-docgen-typescript: "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch" @@ -1245,6 +1258,7 @@ __metadata: eslint-config-qiwi: "npm:1.17.6" fast-glob: "npm:3.2.11" file-loader: "npm:6.2.0" + paralint: "npm:1.1.2" prettier: "npm:2.7.1" prettier-config-qiwi: "npm:1.7.2" react-docgen-typescript: "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch" @@ -1270,6 +1284,7 @@ __metadata: eslint-config-qiwi: "npm:1.17.6" fast-glob: "npm:3.2.11" file-loader: "npm:6.2.0" + paralint: "npm:1.1.2" prettier: "npm:2.7.1" prettier-config-qiwi: "npm:1.7.2" react-docgen-typescript: "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch" @@ -3861,6 +3876,13 @@ __metadata: languageName: node linkType: hard +"dargs@npm:^8.1.0": + version: 8.1.0 + resolution: "dargs@npm:8.1.0" + checksum: a0569eb93a4a1604dbda0181c0efcba3888e481e0c2aedfe1abdde3e4d719fbde77208cb8d0556ef56662ab4f04c52b06124586041f75b4d9159e43f4e16983b + languageName: node + linkType: hard + "data-urls@npm:^3.0.2": version: 3.0.2 resolution: "data-urls@npm:3.0.2" @@ -5008,6 +5030,19 @@ __metadata: languageName: node linkType: hard +"fast-glob@npm:^3.2.12": + version: 3.2.12 + resolution: "fast-glob@npm:3.2.12" + dependencies: + "@nodelib/fs.stat": "npm:^2.0.2" + "@nodelib/fs.walk": "npm:^1.2.3" + glob-parent: "npm:^5.1.2" + merge2: "npm:^1.3.0" + micromatch: "npm:^4.0.4" + checksum: 3b98e0cadbf2aea3fa2be76e28b0c895bb18d920ccb7b3d3f603a464e3dc2c6a89a8afb9f9765226bd4d4d74b70e880721ff7a57a267c2eaa11353f35d42d11b + languageName: node + linkType: hard + "fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0": version: 2.1.0 resolution: "fast-json-stable-stringify@npm:2.1.0" @@ -7901,6 +7936,13 @@ __metadata: languageName: node linkType: hard +"minimist@npm:^1.2.7": + version: 1.2.7 + resolution: "minimist@npm:1.2.7" + checksum: 7bb50119bb59f48228a834e293a566c4b0e1b6c4648db83fb88830b4f932bfeaca72158bcdcc8a74130b339167eda92ec4cabb65faf07ab8d32542889a451676 + languageName: node + linkType: hard + "minipass-collect@npm:^1.0.2": version: 1.0.2 resolution: "minipass-collect@npm:1.0.2" @@ -8577,6 +8619,21 @@ __metadata: languageName: node linkType: hard +"paralint@npm:1.1.2": + version: 1.1.2 + resolution: "paralint@npm:1.1.2" + dependencies: + "@npmcli/promise-spawn": "npm:^6.0.1" + dargs: "npm:^8.1.0" + fast-glob: "npm:^3.2.12" + minimist: "npm:^1.2.7" + tslib: "npm:^2.4.0" + bin: + paralint: target/es6/cli.js + checksum: fcfd333754039d670138392ef3e6b8ae7dbb7749b4240c833a8b8ff99a4cf3cd1d3f08fb24e34cc13e5563daacbdfc7c9040281afd239018ecc5359b4f7b8ef8 + languageName: node + linkType: hard + "parent-module@npm:^1.0.0": version: 1.0.1 resolution: "parent-module@npm:1.0.1" @@ -11816,6 +11873,17 @@ __metadata: languageName: node linkType: hard +"which@npm:^3.0.0": + version: 3.0.0 + resolution: "which@npm:3.0.0" + dependencies: + isexe: "npm:^2.0.0" + bin: + node-which: bin/which.js + checksum: c946888017dd9f52eccff68c892432a757401abeb9cf1e8e0d40a04a0996844e28e2870aaa4071c52f3cc3b20ff908db40be6ab1be0bed29dc0431e353c98bb5 + languageName: node + linkType: hard + "wide-align@npm:^1.1.5": version: 1.1.5 resolution: "wide-align@npm:1.1.5"