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

fix(documentation): Styles docs has MDX p #2128

Merged
merged 1 commit into from Oct 25, 2023
Merged

Conversation

imagoiq
Copy link
Contributor

@imagoiq imagoiq commented Oct 25, 2023

Fix bug introduced with #1952

@changeset-bot
Copy link

changeset-bot bot commented Oct 25, 2023

⚠️ No Changeset found

Latest commit: b658b88

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarcloud
Copy link

sonarcloud bot commented Oct 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Oct 25, 2023

Preview environment ready: https://preview-2128--swisspost-design-system-next.netlify.app

@imagoiq imagoiq merged commit 3fbdfbc into main Oct 25, 2023
9 checks passed
@imagoiq imagoiq deleted the fix/lint-styles-docs branch October 25, 2023 11:16
imagoiq added a commit that referenced this pull request Oct 31, 2023
### What

Commit essential linting and formatting config from our favourite IDE to
the repository. The aim is to have the same config across the team and
across IDE so we avoid dealing with changes that shouldn't be part of
our PR.

* Add config for Intellij and vscode
  - Remove gitignore on .idea config
  - Disable prettier on MDX files
  - Use LF as default line separator
  - Enable format on save
* Run `prettier --write
"**/*.{**/*,*}.{js,ts,jsx,tsx,scss,css,html,json}"`
* Remove prettier-ignore in mdx files

About MDX:
Disable formatting totally, as the maximum printWidth rule conflicts
with MDX syntax about new line = `<p>`.
Latest issue that we had:
#2128 . Issue on Prettier
repository: prettier/prettier#12209

If this wouldn't be enough, the second option is to ensure that our
files are checked before committed with a git hook:
https://github.com/lint-staged/lint-staged

For review: you can do it commit by commit.

---------

Co-authored-by: Philipp Gfeller <1659006+gfellerph@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants