Skip to content

Commit 4a009cc

Browse files
committed
fix(#36): update docs
1 parent 73d6d0d commit 4a009cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/rules/filename-blocklist.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ Customizes the error message displayed when a file is blocked due to matching a
6666
- `{{ target }}`: Represents the filename of the blocked file.
6767
- `{{ pattern }}`: Represents the blocklisted filename pattern.
6868

69+
When `errorMessage` is set, the suggested glob pattern is not necessary, it can be set as empty string.
70+
6971
```js
7072
module.exports = {
7173
plugins: ['check-file'],
7274
rules: {
7375
'check-file/filename-blocklist': [
7476
'error',
75-
{ '*.models.ts': '*.model.ts' },
77+
{ '*.models.ts': '' },
7678
{
7779
errorMessage:
7880
'The file "{{ target }}" is blocked since it since it matches the blocklisted pattern "{{ pattern }}", see contribute.md for details',

0 commit comments

Comments
 (0)