Skip to content

Commit

Permalink
Update Prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Kaput <[email protected]>
  • Loading branch information
mkaput committed Nov 28, 2024
1 parent 5df3972 commit 2b2ac96
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 21 deletions.
28 changes: 14 additions & 14 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"comments": {
"lineComment": "//",
"lineComment": "//"
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"],
["(", ")"]
],
"colorizedBracketPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] }
],
"autoCloseBefore": ";:.,=}])> \n\t",
"surroundingPairs": [
Expand All @@ -28,39 +28,39 @@
["<", ">"],
["\"", "\""],
["'", "'"],
["`", "`"],
["`", "`"]
],
"indentationRules": {
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]",
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
},
"folding": {
"markers": {
"start": "^\\s*// region:\\b",
"end": "^\\s*// endregion\\b",
},
"end": "^\\s*// endregion\\b"
}
},
"onEnterRules": [
{
// Carry indentation from the previous line if it's only whitespace.
"beforeText": "^\\s+$",
"action": { "indent": "none" },
"action": { "indent": "none" }
},
{
// After the end of a function/field chain, with the semicolon on the same line.
"beforeText": "^\\s+\\..*;",
"action": { "indent": "outdent" },
"action": { "indent": "outdent" }
},
{
// After the end of a function/field chain, with semicolon detached from the rest.
"beforeText": "^\\s+;",
"previousLineText": "^\\s+\\..*",
"action": { "indent": "outdent" },
"action": { "indent": "outdent" }
},
{
// Doc single-line comment e.g. ///|
"beforeText": "^\\s*\\/{3}.*$",
"action": { "indent": "none", "appendText": "/// " },
},
],
"action": { "indent": "none", "appendText": "/// " }
}
]
}
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"esbuild": "^0.21.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "3.2.4",
"prettier": "3.4.1",
"typescript": "^5.6.3",
"vscode-oniguruma": "^2.0.1",
"vscode-textmate": "^9.0.0"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"compilerOptions": {
"outDir": "out",
"sourceMap": true,
"rootDir": "src",
"rootDir": "src"
},
"exclude": ["node_modules", ".vscode-test"],
"include": ["src", "tests"],
"include": ["src", "tests"]
}

0 comments on commit 2b2ac96

Please sign in to comment.