From 69a9f1b2f8c3a6074759cc687f7a684d332e3d6f Mon Sep 17 00:00:00 2001 From: chemzqm Date: Mon, 3 Jun 2019 21:43:48 +0800 Subject: [PATCH] fix(package): fix format configuration, fix #32 --- Readme.md | 4 ++++ package.json | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/Readme.md b/Readme.md index 96a7b4c..b2a0bcd 100644 --- a/Readme.md +++ b/Readme.md @@ -91,6 +91,8 @@ module will be used. - `typescript.format.insertSpaceAfterKeywordsInControlFlowStatements` default: `true` - `typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions` default: `true` - `typescript.format.insertSpaceBeforeFunctionParenthesis` default: `false` +- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets` default: `false` +- `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces` default: `false` - `typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis` default: `false` - `typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces` default: `false` - `typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces` default: `false` @@ -117,6 +119,8 @@ module will be used. - `javascript.format.insertSpaceAfterKeywordsInControlFlowStatements` default: `true` - `javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions` default: `true` - `javascript.format.insertSpaceBeforeFunctionParenthesis` default: `false` +- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets` default: `false` +- `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces` default: `false` - `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis` default: `false` - `javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces` default: `false` - `javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces` default: `false` diff --git a/package.json b/package.json index c7a32b1..cf0c61a 100644 --- a/package.json +++ b/package.json @@ -288,6 +288,14 @@ "type": "boolean", "default": false }, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": { + "type": "boolean", + "default": false + }, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": { + "type": "boolean", + "default": false + }, "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": { "type": "boolean", "default": false @@ -405,6 +413,14 @@ "type": "boolean", "default": false }, + "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": { + "type": "boolean", + "default": false + }, + "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": { + "type": "boolean", + "default": false + }, "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": { "type": "boolean", "default": false