4ac12ef70a
These are the formatting & linting configuration changes from the `3.8.0` branch and the changes that they make to the overall project. The majority of these changes are from running two commands: `npm run lint:fix` `npm run style:fix` This has already been run on the `3.8.0` branch and this PR should make `master` play nicer when it comes to merges going forward. There are now four VSCode plugins recommended for server development. They've been added to the workspace file and a user should get a UI notification when the workspace is opened if they're not installed. The four plugins are: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig https://marketplace.visualstudio.com/items?itemName=dprint.dprint https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint https://marketplace.visualstudio.com/items?itemName=biomejs.biome Once installed they should just work within the workspace. Also, be sure to `npm i` to get the new dprint application. Co-authored-by: Refringe <brownelltyler@gmail.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/168
91 lines
3.4 KiB
JSON
91 lines
3.4 KiB
JSON
{
|
|
"incremental": false,
|
|
"lineWidth": 120,
|
|
"indentWidth": 4,
|
|
"newLineKind": "lf",
|
|
"useTabs": false,
|
|
"typescript": {
|
|
"semiColons": "always",
|
|
"quoteStyle": "alwaysDouble",
|
|
"quoteProps": "asNeeded",
|
|
"useBraces": "always",
|
|
"bracePosition": "nextLine",
|
|
"singleBodyPosition": "maintain",
|
|
"nextControlFlowPosition": "nextLine",
|
|
"trailingCommas": "onlyMultiLine",
|
|
"operatorPosition": "nextLine",
|
|
"preferHanging": false,
|
|
"preferSingleLine": true,
|
|
"arrowFunction.useParentheses": "force",
|
|
"binaryExpression.linePerExpression": false,
|
|
"memberExpression.linePerExpression": false,
|
|
"typeLiteral.separatorKind": "semiColon",
|
|
"enumDeclaration.memberSpacing": "newLine",
|
|
"spaceAround": false,
|
|
"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,
|
|
"module.sortImportDeclarations": "maintain",
|
|
"module.sortExportDeclarations": "maintain",
|
|
"exportDeclaration.sortNamedExports": "maintain",
|
|
"importDeclaration.sortNamedImports": "maintain",
|
|
"exportDeclaration.spaceSurroundingNamedExports": false,
|
|
"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,
|
|
"method.spaceBeforeParentheses": false,
|
|
"setAccessor.spaceBeforeParentheses": false,
|
|
"taggedTemplate.spaceBeforeLiteral": false,
|
|
"typeAnnotation.spaceBeforeColon": false,
|
|
"typeAssertion.spaceBeforeExpression": false,
|
|
"whileStatement.spaceAfterWhileKeyword": true
|
|
},
|
|
"json": {
|
|
"trailingCommas": "never",
|
|
"preferSingleLine": false
|
|
},
|
|
"markdown": {
|
|
"textWrap": "always",
|
|
"emphasisKind": "underscores",
|
|
"strongKind": "asterisks"
|
|
},
|
|
"dockerfile": {},
|
|
"excludes": [
|
|
"**/*.js",
|
|
"**/*.d.ts",
|
|
"**/*-lock.json",
|
|
"**/.git/**/*",
|
|
"**/node_modules/**/*",
|
|
"**/build/**/*",
|
|
"**/obj/**/*",
|
|
"**/dist/**/*",
|
|
"**/user/**/*",
|
|
"**/logs/**/*",
|
|
"**/assets/**/*",
|
|
"**/Aki_Data/**/*",
|
|
"**/types/**/*",
|
|
"**/tests/__cache__/**/*",
|
|
"**/tests/__coverage__/**/*"
|
|
],
|
|
"plugins": [
|
|
"https://plugins.dprint.dev/typescript-0.88.3.wasm",
|
|
"https://plugins.dprint.dev/json-0.19.0.wasm",
|
|
"https://plugins.dprint.dev/markdown-0.16.2.wasm",
|
|
"https://plugins.dprint.dev/dockerfile-0.3.0.wasm"
|
|
]
|
|
}
|