atlassian / atlassian/better-ajv-errors
old chalk 2 using __proto__ is installed by babel/code-frame
- Dominant language
- JavaScript
- Stars
- 245
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
this is problematic, because some node/deno users disable __proto__.
However https://github.com/babel/babel/issues/13728 babel 7 supports node 6, and won't update its chalk dependency.
Best solution would be to use another lib for codeFrameColumns.
Contributor guide
No contributing guide indexed for this repository
Research direction
Trace how Babel's code-frame package and codeFrameColumns are brought into better-ajv-errors, starting with the package dependency and the entry point that formats validation errors. Check the existing behavior around __proto__ usage and identify a replacement that fits the stated Node 6 compatibility; done means the old Chalk 2 path is no longer installed while code-frame output still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100