fix(lint): prettier
This commit is contained in:
parent
7794a24eda
commit
f5450ce23d
4 changed files with 14 additions and 7 deletions
|
@ -27,7 +27,9 @@
|
|||
"activationEvents": [
|
||||
"*"
|
||||
],
|
||||
"extensionKind": ["ui"],
|
||||
"extensionKind": [
|
||||
"ui"
|
||||
],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
|
@ -215,6 +217,8 @@
|
|||
"extends": "marine/prettier/node"
|
||||
},
|
||||
"renovate": {
|
||||
"extends": ["teal"]
|
||||
"extends": [
|
||||
"teal"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,6 +115,7 @@ packages:
|
|||
functional-red-black-tree: 1.0.1
|
||||
regexpp: 3.0.0
|
||||
tsutils: 3.17.1_typescript@3.7.5
|
||||
typescript: 3.7.5
|
||||
dev: true
|
||||
engines:
|
||||
node: ^8.10.0 || ^10.13.0 || >=11.10.1
|
||||
|
@ -148,6 +149,7 @@ packages:
|
|||
'@typescript-eslint/typescript-estree': 2.17.0_typescript@3.7.5
|
||||
eslint: 6.8.0
|
||||
eslint-visitor-keys: 1.1.0
|
||||
typescript: 3.7.5
|
||||
dev: true
|
||||
engines:
|
||||
node: ^8.10.0 || ^10.13.0 || >=11.10.1
|
||||
|
@ -168,6 +170,7 @@ packages:
|
|||
lodash: 4.17.15
|
||||
semver: 6.3.0
|
||||
tsutils: 3.17.1_typescript@3.7.5
|
||||
typescript: 3.7.5
|
||||
dev: true
|
||||
engines:
|
||||
node: ^8.10.0 || ^10.13.0 || >=11.10.1
|
||||
|
|
|
@ -23,7 +23,7 @@ export async function activate(context: ExtensionContext) {
|
|||
const regex = new RegExp(pattern);
|
||||
const folders = workspace.workspaceFolders;
|
||||
if (!folders) break;
|
||||
if (folders.some(folder => regex.test(folder.uri.fsPath))) {
|
||||
if (folders.some((folder) => regex.test(folder.uri.fsPath))) {
|
||||
isWorkspaceExcluded = true;
|
||||
break;
|
||||
}
|
||||
|
@ -122,4 +122,4 @@ export async function deactivate() {
|
|||
await rpc.dispose();
|
||||
}
|
||||
|
||||
process.on('unhandledRejection', err => Logger.log(err as string));
|
||||
process.on('unhandledRejection', (err) => Logger.log(err as string));
|
||||
|
|
|
@ -78,7 +78,7 @@ export default class Activity implements Disposable {
|
|||
const filename = basename(window.activeTextEditor.document.fileName);
|
||||
largeImageKey =
|
||||
knownExtentions[
|
||||
Object.keys(knownExtentions).find(key => {
|
||||
Object.keys(knownExtentions).find((key) => {
|
||||
if (filename.endsWith(key)) return true;
|
||||
const match = /^\/(.*)\/([mgiy]+)$/.exec(key);
|
||||
if (!match) return false;
|
||||
|
@ -353,7 +353,7 @@ export default class Activity implements Disposable {
|
|||
|
||||
if (str.includes('{gitbranch}')) {
|
||||
if (this.client.git?.repositories.length) {
|
||||
fileDetail.gitbranch = this.client.git.repositories.find(repo => repo.ui.selected)!.state.HEAD!.name;
|
||||
fileDetail.gitbranch = this.client.git.repositories.find((repo) => repo.ui.selected)!.state.HEAD!.name;
|
||||
} else {
|
||||
fileDetail.gitbranch = 'Unknown';
|
||||
}
|
||||
|
@ -362,7 +362,7 @@ export default class Activity implements Disposable {
|
|||
if (str.includes('{gitreponame}')) {
|
||||
if (this.client.git?.repositories.length) {
|
||||
fileDetail.gitreponame = this.client.git.repositories
|
||||
.find(repo => repo.ui.selected)!
|
||||
.find((repo) => repo.ui.selected)!
|
||||
.state.remotes[0].fetchUrl!.split('/')[1]
|
||||
.replace('.git', '');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue