Skip to content

Commit

Permalink
config: sync local/CI Prettier and Restyled (#2774)
Browse files Browse the repository at this point in the history
* test: change content/docs/user-guide/contributing/blog.md
for #2641

* test: bad change to .../contributing/blog.md

* test: try reverting 2dd2e91#diff-eb41540235b5687201bb19ed968c284453eea68563f5908a6e15ed8cbfa959de

* format .restyled.yaml

* config: sort prettier settings by abc

* test: expanded Restyled config file
per #2774 (comment)

* Restyled by prettier (#2775)

Co-authored-by: Restyled.io <[email protected]>

* guide: roll back dummy changes (fixes formatting)

* resyled: add comment on matching path pattern
per #2774 (review)

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored and rogermparent committed Sep 30, 2021
1 parent 3c68213 commit 400e544
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
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: # matching '**/*.{js,jsx,md,tsx,ts,json}'
- '**/*.md'
- '**/*.jsx'
- '**/*.tsx'
- '**/*.js'
- '**/*.ts'
- '**/*.json'

0 comments on commit 400e544

Please sign in to comment.