Skip to content

Commit e747b63

Browse files
committed
Update formatting settings
1 parent 547f0a7 commit e747b63

3 files changed

Lines changed: 89 additions & 74 deletions

File tree

.prettierrc.cjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// A minimal config for extensions when in languages not supported by biome.
2+
// https://biomejs.dev/internals/language-support/
3+
/** @type {import("prettier").Config} */
4+
module.exports = {
5+
tabWidth: 2,
6+
useTabs: false,
7+
trailingComma: "all",
8+
singleQuote: false,
9+
semi: true,
10+
printWidth: 80,
11+
};

.vscode/settings.json

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
{
2-
"cSpell.words": [
3-
"cfonts",
4-
"cliui",
5-
"divs",
6-
"narg",
7-
"nargs",
8-
"signale",
9-
"unmock"
10-
],
11-
"editor.defaultFormatter": "biomejs.biome",
12-
"[json]": {
2+
"prettier.configPath": ".prettierrc.cjs",
3+
"[javascript]": {
134
"editor.defaultFormatter": "biomejs.biome"
145
},
15-
"[jsonc]": {
6+
"[typescript]": {
167
"editor.defaultFormatter": "biomejs.biome"
178
},
18-
"[typescript]": {
9+
"[javascriptreact]": {
1910
"editor.defaultFormatter": "biomejs.biome"
2011
},
21-
"[javascript]": {
12+
"[typescriptreact]": {
2213
"editor.defaultFormatter": "biomejs.biome"
2314
},
24-
"[yaml]": {
15+
"[json]": {
16+
"editor.defaultFormatter": "biomejs.biome"
17+
},
18+
"[jsonc]": {
2519
"editor.defaultFormatter": "biomejs.biome"
2620
},
2721
"typescript.preferences.autoImportFileExcludePatterns": [
2822
"src/index.*",
2923
"src/exports*"
30-
]
24+
],
25+
"cSpell.words": [
26+
"cfonts",
27+
"cliui",
28+
"divs",
29+
"narg",
30+
"nargs",
31+
"signale",
32+
"unmock"
33+
],
3134
}

biome.json

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,61 @@
11
{
2-
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"vcs": {
4-
"enabled": true,
5-
"clientKind": "git",
6-
"useIgnoreFile": true,
7-
"defaultBranch": "main"
8-
},
9-
"organizeImports": { "enabled": true },
10-
"formatter": {
11-
"enabled": true,
12-
"formatWithErrors": false,
13-
"indentStyle": "space",
14-
"indentWidth": 2,
15-
"lineEnding": "lf",
16-
"lineWidth": 80,
17-
"attributePosition": "auto",
18-
"ignore": ["**/node_modules/**", "**/dist/**"]
19-
},
20-
"linter": {
21-
"enabled": true,
22-
"rules": {
23-
"recommended": true,
24-
"complexity": {
25-
"noBannedTypes": "off"
26-
},
27-
"correctness": {
28-
"noUnusedImports": "error"
29-
},
30-
"style": {
31-
"useNodejsImportProtocol": "warn",
32-
"noNonNullAssertion": {
33-
"fix": "none",
34-
"level": "info"
35-
},
36-
"noParameterAssign": "off"
37-
},
38-
"suspicious": {
39-
"noExplicitAny": "info",
40-
"noDoubleEquals": "warn",
41-
"noAssignInExpressions": "off",
42-
"noEmptyInterface": "off"
43-
}
44-
},
45-
"ignore": ["./**/dist/**", "./**/node_modules/**"]
46-
},
47-
"javascript": {
48-
"formatter": {
49-
"jsxQuoteStyle": "double",
50-
"quoteProperties": "asNeeded",
51-
"trailingCommas": "all",
52-
"semicolons": "always",
53-
"arrowParentheses": "always",
54-
"bracketSpacing": true,
55-
"bracketSameLine": false,
56-
"quoteStyle": "single",
57-
"attributePosition": "auto"
58-
}
59-
}
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true,
7+
"defaultBranch": "main"
8+
},
9+
"assist": {
10+
"enabled": true
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"formatWithErrors": false,
15+
"indentStyle": "space",
16+
"indentWidth": 2,
17+
"lineEnding": "lf",
18+
"lineWidth": 80,
19+
"attributePosition": "auto"
20+
},
21+
"linter": {
22+
"enabled": true,
23+
"rules": {
24+
"recommended": true,
25+
"complexity": {
26+
"noBannedTypes": "off"
27+
},
28+
"correctness": {
29+
"noUnusedImports": "error"
30+
},
31+
"style": {
32+
"useNodejsImportProtocol": "warn",
33+
"noNonNullAssertion": {
34+
"fix": "none",
35+
"level": "info"
36+
},
37+
"noParameterAssign": "off"
38+
},
39+
"suspicious": {
40+
"noExplicitAny": "info",
41+
"noDoubleEquals": "warn",
42+
"noAssignInExpressions": "off",
43+
"noEmptyInterface": "off"
44+
}
45+
}
46+
},
47+
"javascript": {
48+
"formatter": {
49+
"indentStyle": "space",
50+
"jsxQuoteStyle": "double",
51+
"quoteProperties": "asNeeded",
52+
"trailingCommas": "all",
53+
"semicolons": "always",
54+
"arrowParentheses": "always",
55+
"bracketSpacing": true,
56+
"bracketSameLine": false,
57+
"quoteStyle": "single",
58+
"attributePosition": "auto"
59+
}
60+
}
6061
}

0 commit comments

Comments
 (0)