From 2ec9c4779591a430822b159ca79d0486e9a0c545 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Tue, 5 Nov 2024 13:11:52 +0100 Subject: [PATCH] infra: show eslint progress (#3172) Co-authored-by: ST-DDT --- eslint.config.ts | 7 ++++++- package.json | 1 + pnpm-lock.yaml | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/eslint.config.ts b/eslint.config.ts index 1d729fe1f2c..48bf8bffb89 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -2,6 +2,7 @@ import { includeIgnoreFile } from '@eslint/compat'; import eslint from '@eslint/js'; import stylistic from '@stylistic/eslint-plugin'; import eslintPluginVitest from '@vitest/eslint-plugin'; +import eslintPluginFileProgress from 'eslint-plugin-file-progress'; import eslintPluginJsdoc from 'eslint-plugin-jsdoc'; import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; import eslintPluginUnicorn from 'eslint-plugin-unicorn'; @@ -200,7 +201,11 @@ const config: ReturnType = tseslint.config( //#region prettier eslintPluginPrettierRecommended, - //#endregion, + //#endregion + + //#region file-progress + eslintPluginFileProgress.configs.recommended, + //#endregion //#region overrides { diff --git a/package.json b/package.json index 27f792044af..0a2fa2a8be2 100644 --- a/package.json +++ b/package.json @@ -120,6 +120,7 @@ "cypress": "13.15.1", "eslint": "9.14.0", "eslint-config-prettier": "9.1.0", + "eslint-plugin-file-progress": "2.1.1", "eslint-plugin-jsdoc": "50.4.3", "eslint-plugin-prettier": "5.2.1", "eslint-plugin-unicorn": "56.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 54b47cba0d5..125d537b131 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,6 +59,9 @@ importers: eslint-config-prettier: specifier: 9.1.0 version: 9.1.0(eslint@9.14.0(jiti@2.3.3)) + eslint-plugin-file-progress: + specifier: 2.1.1 + version: 2.1.1(eslint@9.14.0(jiti@2.3.3)) eslint-plugin-jsdoc: specifier: 50.4.3 version: 50.4.3(eslint@9.14.0(jiti@2.3.3)) @@ -1896,6 +1899,12 @@ packages: peerDependencies: eslint: '>=7.0.0' + eslint-plugin-file-progress@2.1.1: + resolution: {integrity: sha512-Sv4JXc3WRtNxxqRbgcGKbvGhgacEYoFaWqplMIJK2zrPhlmdGR2z9T9AZZv8Nhy1uh90O3t7dnSo/JsiLvVYnQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^9.0.0 + eslint-plugin-jsdoc@50.4.3: resolution: {integrity: sha512-uWtwFxGRv6B8sU63HZM5dAGDhgsatb+LONwmILZJhdRALLOkCX2HFZhdL/Kw2ls8SQMAVEfK+LmnEfxInRN8HA==} engines: {node: '>=18'} @@ -2685,6 +2694,9 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanospinner@1.2.0: + resolution: {integrity: sha512-dGxYcEj8YhuxjVO3PYmnj1nBhtwUkvuwYbLl/MduBPmQUPy3xBtG/ScJgqZgntQkX44UQaCSlFeW4rS5fUR/Sw==} + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -5508,6 +5520,12 @@ snapshots: dependencies: eslint: 9.14.0(jiti@2.3.3) + eslint-plugin-file-progress@2.1.1(eslint@9.14.0(jiti@2.3.3)): + dependencies: + eslint: 9.14.0(jiti@2.3.3) + nanospinner: 1.2.0 + picocolors: 1.1.1 + eslint-plugin-jsdoc@50.4.3(eslint@9.14.0(jiti@2.3.3)): dependencies: '@es-joy/jsdoccomment': 0.49.0 @@ -6347,6 +6365,10 @@ snapshots: nanoid@3.3.7: {} + nanospinner@1.2.0: + dependencies: + picocolors: 1.1.1 + natural-compare@1.4.0: {} neo-async@2.6.2: {}