Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable unicorn/number-literal-case #255

Merged
merged 1 commit into from Jun 3, 2022

Conversation

philipp-spiess
Copy link
Member

This PR disables unicorn/number-literal-case since it interferes with our prettier config that forces lowercase values already. E.g.

0xFF

is changed to the following vie prettier:

0xff

This PR disables [unicorn/number-literal-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v42.0.0/docs/rules/number-literal-case.md) since it interferes with our prettier config that forces lowercase values already. E.g.

```
0xFF
```

is changed to the following vie prettier:

```
0xff
```
Copy link

@vdavid vdavid left a comment

Choose a reason for hiding this comment

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

I saw the clash happen and this change seems like the right solution to avoid it in the future.

@philipp-spiess
Copy link
Member Author

@valerybugakov Is there any special steps I need to take after merging this to make sure it is applied to the monorepo?

Copy link
Member

@valerybugakov valerybugakov left a comment

Choose a reason for hiding this comment

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

@philipp-spiess, the flow goes like this:

  1. Merge this PR using the conventional commit message format.
  2. Wait for a new version published to the NPM registry.
  3. Update the @sourcegraph/eslint-config version in the monorepo.
  4. 🎉

@eseliger
Copy link
Member

eseliger commented Jun 2, 2022

This repo will auto publish a new version of the npm package, so in the main repo you need to bump the version then.

@philipp-spiess philipp-spiess merged commit 3c04ae6 into master Jun 3, 2022
@philipp-spiess philipp-spiess deleted the ps/disable-number-literal-case branch June 3, 2022 12:36
@sourcegraph-buildkite
Copy link
Collaborator

🎉 This PR is included in version 0.31.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants