From 763efd63572b03987fce0e77a78dd18fc896807b Mon Sep 17 00:00:00 2001 From: nikita-remeslov Date: Mon, 19 Aug 2024 11:05:04 +0200 Subject: [PATCH] production: * codestyle --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .github/ISSUE_TEMPLATE/feature.yml | 38 +++++++++---------- .ls-lint.yml | 2 +- .../framework/config/base-config.package.ts | 4 +- .../config/types/environment-schema.type.ts | 2 +- .../http-api/types/http-api-options.type.ts | 2 +- 6 files changed, 24 insertions(+), 26 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index c4efbf503..d14de0c2e 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -2,7 +2,7 @@ name: Bug Report description: Report a bug title: 'BUG:' labels: ['BUG'] -projects: "BinaryStudioAcademy/30" +projects: 'BinaryStudioAcademy/30' body: - type: markdown attributes: diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index c793c4684..a628b3881 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -1,22 +1,22 @@ name: Feature description: Abstract feature description -title: "FEAT:" -projects: "BinaryStudioAcademy/30" +title: 'FEAT:' +projects: 'BinaryStudioAcademy/30' body: - - type: textarea - id: what-feature - attributes: - label: What feature? - placeholder: Add descriptions - validations: - required: true - - type: textarea - id: screenshots - attributes: - label: Add screenshots - placeholder: Add screenshots, mockups, etc. - - type: textarea - id: acceptance-criteria - attributes: - label: Acceptance criteria - placeholder: Add acceptance criteria. + - type: textarea + id: what-feature + attributes: + label: What feature? + placeholder: Add descriptions + validations: + required: true + - type: textarea + id: screenshots + attributes: + label: Add screenshots + placeholder: Add screenshots, mockups, etc. + - type: textarea + id: acceptance-criteria + attributes: + label: Acceptance criteria + placeholder: Add acceptance criteria. diff --git a/.ls-lint.yml b/.ls-lint.yml index 486067041..292cee3b8 100644 --- a/.ls-lint.yml +++ b/.ls-lint.yml @@ -16,7 +16,7 @@ ls: .ts: snake_case ignore: - - .git + - .github - node_modules - build - shared/build diff --git a/frontend/src/framework/config/base-config.package.ts b/frontend/src/framework/config/base-config.package.ts index 2b2a35e0e..1224b76c5 100644 --- a/frontend/src/framework/config/base-config.package.ts +++ b/frontend/src/framework/config/base-config.package.ts @@ -10,9 +10,7 @@ class BaseConfig implements Config { private get envSchema(): EnvironmentSchema { return { APP: { - ENVIRONMENT: import.meta.env[ - 'VITE_APP_NODE_ENV' - ], + ENVIRONMENT: import.meta.env['VITE_APP_NODE_ENV'], }, API: { ORIGIN_URL: import.meta.env[ diff --git a/frontend/src/framework/config/types/environment-schema.type.ts b/frontend/src/framework/config/types/environment-schema.type.ts index 47109076d..6f8f4df7c 100644 --- a/frontend/src/framework/config/types/environment-schema.type.ts +++ b/frontend/src/framework/config/types/environment-schema.type.ts @@ -1,5 +1,5 @@ import { type AppEnvironment } from '~/bundles/common/enums/enums.js'; -import { type ValueOf } from '~/bundles/common/types/types.js'; +import { type ValueOf } from '~/bundles/common/types/types.js'; type EnvironmentSchema = { APP: { diff --git a/frontend/src/framework/http-api/types/http-api-options.type.ts b/frontend/src/framework/http-api/types/http-api-options.type.ts index 88cda053c..ba7f07184 100644 --- a/frontend/src/framework/http-api/types/http-api-options.type.ts +++ b/frontend/src/framework/http-api/types/http-api-options.type.ts @@ -1,5 +1,5 @@ import { type ContentType } from '~/bundles/common/enums/enums.js'; -import { type ValueOf } from '~/bundles/common/types/types.js'; +import { type ValueOf } from '~/bundles/common/types/types.js'; import { type HttpOptions } from '~/framework/http/http.js'; type HttpApiOptions = Omit & {