diff --git a/.prettierrc b/.prettierrc index 365b1903fa..16044716be 100644 --- a/.prettierrc +++ b/.prettierrc @@ -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 } diff --git a/.restyled.yaml b/.restyled.yaml index 172df6480d..48e76fbede 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -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'