Skip to content

Conversation

@tinfoil-knight
Copy link
Contributor

@tinfoil-knight tinfoil-knight commented Jul 13, 2021

- Summary

See #1891

Enables the fp/no-proxy for eslint-plugin-fp.

There was only a single instance of Proxy being used to disable colors for the chalk package. The package now has a level option that can be used to disable the coloring as documented here: https://github.com/chalk/chalk#chalklevel.

The file: src/utils/command.js was using this custom chalk instance.

- Test plan

npx ava -v -s ran without errors. I tried out the sites:list command normally and with the --json flag. As expected --json produced discolored output.

@erezrokah erezrokah added the type: chore work needed to keep the product and development running smoothly label Jul 13, 2021
Copy link
Contributor

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tinfoil-knight nice catch. I got an error on a missing ctor with the previous code.
Looks like we should use https://github.com/chalk/chalk/tree/v4.1.1#chalklevel

The examples on the default branch are already updated for the switch to ESM

@erezrokah erezrokah enabled auto-merge (squash) July 14, 2021 13:40
@erezrokah erezrokah merged commit 055fdbb into netlify:main Jul 14, 2021
@tinfoil-knight tinfoil-knight deleted the 1891-no-proxy branch September 24, 2021 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore work needed to keep the product and development running smoothly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants