mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
package: add dprint config
This commit is contained in:
parent
8e01f3f7e6
commit
f6bd9b9448
71
.dprint.json
Normal file
71
.dprint.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"$schema": "https://dprint.dev/schemas/v0.json",
|
||||
"projectType": "openSource",
|
||||
"incremental": true,
|
||||
"lineWidth": 180,
|
||||
"indentWidth": 2,
|
||||
"useTabs": false,
|
||||
"typescript": {
|
||||
"useTabs": true,
|
||||
"semiColons": "always",
|
||||
"quoteStyle": "alwaysDouble",
|
||||
"newLineKind": "lf",
|
||||
"useBraces": "always",
|
||||
"bracePosition": "nextLine",
|
||||
"singleBodyPosition": "nextLine",
|
||||
"nextControlFlowPosition": "nextLine",
|
||||
"trailingCommas": "onlyMultiLine",
|
||||
"operatorPosition": "nextLine",
|
||||
"preferHanging": false,
|
||||
"preferSingleLine": false,
|
||||
"arrowFunction.useParentheses": "force",
|
||||
"binaryExpression.linePerExpression": false,
|
||||
"jsx.quoteStyle": "preferDouble",
|
||||
"memberExpression.linePerExpression": false,
|
||||
"typeLiteral.separatorKind": "semiColon",
|
||||
"enumDeclaration.memberSpacing": "maintain",
|
||||
"spaceSurroundingProperties": true,
|
||||
"objectExpression.spaceSurroundingProperties": true,
|
||||
"objectPattern.spaceSurroundingProperties": true,
|
||||
"typeLiteral.spaceSurroundingProperties": true,
|
||||
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
|
||||
"commentLine.forceSpaceAfterSlashes": true,
|
||||
"constructor.spaceBeforeParentheses": false,
|
||||
"constructorType.spaceAfterNewKeyword": false,
|
||||
"constructSignature.spaceAfterNewKeyword": false,
|
||||
"doWhileStatement.spaceAfterWhileKeyword": true,
|
||||
"exportDeclaration.spaceSurroundingNamedExports": true,
|
||||
"forInStatement.spaceAfterForKeyword": true,
|
||||
"forOfStatement.spaceAfterForKeyword": true,
|
||||
"forStatement.spaceAfterForKeyword": true,
|
||||
"forStatement.spaceAfterSemiColons": true,
|
||||
"functionDeclaration.spaceBeforeParentheses": false,
|
||||
"functionExpression.spaceBeforeParentheses": false,
|
||||
"functionExpression.spaceAfterFunctionKeyword": false,
|
||||
"getAccessor.spaceBeforeParentheses": false,
|
||||
"ifStatement.spaceAfterIfKeyword": true,
|
||||
"importDeclaration.spaceSurroundingNamedImports": true,
|
||||
"jsxExpressionContainer.spaceSurroundingExpression": false,
|
||||
"method.spaceBeforeParentheses": false,
|
||||
"setAccessor.spaceBeforeParentheses": false,
|
||||
"taggedTemplate.spaceBeforeLiteral": true,
|
||||
"typeAnnotation.spaceBeforeColon": false,
|
||||
"typeAssertion.spaceBeforeExpression": true,
|
||||
"whileStatement.spaceAfterWhileKeyword": true
|
||||
},
|
||||
"json": {},
|
||||
"markdown": {},
|
||||
"includes": ["**/*.{js,cjs,mjs,json,md}"],
|
||||
"excludes": [
|
||||
"dist",
|
||||
"docs",
|
||||
"node_modules",
|
||||
"*-lock.json",
|
||||
"out"
|
||||
],
|
||||
"plugins": [
|
||||
"https://plugins.dprint.dev/typescript-0.48.0.wasm",
|
||||
"https://plugins.dprint.dev/json-0.12.1.wasm",
|
||||
"https://plugins.dprint.dev/markdown-0.9.2.wasm"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user