-
Notifications
You must be signed in to change notification settings - Fork 33
fix: Formatting Rule Doesn't use default set by user #1547
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
Changes from 1 commit
789a7df
5a23de3
175f777
b65a4c4
93c32fb
c039d56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -617,7 +617,7 @@ export class FormattingSectionContent extends PureComponent< | |
| checked={truncateNumbersWithPound ?? null} | ||
| onChange={this.handleTruncateNumbersWithPoundChange} | ||
| > | ||
| Truncate numbers with # | ||
| Show truncated numbers as ### | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A contextual help bubble could be useful here... I think the phrase "Mask truncated numbers with ###" may be better as well, @dsmmcken any opinion?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am fine with this suggestion. Using the word show is more consistent wit the other labels, like "Show T seperator", and I like the multiple hashtags in the label. It's a bit long now is my only complaint.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It only applies to numbers though |
||
| </Checkbox> | ||
| </div> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,12 @@ module.exports = { | |
| 'react-refresh', | ||
| ], | ||
| rules: { | ||
| 'prettier/prettier': ['error'], | ||
| 'prettier/prettier': [ | ||
| 'error', | ||
| { | ||
| endOfLine: 'auto', | ||
| }, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't be changing the |
||
| ], | ||
| 'react/forbid-prop-types': 'off', | ||
| 'react/jsx-curly-newline': 'off', | ||
| 'react/jsx-uses-react': 'error', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I like this - it's kind of hidden functionality that is difficult for the user to find. Granted, I don't know a better way to start with the default/edit it, other than copying pasting from above.
@dsmmcken Do you have any ideas for creating a new rule based off the default but edited slightly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just set it to the initial value instead of a placeholder.