Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aca6da9

Browse files
jakebaileysnovader
authored andcommittedSep 23, 2023
dprint the codebase (microsoft#54820)
1 parent 5d341ed commit aca6da9

File tree

560 files changed

+28484
-23294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+28484
-23294
lines changed
 

‎.dprint.jsonc

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"indentWidth": 4,
3+
"lineWidth": 1000,
4+
"newLineKind": "auto",
5+
"useTabs": false,
6+
"typescript": {
7+
"semiColons": "always",
8+
"quoteStyle": "preferDouble",
9+
"quoteProps": "consistent",
10+
"useBraces": "whenNotSingleLine",
11+
"bracePosition": "sameLineUnlessHanging",
12+
"singleBodyPosition": "sameLine",
13+
"nextControlFlowPosition": "nextLine", // Stroustrup style braces.
14+
"trailingCommas": "onlyMultiLine",
15+
"preferHanging": false,
16+
"operatorPosition": "maintain",
17+
18+
"arrowFunction.useParentheses": "preferNone",
19+
"conditionalExpression.linePerExpression": false, // Keep our "match/case"-ish conditionals.
20+
"functionExpression.spaceAfterFunctionKeyword": true,
21+
"importDeclaration.forceMultiLine": true,
22+
"constructorType.spaceAfterNewKeyword": true,
23+
"constructSignature.spaceAfterNewKeyword": true,
24+
25+
// Let eslint-plugin-simple-import-sort handle this.
26+
"module.sortImportDeclarations": "maintain",
27+
"module.sortExportDeclarations": "maintain",
28+
"exportDeclaration.sortNamedExports": "maintain",
29+
"importDeclaration.sortNamedImports": "maintain"
30+
},
31+
"prettier": {
32+
"associations": [
33+
"**/*.{yaml,yml}"
34+
],
35+
"yml.tabWidth": 2,
36+
"yaml.tabWidth": 2,
37+
"yml.singleQuote": true,
38+
"yaml.singleQuote": true
39+
},
40+
"excludes": [
41+
"**/node_modules",
42+
"**/*-lock.json",
43+
"coverage/**",
44+
"lib/**",
45+
"built/**",
46+
"tests/**",
47+
"internal/**",
48+
"**/*.generated.*",
49+
"scripts/*.d.*"
50+
],
51+
"plugins": [
52+
"https://plugins.dprint.dev/typescript-0.86.1.wasm",
53+
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
54+
]
55+
}

‎.eslintplugin.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const path = require("path");
33

44
const rulesDir = path.join(__dirname, "scripts", "eslint", "rules");
55
const ext = ".cjs";
6-
const ruleFiles = fs.readdirSync(rulesDir).filter((p) => p.endsWith(ext));
6+
const ruleFiles = fs.readdirSync(rulesDir).filter(p => p.endsWith(ext));
77

88
module.exports = {
9-
rules: Object.fromEntries(ruleFiles.map((p) => {
9+
rules: Object.fromEntries(ruleFiles.map(p => {
1010
return [p.slice(0, -ext.length), require(path.join(rulesDir, p))];
1111
})),
12-
}
12+
};

0 commit comments

Comments
 (0)
Please sign in to comment.