fix(lint): prettier

This commit is contained in:
iCrawl 2020-03-21 21:49:43 +01:00
parent 7794a24eda
commit f5450ce23d
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE
4 changed files with 14 additions and 7 deletions

View file

@ -27,7 +27,9 @@
"activationEvents": [ "activationEvents": [
"*" "*"
], ],
"extensionKind": ["ui"], "extensionKind": [
"ui"
],
"contributes": { "contributes": {
"commands": [ "commands": [
{ {
@ -215,6 +217,8 @@
"extends": "marine/prettier/node" "extends": "marine/prettier/node"
}, },
"renovate": { "renovate": {
"extends": ["teal"] "extends": [
"teal"
]
} }
} }

View file

@ -115,6 +115,7 @@ packages:
functional-red-black-tree: 1.0.1 functional-red-black-tree: 1.0.1
regexpp: 3.0.0 regexpp: 3.0.0
tsutils: 3.17.1_typescript@3.7.5 tsutils: 3.17.1_typescript@3.7.5
typescript: 3.7.5
dev: true dev: true
engines: engines:
node: ^8.10.0 || ^10.13.0 || >=11.10.1 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 '@typescript-eslint/typescript-estree': 2.17.0_typescript@3.7.5
eslint: 6.8.0 eslint: 6.8.0
eslint-visitor-keys: 1.1.0 eslint-visitor-keys: 1.1.0
typescript: 3.7.5
dev: true dev: true
engines: engines:
node: ^8.10.0 || ^10.13.0 || >=11.10.1 node: ^8.10.0 || ^10.13.0 || >=11.10.1
@ -168,6 +170,7 @@ packages:
lodash: 4.17.15 lodash: 4.17.15
semver: 6.3.0 semver: 6.3.0
tsutils: 3.17.1_typescript@3.7.5 tsutils: 3.17.1_typescript@3.7.5
typescript: 3.7.5
dev: true dev: true
engines: engines:
node: ^8.10.0 || ^10.13.0 || >=11.10.1 node: ^8.10.0 || ^10.13.0 || >=11.10.1

View file

@ -23,7 +23,7 @@ export async function activate(context: ExtensionContext) {
const regex = new RegExp(pattern); const regex = new RegExp(pattern);
const folders = workspace.workspaceFolders; const folders = workspace.workspaceFolders;
if (!folders) break; if (!folders) break;
if (folders.some(folder => regex.test(folder.uri.fsPath))) { if (folders.some((folder) => regex.test(folder.uri.fsPath))) {
isWorkspaceExcluded = true; isWorkspaceExcluded = true;
break; break;
} }
@ -122,4 +122,4 @@ export async function deactivate() {
await rpc.dispose(); await rpc.dispose();
} }
process.on('unhandledRejection', err => Logger.log(err as string)); process.on('unhandledRejection', (err) => Logger.log(err as string));

View file

@ -78,7 +78,7 @@ export default class Activity implements Disposable {
const filename = basename(window.activeTextEditor.document.fileName); const filename = basename(window.activeTextEditor.document.fileName);
largeImageKey = largeImageKey =
knownExtentions[ knownExtentions[
Object.keys(knownExtentions).find(key => { Object.keys(knownExtentions).find((key) => {
if (filename.endsWith(key)) return true; if (filename.endsWith(key)) return true;
const match = /^\/(.*)\/([mgiy]+)$/.exec(key); const match = /^\/(.*)\/([mgiy]+)$/.exec(key);
if (!match) return false; if (!match) return false;
@ -353,7 +353,7 @@ export default class Activity implements Disposable {
if (str.includes('{gitbranch}')) { if (str.includes('{gitbranch}')) {
if (this.client.git?.repositories.length) { 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 { } else {
fileDetail.gitbranch = 'Unknown'; fileDetail.gitbranch = 'Unknown';
} }
@ -362,7 +362,7 @@ export default class Activity implements Disposable {
if (str.includes('{gitreponame}')) { if (str.includes('{gitreponame}')) {
if (this.client.git?.repositories.length) { if (this.client.git?.repositories.length) {
fileDetail.gitreponame = this.client.git.repositories fileDetail.gitreponame = this.client.git.repositories
.find(repo => repo.ui.selected)! .find((repo) => repo.ui.selected)!
.state.remotes[0].fetchUrl!.split('/')[1] .state.remotes[0].fetchUrl!.split('/')[1]
.replace('.git', ''); .replace('.git', '');
} else { } else {