Skip to content

Commit 7cf7f0a

Browse files
authored
Merge pull request #162 from manudeli/fix/config-error-text-intuitively
fix(cli): update error text readConfig intuitively
2 parents d0aaf78 + c8f113d commit 7cf7f0a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/silver-crabs-occur.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@arethetypeswrong/cli": patch
3+
---
4+
5+
Fix incorrect validation error message text

packages/cli/src/readConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function readConfig(program: Command, alternate = ".attw.json") {
1515
const value = opts[key];
1616

1717
if (key === "ignoreRules") {
18-
if (!Array.isArray(value)) program.error(`error: config option 'ignore' should be an array.`);
18+
if (!Array.isArray(value)) program.error(`error: config option 'ignoreRules' should be an array.`);
1919
const invalid = value.find((rule) => !Object.values(problemFlags).includes(rule));
2020
if (invalid)
2121
program.error(

0 commit comments

Comments
 (0)