Skip to content

Commit ffd4afe

Browse files
committed
docs(plugin-eslint): update README to mention wildcard patterns for custom groups
1 parent e872b0e commit ffd4afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-eslint/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Detected ESLint rules are mapped to Code PushUp audits. Audit reports are calcul
9595

9696
### Custom groups
9797

98-
You can extend the plugin configuration with custom groups to categorize ESLint rules according to your project's specific needs. Custom groups allow you to assign weights to individual rules, influencing their impact on the report. Rules can be defined as an object with explicit weights or as an array where each rule defaults to a weight of 1.
98+
You can extend the plugin configuration with custom groups to categorize ESLint rules according to your project's specific needs. Custom groups allow you to assign weights to individual rules, influencing their impact on the report. Rules can be defined as an object with explicit weights or as an array where each rule defaults to a weight of 1. Additionally, you can use wildcard patterns (`*`) to include multiple rules with similar prefixes.
9999
100100
```js
101101
import eslintPlugin from '@code-pushup/eslint-plugin';
@@ -120,7 +120,7 @@ export default {
120120
{
121121
slug: 'type-safety',
122122
title: 'Type safety',
123-
rules: ['@typescript-eslint/no-explicit-any', '@typescript-eslint/no-unsafe-*'],
123+
rules: ['@typescript-eslint/no-unsafe-*'],
124124
},
125125
],
126126
},

0 commit comments

Comments
 (0)