From e81c37e60a216a3c93a71bb2994d387cf9655375 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 14 Mar 2022 15:24:16 +0100 Subject: [PATCH] fix(core): update --- .gitlab-ci.yml | 4 ++-- package.json | 2 +- ts/smartpath.get.ts | 6 +++--- tslint.json | 17 +++++++++++++++++ 4 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 tslint.json diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a70f7eb..8c05d2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,9 +123,9 @@ trigger: pages: stage: metadata script: - - npmci node install lts - - npmci command npm install -g @gitzone/tsdoc + - npmci node install stable - npmci npm prepare + - npmci command npm install -g @gitzone/tsdoc - npmci npm install - npmci command tsdoc tags: diff --git a/package.json b/package.json index 2c0d743..32b4f2d 100644 --- a/package.json +++ b/package.json @@ -47,4 +47,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/ts/smartpath.get.ts b/ts/smartpath.get.ts index 4a0831e..82c59cb 100644 --- a/ts/smartpath.get.ts +++ b/ts/smartpath.get.ts @@ -1,4 +1,4 @@ -import * as plugins from './smartpath.plugins.js' +import * as plugins from './smartpath.plugins.js'; export type TPathType = 'url' | 'local'; /** @@ -18,12 +18,12 @@ export const type = (pathStringArg: string): TPathType => { */ export const dirnameFromImportMetaUrl = (importMetaUrlArg: string) => { return plugins.path.dirname(plugins.url.fileURLToPath(importMetaUrlArg)); -} +}; /** * returns homedir as absolute path * @param pathArgument if a pathargument is given, ~ is being replaced with the homedir - * @returns + * @returns */ export const home = (pathArgument?: string) => { if (pathArgument) { diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..d4ea2e9 --- /dev/null +++ b/tslint.json @@ -0,0 +1,17 @@ +{ + "extends": ["tslint:latest", "tslint-config-prettier"], + "rules": { + "semicolon": [true, "always"], + "no-console": false, + "ordered-imports": false, + "object-literal-sort-keys": false, + "member-ordering": { + "options":{ + "order": [ + "static-method" + ] + } + } + }, + "defaultSeverity": "warning" +}