Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: show eslint progress #3172

Merged
merged 7 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
"matchDepTypes": ["engines"],
"rangeStrategy": "replace"
},
{
// Disable updates for eslint-plugin-file-progress + rimraf until Node 18 support is dropped
"groupName": "disabled",
"matchPackageNames": ["eslint-plugin-file-progress", "rimraf"],
"enabled": false
},
{
"groupName": "eslint",
"matchPackageNames": [
Expand All @@ -58,12 +64,6 @@
{
"groupName": "doc-dependencies",
"matchPackageNames": ["ts-morph", "vitepress"]
},
{
// Disable updates for rimraf until Node 18 support is dropped
"groupName": "disabled",
"matchPackageNames": ["rimraf"],
"enabled": false
}
],
"stopUpdatingLabel": "s: on hold",
Expand Down
8 changes: 8 additions & 0 deletions eslint-plugin-file-progress.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// TODO @ST-DDT 2024-11-04: This file can be removed in v2.0.0 which requires Node 20+
declare module 'eslint-plugin-file-progress' {
import type { Rule } from 'eslint';

export const rules: {
activate: Rule.RuleModule;
};
}
15 changes: 14 additions & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 * as 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';
Expand Down Expand Up @@ -200,7 +201,19 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(

//#region prettier
eslintPluginPrettierRecommended,
//#endregion,
//#endregion

//#region file-progress
// https://www.npmjs.com/package/eslint-plugin-file-progress
ST-DDT marked this conversation as resolved.
Show resolved Hide resolved
{
plugins: {
'file-progress': eslintPluginFileProgress,
},
rules: {
'file-progress/activate': 1, // 1 => enabled
},
},
//#endregion

//#region overrides
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"cypress": "13.15.1",
"eslint": "9.14.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-file-progress": "1.5.0",
"eslint-plugin-jsdoc": "50.4.3",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-unicorn": "56.0.0",
Expand Down
21 changes: 21 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading