add a blank line after import block

This commit is contained in:
2021-02-18 10:12:02 +08:00
parent 533ac0aa60
commit 0cb75f0658
4 changed files with 12 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
## v0.1.0
Changes:
* add a blank line after import block
+3
View File
@@ -77,3 +77,6 @@ package VSIX file:
## Debug ## Debug
After install dependencies, just press `F5` to start debugging. If some error occurs, it will be printed onto the output panel. After install dependencies, just press `F5` to start debugging. If some error occurs, it will be printed onto the output panel.
## Change Log
See [CHANGELOG.md](./CHANGELOG.md)
+2 -1
View File
@@ -3,7 +3,7 @@
"publisher": "mattuy", "publisher": "mattuy",
"displayName": "vsc-sort-import", "displayName": "vsc-sort-import",
"description": "A personal opinionated EcmaScript import sorting extension for VSCode.", "description": "A personal opinionated EcmaScript import sorting extension for VSCode.",
"version": "0.0.1", "version": "0.1.0",
"keywords": [ "keywords": [
"vscode", "vscode",
"javascript", "javascript",
@@ -39,6 +39,7 @@
"vscode:prepublish": "npm run compile", "vscode:prepublish": "npm run compile",
"compile": "tsc -p ./", "compile": "tsc -p ./",
"watch": "tsc -watch -p ./", "watch": "tsc -watch -p ./",
"package": "vsce package",
"pretest": "npm run compile", "pretest": "npm run compile",
"test": "node ./out/test/runTest.js" "test": "node ./out/test/runTest.js"
}, },
+4
View File
@@ -101,5 +101,9 @@ export default function (styleApi: IStyleAPI): IStyleItem[] {
sort: [dotSegmentCount, memberOrModule(natural)], sort: [dotSegmentCount, memberOrModule(natural)],
sortNamedMembers: name(natural), sortNamedMembers: name(natural),
}, },
// add a blank line after import block
{
separator: true,
},
]; ];
} }