What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
Upgraded @humanwhocodes/config-array to include new error details, then updated FlatConfigArray to use that info to produce an error message containing the index of the config that caused the error.
fixes #18259
Is there anything you'd like reviewers to focus on?
I used the terms "original", "base", and "user-defined" to differentiate between the different parts of the config array. I'm not sure how accurate those are but they are at least indicating the different parts of the array where the error occurred.
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update [ ] Bug fix (template) [ ] New rule (template) [ ] Changes an existing rule (template) [ ] Add autofix to a rule [ ] Add a CLI option [x] Add something to the core [ ] Other, please explain:
What changes did you make? (Give an overview)
Upgraded
@humanwhocodes/config-array
to include new error details, then updatedFlatConfigArray
to use that info to produce an error message containing the index of the config that caused the error.fixes #18259
Is there anything you'd like reviewers to focus on?
I used the terms "original", "base", and "user-defined" to differentiate between the different parts of the config array. I'm not sure how accurate those are but they are at least indicating the different parts of the array where the error occurred.