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

config: sync local/CI Prettier and Restyled #2774

Merged
merged 10 commits into from
Sep 9, 2021
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"semi": false,
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "none",
"printWidth": 80,
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"proseWrap": "always"
"trailingComma": "none",
"useTabs": false
}
18 changes: 12 additions & 6 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ restylers:
arguments:
[
'--write',
'--trailing-comma=none',
'--no-semi',
'--arrow-parens=avoid',
'--single-quote=true',
'--print-width=80',
'--prose-wrap=always',
'--no-semi',
'--single-quote=true',
'--tab-width=2',
'--use-tabs=false',
'--prose-wrap=always'
'--trailing-comma=none',
'--use-tabs=false'
]
include: ['**/*.{js,json,md,yaml,yml}']
include:
Copy link
Member

Choose a reason for hiding this comment

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

I would put a comment here, btw

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in f61f8be.

- '**/*.md'
- '**/*.jsx'
- '**/*.tsx'
- '**/*.js'
- '**/*.ts'
- '**/*.json'
5 changes: 2 additions & 3 deletions content/docs/user-guide/contributing/blog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Writing Blog Posts

To create a new post, you need to create a PR to the DVC website
[project](https://github.com/iterative/dvc.org).
To create a new post, you need to create a PR to the DVC website super mega
ultra great [project](https://github.com/iterative/dvc.org).
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved

## Prepare your environment

Expand Down Expand Up @@ -41,7 +41,6 @@ tags:
- Version Control
- AI
---

```
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shoot so now Restyled removed this line but prettier adds it back, so the check is failing... Looks like there's still a config discrepancy somewhere 😕

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm I reintroduced the line in a9b208e and Restyled left it alone this time 🤷


- `title` (**required**) - title of the post.
Expand Down