1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-10 00:31:51 +00:00

Update formatting configurations

EditorConfig applies to all files, LF is enforced instead of CRLF,
Prettier configuration moved to JSON, properties are inherited from
EditorConfig.
This commit is contained in:
Даниїл Григор'єв 2024-06-20 12:43:30 +03:00
parent e0fd899cb8
commit 1d26ba67ea
No known key found for this signature in database
GPG Key ID: B890DF16341D8C1D
3 changed files with 11 additions and 13 deletions

View File

@ -1,7 +1,7 @@
root = true
[{src, translations}/*]
end_of_line = crlf
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

9
.prettierrc Normal file
View File

@ -0,0 +1,9 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 110,
"quoteProps": "consistent",
"semi": true,
"singleQuote": false,
"trailingComma": "es5"
}

View File

@ -1,11 +0,0 @@
# .prettierrc or .prettierrc.yaml
trailingComma: "es5"
tabWidth: 4
semi: true
singleQuote: false
printWidth: 110
useTabs: false
quoteProps: "consistent"
bracketSpacing: true
arrowParens: avoid
endOfLine: auto