Skip to content

Commit

Permalink
chore: update prettier & editor configs (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Feb 10, 2024
1 parent e629bf0 commit 732feec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
17 changes: 11 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 180

[*.json]
indent_size = 2
max_line_length = 120

[*.ts]
[*.{tsx,ts,jsx,js}]
quote_type = single
indent_size = 4

[*.{html,spec.ts}]
max_line_length = 250

[packages/type-compiler/src/compiler.ts]
max_line_length = 250

[*.md]
max_line_length = off
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yarn.lock
.angular
packages/core/src/indent.ts
13 changes: 11 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
{
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
"importOrder": ["<THIRD_PARTY_MODULES>", "^@deepkit/(.*)$", "^[./]"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"trailingComma": "all",
"printWidth": 120,
"bracketSpacing": true,
"tabWidth": 2,
"singleQuote": true,
"arrowParens": "avoid",
"endOfLine": "lf",
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"options": {
"tabWidth": 4
}
},
{
"files": ["*.spec.ts", "*.html", "packages/type-compiler/src/compiler.ts"],
"options": {
"printWidth": 250
}
}
]
}

0 comments on commit 732feec

Please sign in to comment.