-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Enforce no trailing spaces #34762
[docs] Enforce no trailing spaces #34762
Conversation
@@ -11,7 +11,7 @@ module.exports = { | |||
// closing double quote: \xE2\x80\x9D | |||
if (line.match('[‘’“”]')) { | |||
onError({ | |||
lineNumber, | |||
lineNumber: lineNumber + 1, |
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.
This was wrong, see how the lint failed with the wrong error message:
docs/pages/blog/mui-x-v6-alpha-zero.md:9 straightQuotes Only allow straight quotes. [This rule threw an exception: Property 'lineNumber' of onError parameter is incorrect.]
|
||
:::warning | ||
For [Storybook](https://storybook.js.org): At the time of this writing, Storybook still uses Emotion 10 by default. | ||
Material UI and TSS use Emotion 11, so you must make [some changes](https://github.com/InseeFrLab/onyxia-ui/blob/324de62248074582b227e584c53fb2e123f5325f/.storybook/main.js#L31-L32) to `.storybook/main.js` in order to use Storybook with Material UI. | ||
::: |
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 don't think that mentioning Storybook makes sense in the context of style library interoperability, plus the content is outdated now: https://twitter.com/storybookjs/status/1578033180883693568.
|
'**/node_modules/**', | ||
'**/*-zh.md', | ||
'**/*-pt.md', | ||
'**/build/**', |
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 have missed this, for those that do releases locally, they had a couple of changelogs in the build that fail the lining rule.
6c127e4
to
273c99d
Compare
273c99d
to
b9cce50
Compare
b9cce50
to
1bf301a
Compare
It's a continuation of this discussion #34686. The value is about being able to more accurately understand how the markdown will render. A double space for adding a line break is almost invisible during the PR reviews but
\
is visible.