Skip to content

Commit ccbdd9b

Browse files
authored
chore: add progress on the linter (podman-desktop#8645)
* chore: add progress on the linter when running lint:check there is no output so we don't know if it's hanging or parsing some files add a plug-in for that Signed-off-by: Florent Benoit <[email protected]>
1 parent e820329 commit ccbdd9b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

eslint.config.mjs

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import etc from 'eslint-plugin-etc';
3333
import svelte from 'eslint-plugin-svelte';
3434
import redundantUndefined from 'eslint-plugin-redundant-undefined';
3535
import simpleImportSort from 'eslint-plugin-simple-import-sort';
36+
import fileProgress from 'eslint-plugin-file-progress';
3637

3738
const __filename = fileURLToPath(import.meta.url);
3839
const __dirname = path.dirname(__filename);
@@ -88,6 +89,7 @@ export default [
8889
plugins: {
8990
// compliant v9 plug-ins
9091
unicorn,
92+
'file-progress': fileProgress,
9193
// non-compliant v9 plug-ins
9294
etc: fixupPluginRules(etc),
9395
import: fixupPluginRules(importPlugin),
@@ -110,6 +112,12 @@ export default [
110112
packages: ['packages/*', 'extensions/*'],
111113
},
112114
},
115+
'file-progress/activate': {
116+
progress: {
117+
hide: false,
118+
successMessage: 'Lint done...',
119+
},
120+
},
113121
},
114122
},
115123
{
@@ -162,6 +170,8 @@ export default [
162170
],
163171
'@typescript-eslint/no-require-imports': 'off',
164172

173+
'file-progress/activate': 'warn',
174+
165175
// disabled import/namespace rule as the plug-in is not fully compatible using the compat mode
166176
'import/namespace': 'off',
167177
'import/no-duplicates': 'error',

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
"eslint-import-resolver-custom-alias": "^1.3.2",
153153
"eslint-import-resolver-typescript": "^3.6.3",
154154
"eslint-plugin-etc": "^2.0.3",
155+
"eslint-plugin-file-progress": "^1.5.0",
155156
"eslint-plugin-import": "^2.29.1",
156157
"eslint-plugin-no-null": "^1.0.2",
157158
"eslint-plugin-redundant-undefined": "^1.0.0",

yarn.lock

+15
Original file line numberDiff line numberDiff line change
@@ -11165,6 +11165,14 @@ eslint-plugin-etc@^2.0.3:
1116511165
tslib "^2.0.0"
1116611166
tsutils "^3.0.0"
1116711167

11168+
eslint-plugin-file-progress@^1.5.0:
11169+
version "1.5.0"
11170+
resolved "https://registry.yarnpkg.com/eslint-plugin-file-progress/-/eslint-plugin-file-progress-1.5.0.tgz#beceb622875d3cad8f2c05afe23d2426ffa80be8"
11171+
integrity sha512-get8oNfacIagP+igSzrEZhepPgodtdwACVeKQsE1fVvTL15tZvgCv8K4B2lKT4FZOZOyhxSkQGnWyjEOx1uoIw==
11172+
dependencies:
11173+
nanospinner "^1.1.0"
11174+
picocolors "^1.0.1"
11175+
1116811176
eslint-plugin-import@^2.29.1:
1116911177
version "2.29.1"
1117011178
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz#d45b37b5ef5901d639c15270d74d46d161150643"
@@ -15956,6 +15964,13 @@ nanoid@^3.3.7:
1595615964
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
1595715965
integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
1595815966

15967+
nanospinner@^1.1.0:
15968+
version "1.1.0"
15969+
resolved "https://registry.yarnpkg.com/nanospinner/-/nanospinner-1.1.0.tgz#d17ff621cb1784b0a206b400da88a0ef6db39b97"
15970+
integrity sha512-yFvNYMig4AthKYfHFl1sLj7B2nkHL4lzdig4osvl9/LdGbXwrdFRoqBS98gsEsOakr0yH+r5NZ/1Y9gdVB8trA==
15971+
dependencies:
15972+
picocolors "^1.0.0"
15973+
1595915974
natural-compare@^1.4.0:
1596015975
version "1.4.0"
1596115976
resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz"

0 commit comments

Comments
 (0)