forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add global prettier config (Shopify#15)
## Context Made one global config for prettier ## Changes Created new config package with the prettier config ## Checklist - [x] My code follows the style guidelines of this project - [x] I've performed a self-review of my own code - [x] I've added a changeset if this PR contains user-facing or noteworthy changes - [x] I've commented my code, particularly in hard-to-understand areas - [x] I've made corresponding changes to the documentation - [x] I've tested my code for breaking changes and added the corresponding footer in this PR if needed
- Loading branch information
1 parent
7362686
commit aac866b
Showing
8 changed files
with
101 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@code-internet-applications/prettier-config': minor | ||
--- | ||
|
||
Add initial directory and config for prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 80, | ||
"proseWrap": "always", | ||
"semi": true, | ||
"singleQuote": true, | ||
"useTabs": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
} | ||
"@code-internet-applications/prettier-config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 80, | ||
"proseWrap": "always", | ||
"semi": true, | ||
"singleQuote": true, | ||
"useTabs": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# @code-internet-applications/prettier-config | ||
|
||
A sharable config for prettier | ||
|
||
## Installation | ||
|
||
``` | ||
pnpm add -D @code-internet-applications/prettier-config | ||
``` | ||
|
||
## Usage | ||
|
||
To use the library, install it and then add the following to your `.prettierrc` | ||
file: | ||
|
||
``` | ||
"@code-internet-applications/prettier-config" | ||
``` | ||
|
||
## Contribution | ||
|
||
See the | ||
[contributing guidelines](https://github.com/code-internet-applications/cbt-hydrogen/blob/main/CONTRIBUTING.md) | ||
for more details. | ||
|
||
## Troubleshooting | ||
|
||
To ensure that you can access the packages from the GitHub package registry, | ||
make sure to add the following line to your `.npmrc` file in the root directory | ||
of your project: | ||
|
||
``` | ||
@code-internet-applications:registry=https://npm.pkg.github.com | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "@code-internet-applications/prettier-config", | ||
"version": "0.0.0", | ||
"sideEffects": false, | ||
"description": "Shared prettier configuration", | ||
"author": "Code Internet Applications <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/code-internet-applications/cbt-hydrogen", | ||
"directory": "packages/config/prettier-config" | ||
}, | ||
"main": ".prettierrc.json", | ||
"files": [ | ||
".prettierrc.json" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.