Skip to content

Commit dcd4952

Browse files
Merge pull request #651 from kristof-mattei/update-from-upstream
update from upstream
2 parents 32def74 + 477ca5a commit dcd4952

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"lldb.launch.preRunCommands": [
66
"command script import ${workspaceFolder}/.vscode/rust_prettifier_for_lldb.py"
77
],
8-
"prettier.configPath": "./.prettierrc.cjs",
8+
"prettier.configPath": "./prettier.config.mjs",
99
"rust-analyzer.runnables.extraEnv": {
1010
"RUST_LOG": "DEBUG,hyper_unix_socket=TRACE"
1111
}
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,26 @@
1-
/**
2-
* @type { import("prettier").Config }
3-
*/
4-
const prettierConfig = {
1+
/** @type {import("prettier").Config} */
2+
export default {
53
arrowParens: "always",
64
bracketSpacing: true,
7-
printWidth: 80,
5+
printWidth: 120,
86
quoteProps: "as-needed",
97
semi: true,
108
singleQuote: false,
11-
useTabs: false,
129
tabWidth: 4,
1310
trailingComma: "all",
11+
useTabs: false,
1412
overrides: [
1513
{
16-
files: ["*.ts", "*.tsx"],
14+
files: ["**/*.ts", "**/*.tsx"],
1715
options: {
1816
parser: "typescript",
1917
},
2018
},
21-
{
22-
files: ["*.cjs"],
23-
},
24-
{
25-
files: ["**/*.json"],
26-
options: {
27-
trailingComma: "none",
28-
},
29-
},
3019
{
3120
files: ["**/*.json"],
3221
options: {
3322
trailingComma: "none",
23+
printWidth: 80,
3424
},
3525
},
3626
{
@@ -48,5 +38,3 @@ const prettierConfig = {
4838
],
4939
plugins: ["prettier-plugin-sh"],
5040
};
51-
52-
module.exports = prettierConfig;

0 commit comments

Comments
 (0)