diff --git a/apps/chrome-devtools/eslint.local.config.mjs b/apps/chrome-devtools/eslint.local.config.mjs index 8f18dda527..5f0124a4e7 100644 --- a/apps/chrome-devtools/eslint.local.config.mjs +++ b/apps/chrome-devtools/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/apps/chrome-devtools/scripts/publish-to-market.mjs b/apps/chrome-devtools/scripts/publish-to-market.mjs index 1ba69e799f..48d9ace9af 100644 --- a/apps/chrome-devtools/scripts/publish-to-market.mjs +++ b/apps/chrome-devtools/scripts/publish-to-market.mjs @@ -1,8 +1,8 @@ import { - createWriteStream + createWriteStream, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import * as url from 'node:url'; import archiver from 'archiver'; diff --git a/apps/chrome-devtools/src/app-components.main.ts b/apps/chrome-devtools/src/app-components.main.ts index 41ede358cf..f908634f84 100644 --- a/apps/chrome-devtools/src/app-components.main.ts +++ b/apps/chrome-devtools/src/app-components.main.ts @@ -1,8 +1,8 @@ import { - bootstrapApplication + bootstrapApplication, } from '@angular/platform-browser'; import { - AppComponent + AppComponent, } from './app-components/app.component'; // eslint-disable-next-line no-console -- Generated by Angular diff --git a/apps/chrome-devtools/src/app-components/app.component.ts b/apps/chrome-devtools/src/app-components/app.component.ts index 8e04effe8e..26ac6a3116 100644 --- a/apps/chrome-devtools/src/app-components/app.component.ts +++ b/apps/chrome-devtools/src/app-components/app.component.ts @@ -1,10 +1,10 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, - Component + Component, } from '@angular/core'; import { getAnalyticEvents as devkitGetAnalyticEvents, @@ -12,41 +12,41 @@ import { getAnalyticEventsRec, getTranslationsRec, Ng, - OtterLikeComponentInfo + OtterLikeComponentInfo, } from '@o3r/components'; import type { - ConfigurationModel + ConfigurationModel, } from '@o3r/configuration'; import { - otterComponentInfoPropertyName + otterComponentInfoPropertyName, } from '@o3r/core'; import type { - OtterComponentInfo + OtterComponentInfo, } from '@o3r/core'; import type { - RulesetExecutionDebug + RulesetExecutionDebug, } from '@o3r/rules-engine'; import { BehaviorSubject, combineLatest, - Observable + Observable, } from 'rxjs'; import { filter, map, - startWith + startWith, } from 'rxjs/operators'; import { - AppConnectionComponent + AppConnectionComponent, } from '../components/app-connection/app-connection.component'; import { - OtterComponentComponent + OtterComponentComponent, } from '../components/otter-component/otter-component.component'; import { - ChromeExtensionConnectionService + ChromeExtensionConnectionService, } from '../services/connection.service'; import { - RulesetHistoryService + RulesetHistoryService, } from '../services/ruleset-history.service'; declare namespace window { diff --git a/apps/chrome-devtools/src/app-devtools.main.ts b/apps/chrome-devtools/src/app-devtools.main.ts index 23541dfaec..4fe5cbca28 100644 --- a/apps/chrome-devtools/src/app-devtools.main.ts +++ b/apps/chrome-devtools/src/app-devtools.main.ts @@ -1,8 +1,8 @@ import { - bootstrapApplication + bootstrapApplication, } from '@angular/platform-browser'; import { - AppComponent + AppComponent, } from './app-devtools/app.component'; // eslint-disable-next-line no-console -- Generated by Angular diff --git a/apps/chrome-devtools/src/app-devtools/app.component.ts b/apps/chrome-devtools/src/app-devtools/app.component.ts index e98a2fe387..b52f62efb7 100644 --- a/apps/chrome-devtools/src/app-devtools/app.component.ts +++ b/apps/chrome-devtools/src/app-devtools/app.component.ts @@ -1,70 +1,70 @@ import { AsyncPipe, - JsonPipe + JsonPipe, } from '@angular/common'; import { ChangeDetectionStrategy, Component, computed, effect, - inject + inject, } from '@angular/core'; import { takeUntilDestroyed, - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { FormBuilder, FormControl, FormsModule, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { DfSelectModule, - DfTooltipModule + DfTooltipModule, } from '@design-factory/design-factory'; import { - NgbNavModule + NgbNavModule, } from '@ng-bootstrap/ng-bootstrap'; import { - RulesetHistoryPresModule + RulesetHistoryPresModule, } from '@o3r/rules-engine'; import { - AppConnectionComponent + AppConnectionComponent, } from '../components/app-connection/app-connection.component'; import type { - State + State, } from '../extension/interface'; import { - StateService + StateService, } from '../services'; import { ChromeExtensionConnectionService, - isApplicationInformationMessage + isApplicationInformationMessage, } from '../services/connection.service'; import { - RulesetHistoryService + RulesetHistoryService, } from '../services/ruleset-history.service'; import { - ComponentPanelPresComponent + ComponentPanelPresComponent, } from './component-panel/component-panel-pres.component'; import { - ConfigPanelPresComponent + ConfigPanelPresComponent, } from './config-panel/config-panel-pres.component'; import { - DebugPanelPresComponent + DebugPanelPresComponent, } from './debug-panel/debug-panel-pres.component'; import { - DebugPanelService + DebugPanelService, } from './debug-panel/debug-panel.service'; import { - LocalizationPanelPresComponent + LocalizationPanelPresComponent, } from './localization-panel/localization-panel-pres.component'; import { - StatePanelComponent + StatePanelComponent, } from './state-panel/state-panel.component'; import { - ThemingPanelPresComponent + ThemingPanelPresComponent, } from './theming-panel/theming-panel-pres.component'; @Component({ diff --git a/apps/chrome-devtools/src/app-devtools/component-panel/component-panel-pres.component.ts b/apps/chrome-devtools/src/app-devtools/component-panel/component-panel-pres.component.ts index e598c95238..a51bbe63a0 100644 --- a/apps/chrome-devtools/src/app-devtools/component-panel/component-panel-pres.component.ts +++ b/apps/chrome-devtools/src/app-devtools/component-panel/component-panel-pres.component.ts @@ -1,44 +1,44 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import type { IsComponentSelectionAvailableMessage, - OtterLikeComponentInfo + OtterLikeComponentInfo, } from '@o3r/components'; import { - ConfigurationModel + ConfigurationModel, } from '@o3r/configuration'; import type { - RulesetExecutionDebug + RulesetExecutionDebug, } from '@o3r/rules-engine'; import { BehaviorSubject, combineLatest, Observable, - Subscription + Subscription, } from 'rxjs'; import { filter, map, shareReplay, - startWith + startWith, } from 'rxjs/operators'; import { - OtterComponentComponent + OtterComponentComponent, } from '../../components/otter-component/otter-component.component'; import { ChromeExtensionConnectionService, - isSelectedComponentInfoMessage + isSelectedComponentInfoMessage, } from '../../services/connection.service'; import { - RulesetHistoryService + RulesetHistoryService, } from '../../services/ruleset-history.service'; @Component({ diff --git a/apps/chrome-devtools/src/app-devtools/config-panel/config-panel-pres.component.ts b/apps/chrome-devtools/src/app-devtools/config-panel/config-panel-pres.component.ts index f396f5c5e2..806d703ba2 100644 --- a/apps/chrome-devtools/src/app-devtools/config-panel/config-panel-pres.component.ts +++ b/apps/chrome-devtools/src/app-devtools/config-panel/config-panel-pres.component.ts @@ -1,38 +1,38 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ChangeDetectionStrategy, Component, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormControl, FormGroup, FormsModule, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - NgbAccordionModule + NgbAccordionModule, } from '@ng-bootstrap/ng-bootstrap'; import { - ConfigurationModel + ConfigurationModel, } from '@o3r/configuration'; import { combineLatest, - Observable + Observable, } from 'rxjs'; import { map, - startWith + startWith, } from 'rxjs/operators'; import { - ConfigFormComponent + ConfigFormComponent, } from '../../components/config-form/config-form.component'; import { ChromeExtensionConnectionService, filterAndMapMessage, - isConfigurationsMessage + isConfigurationsMessage, } from '../../services/connection.service'; @Component({ diff --git a/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel-pres.component.ts b/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel-pres.component.ts index 8776ad130d..bd8419a5ec 100644 --- a/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel-pres.component.ts +++ b/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel-pres.component.ts @@ -1,27 +1,27 @@ import { AsyncPipe, - TitleCasePipe + TitleCasePipe, } from '@angular/common'; import { ChangeDetectionStrategy, Component, type OnDestroy, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormControl, FormGroup, FormsModule, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - Subscription + Subscription, } from 'rxjs'; import { - ChromeExtensionConnectionService + ChromeExtensionConnectionService, } from '../../services/connection.service'; import { - DebugPanelService + DebugPanelService, } from './debug-panel.service'; type PlaceholderMode = 'normal' | 'debug' | 'pending'; diff --git a/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel.service.ts b/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel.service.ts index 4d06acd506..b31b40f827 100644 --- a/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel.service.ts +++ b/apps/chrome-devtools/src/app-devtools/debug-panel/debug-panel.service.ts @@ -1,11 +1,11 @@ import { - Injectable + Injectable, } from '@angular/core'; import type { - ApplicationInformationContentMessage + ApplicationInformationContentMessage, } from '@o3r/application'; import { - ReplaySubject + ReplaySubject, } from 'rxjs'; export interface ExtendedApplicationInformation { diff --git a/apps/chrome-devtools/src/app-devtools/localization-panel/localization-panel-pres.component.ts b/apps/chrome-devtools/src/app-devtools/localization-panel/localization-panel-pres.component.ts index cc97108854..033717b1d8 100644 --- a/apps/chrome-devtools/src/app-devtools/localization-panel/localization-panel-pres.component.ts +++ b/apps/chrome-devtools/src/app-devtools/localization-panel/localization-panel-pres.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -11,39 +11,39 @@ import { type Signal, untracked, viewChild, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { FormControl, FormGroup, FormsModule, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - DfTooltipModule + DfTooltipModule, } from '@design-factory/design-factory'; import { NgbAccordionDirective, - NgbAccordionModule + NgbAccordionModule, } from '@ng-bootstrap/ng-bootstrap'; import type { JSONLocalization, - LocalizationMetadata + LocalizationMetadata, } from '@o3r/localization'; import { - Subscription + Subscription, } from 'rxjs'; import { map, - throttleTime + throttleTime, } from 'rxjs/operators'; import { ChromeExtensionConnectionService, LocalizationService, - StateService + StateService, } from '../../services'; const THROTTLE_TIME = 100; diff --git a/apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts b/apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts index d5afb232ba..4070ed17c8 100644 --- a/apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts +++ b/apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts @@ -2,7 +2,7 @@ import { DOCUMENT, JsonPipe, KeyValuePipe, - NgClass + NgClass, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -15,10 +15,10 @@ import { untracked, viewChild, ViewEncapsulation, - WritableSignal + WritableSignal, } from '@angular/core'; import { - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { type AbstractControl, @@ -29,24 +29,24 @@ import { ReactiveFormsModule, type ValidationErrors, type ValidatorFn, - Validators + Validators, } from '@angular/forms'; import { DfTooltipModule, - DfTriggerClickDirective + DfTriggerClickDirective, } from '@design-factory/design-factory'; import { combineLatest, - map + map, } from 'rxjs'; import type { - State + State, } from '../../extension/interface'; import { - StateService + StateService, } from '../../services'; import { - getBestColorContrast + getBestColorContrast, } from '../theming-panel/color.helpers'; type StateForm = { diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/color.helpers.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/color.helpers.ts index 84399f5412..b4302f2bf6 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/color.helpers.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/color.helpers.ts @@ -5,20 +5,20 @@ import TinyColor from 'tinycolor2'; * Material palette variants */ export enum PaletteVariant { - 'V50' = '50', - 'V100' = '100', - 'V200' = '200', - 'V300' = '300', - 'V400' = '400', - 'V500' = '500', - 'V600' = '600', - 'V700' = '700', - 'V800' = '800', - 'V900' = '900', - 'A100' = 'A100', - 'A200' = 'A200', - 'A400' = 'A400', - 'A700' = 'A700' + V50 = '50', + V100 = '100', + V200 = '200', + V300 = '300', + V400 = '400', + V500 = '500', + V600 = '600', + V700 = '700', + V800 = '800', + V900 = '900', + A100 = 'A100', + A200 = 'A200', + A400 = 'A400', + A700 = 'A700' } /** @@ -27,37 +27,37 @@ export enum PaletteVariant { export const DEFAULT_PALETTE_VARIANT: PaletteVariant = PaletteVariant.V500; const SATURATION_VALUES: Record = { - '50': 0.91, - '100': 0.98, - '200': 0.96, - '300': 0.95, - '400': 0.96, - '500': 1, - '600': 1, - '700': 0.99, - '800': 0.89, - '900': 0.86, - 'A100': 1, - 'A200': 1, - 'A400': 1, - 'A700': 1 + 50: 0.91, + 100: 0.98, + 200: 0.96, + 300: 0.95, + 400: 0.96, + 500: 1, + 600: 1, + 700: 0.99, + 800: 0.89, + 900: 0.86, + A100: 1, + A200: 1, + A400: 1, + A700: 1 }; const LIGHTNESS_VALUES: Record = { - '50': 0.12, - '100': 0.3, - '200': 0.5, - '300': 0.7, - '400': 0.86, - '500': 1, - '600': 0.87, - '700': 0.66, - '800': 0.45, - '900': 0.16, - 'A100': 0.76, - 'A200': 0.64, - 'A400': 0.49, - 'A700': 0.44 + 50: 0.12, + 100: 0.3, + 200: 0.5, + 300: 0.7, + 400: 0.86, + 500: 1, + 600: 0.87, + 700: 0.66, + 800: 0.45, + 900: 0.16, + A100: 0.76, + A200: 0.64, + A400: 0.49, + A700: 0.44 }; /** diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/color.pipe.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/color.pipe.ts index acd2a16c75..2cdd441849 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/color.pipe.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/color.pipe.ts @@ -1,11 +1,11 @@ import { Pipe, - type PipeTransform + type PipeTransform, } from '@angular/core'; import TinyColor from 'tinycolor2'; import { getAccessibilityContrastScore, - getBestColorContrast + getBestColorContrast, } from './color.helpers'; /** diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/common.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/common.ts index 44daaf3fb9..e5a3230114 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/common.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/common.ts @@ -1,5 +1,5 @@ import type { - StylingVariable + StylingVariable, } from '@o3r/styling'; /** RegExp to find a variable and get the variable name in the first group */ diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/is-ref.pipe.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/is-ref.pipe.ts index bf93d83510..f0ace3b5f7 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/is-ref.pipe.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/is-ref.pipe.ts @@ -1,12 +1,12 @@ import { Pipe, - type PipeTransform + type PipeTransform, } from '@angular/core'; import type { - StylingVariable + StylingVariable, } from '@o3r/styling'; import { - isRef + isRef, } from './common'; @Pipe({ diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/memoize.pipe.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/memoize.pipe.ts index 0afee23719..6d1dde67c8 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/memoize.pipe.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/memoize.pipe.ts @@ -1,6 +1,6 @@ import { Pipe, - type PipeTransform + type PipeTransform, } from '@angular/core'; @Pipe({ name: 'memoize', standalone: true }) diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/theming-panel-pres.component.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/theming-panel-pres.component.ts index 58d63d21eb..13e62ecb66 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/theming-panel-pres.component.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/theming-panel-pres.component.ts @@ -7,74 +7,74 @@ import { type OnDestroy, type Signal, untracked, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { takeUntilDestroyed, - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { FormControl, FormGroup, FormsModule, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - DfTooltipModule + DfTooltipModule, } from '@design-factory/design-factory'; import { NgbAccordionModule, - NgbTypeaheadModule + NgbTypeaheadModule, } from '@ng-bootstrap/ng-bootstrap'; import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import { type GetStylingVariableContentMessage, PALETTE_TAG_NAME, type StylingVariable, - THEME_TAG_NAME + THEME_TAG_NAME, } from '@o3r/styling'; import { combineLatest, Observable, - Subscription + Subscription, } from 'rxjs'; import { map, startWith, - throttleTime + throttleTime, } from 'rxjs/operators'; import { ChromeExtensionConnectionService, filterAndMapMessage, - StateService + StateService, } from '../../services'; import { DEFAULT_PALETTE_VARIANT, - getPaletteColors + getPaletteColors, } from './color.helpers'; import { AccessibilityConstrastScorePipe, ConstrastPipe, - HexColorPipe + HexColorPipe, } from './color.pipe'; import { getVariant, resolveVariable, - searchFn + searchFn, } from './common'; import { - IsRefPipe + IsRefPipe, } from './is-ref.pipe'; import { - MemoizePipe + MemoizePipe, } from './memoize.pipe'; import { - VariableLabelPipe + VariableLabelPipe, } from './variable-label.pipe'; import { - VariableNamePipe + VariableNamePipe, } from './variable-name.pipe'; const THROTTLE_TIME = 100; diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/variable-label.pipe.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/variable-label.pipe.ts index 689b526023..0d9bf6b328 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/variable-label.pipe.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/variable-label.pipe.ts @@ -1,9 +1,9 @@ import { Pipe, - type PipeTransform + type PipeTransform, } from '@angular/core'; import type { - StylingVariable + StylingVariable, } from '@o3r/styling'; @Pipe({ diff --git a/apps/chrome-devtools/src/app-devtools/theming-panel/variable-name.pipe.ts b/apps/chrome-devtools/src/app-devtools/theming-panel/variable-name.pipe.ts index 175aa2baa2..ef305d2b40 100644 --- a/apps/chrome-devtools/src/app-devtools/theming-panel/variable-name.pipe.ts +++ b/apps/chrome-devtools/src/app-devtools/theming-panel/variable-name.pipe.ts @@ -1,9 +1,9 @@ import { Pipe, - type PipeTransform + type PipeTransform, } from '@angular/core'; import { - varRegExp + varRegExp, } from './common'; @Pipe({ diff --git a/apps/chrome-devtools/src/components/app-connection/app-connection.component.ts b/apps/chrome-devtools/src/components/app-connection/app-connection.component.ts index 63a4ed9df1..be14216405 100644 --- a/apps/chrome-devtools/src/components/app-connection/app-connection.component.ts +++ b/apps/chrome-devtools/src/components/app-connection/app-connection.component.ts @@ -1,19 +1,19 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject, - OnDestroy + OnDestroy, } from '@angular/core'; import { Observable, - Subscription + Subscription, } from 'rxjs'; import { AppState, - ChromeExtensionConnectionService + ChromeExtensionConnectionService, } from '../../services/connection.service'; @Component({ diff --git a/apps/chrome-devtools/src/components/config-form/config-form.component.ts b/apps/chrome-devtools/src/components/config-form/config-form.component.ts index 3a976afd11..50a7012707 100644 --- a/apps/chrome-devtools/src/components/config-form/config-form.component.ts +++ b/apps/chrome-devtools/src/components/config-form/config-form.component.ts @@ -1,29 +1,29 @@ import { KeyValuePipe, - NgClass + NgClass, } from '@angular/common'; import { ChangeDetectionStrategy, Component, computed, inject, - input + input, } from '@angular/core'; import { FormControl, FormsModule, ReactiveFormsModule, - UntypedFormGroup + UntypedFormGroup, } from '@angular/forms'; import type { Configuration, - ConfigurationModel + ConfigurationModel, } from '@o3r/configuration'; import { - StateService + StateService, } from '../../services'; import { - ChromeExtensionConnectionService + ChromeExtensionConnectionService, } from '../../services/connection.service'; type ControlsType = Record; diff --git a/apps/chrome-devtools/src/components/otter-component/otter-component.component.ts b/apps/chrome-devtools/src/components/otter-component/otter-component.component.ts index 2bfac7f80c..35948eed59 100644 --- a/apps/chrome-devtools/src/components/otter-component/otter-component.component.ts +++ b/apps/chrome-devtools/src/components/otter-component/otter-component.component.ts @@ -1,5 +1,5 @@ import { - KeyValuePipe + KeyValuePipe, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -8,24 +8,24 @@ import { OnChanges, Pipe, PipeTransform, - SimpleChanges + SimpleChanges, } from '@angular/core'; import { NgbAccordionModule, - NgbNavModule + NgbNavModule, } from '@ng-bootstrap/ng-bootstrap'; import type { - OtterLikeComponentInfo + OtterLikeComponentInfo, } from '@o3r/components'; import type { - ConfigurationModel + ConfigurationModel, } from '@o3r/configuration'; import { type RulesetExecutionDebug, - RulesetHistoryPresModule + RulesetHistoryPresModule, } from '@o3r/rules-engine'; import { - ConfigFormComponent + ConfigFormComponent, } from '../config-form/config-form.component'; const isRecordOfArray = (value?: object | null): value is Record => { diff --git a/apps/chrome-devtools/src/extension/background.ts b/apps/chrome-devtools/src/extension/background.ts index 0b74cc978c..022cd71084 100644 --- a/apps/chrome-devtools/src/extension/background.ts +++ b/apps/chrome-devtools/src/extension/background.ts @@ -1,21 +1,21 @@ import type { - ApplicationInformationContentMessage + ApplicationInformationContentMessage, } from '@o3r/application'; import type { InjectContentMessage, OtterMessage, OtterMessageContent, - otterMessageType + otterMessageType, } from '@o3r/core'; import type { - scriptToInject as ScriptToInject + scriptToInject as ScriptToInject, } from '../shared/index'; import type { ACTIVE_STATE_NAME_KEY as ActivateStateNameKey, ExtensionMessage, State, STATES_KEY as StatesKey, - WHITELISTED_HOSTS_KEY as WhitelistedHostsKey + WHITELISTED_HOSTS_KEY as WhitelistedHostsKey, } from './interface'; /** Type of a message exchanged with the Otter Chrome DevTools extension */ diff --git a/apps/chrome-devtools/src/extension/interface.ts b/apps/chrome-devtools/src/extension/interface.ts index 73c299f634..2d59f70914 100644 --- a/apps/chrome-devtools/src/extension/interface.ts +++ b/apps/chrome-devtools/src/extension/interface.ts @@ -1,10 +1,10 @@ import type { Configuration, OtterMessage, - OtterMessageContent + OtterMessageContent, } from '@o3r/core'; import type { - AvailableMessageContents + AvailableMessageContents, } from '../shared/index'; /** Message from the DevTools message */ diff --git a/apps/chrome-devtools/src/extension/options.ts b/apps/chrome-devtools/src/extension/options.ts index 0e76ba65f3..6fa6b171a8 100644 --- a/apps/chrome-devtools/src/extension/options.ts +++ b/apps/chrome-devtools/src/extension/options.ts @@ -1,5 +1,5 @@ import type { - WHITELISTED_HOSTS_KEY as Key + WHITELISTED_HOSTS_KEY as Key, } from './interface'; const WHITELISTED_HOSTS_KEY: typeof Key = 'WHITELISTED_HOSTS'; diff --git a/apps/chrome-devtools/src/extension/wrap.ts b/apps/chrome-devtools/src/extension/wrap.ts index 11f894eb7a..d25debad70 100644 --- a/apps/chrome-devtools/src/extension/wrap.ts +++ b/apps/chrome-devtools/src/extension/wrap.ts @@ -2,7 +2,7 @@ import type { applicationMessageTarget, ConnectContentMessage, - OtterMessage + OtterMessage, } from '@o3r/core'; /* This script is injected into the page by the Otter Devtools extension. diff --git a/apps/chrome-devtools/src/services/connection.service.ts b/apps/chrome-devtools/src/services/connection.service.ts index a74653d450..50db578ab3 100644 --- a/apps/chrome-devtools/src/services/connection.service.ts +++ b/apps/chrome-devtools/src/services/connection.service.ts @@ -2,32 +2,32 @@ import { ApplicationRef, Injectable, OnDestroy, - signal + signal, } from '@angular/core'; import type { - Dictionary + Dictionary, } from '@ngrx/entity'; import type { - ApplicationInformationContentMessage + ApplicationInformationContentMessage, } from '@o3r/application'; import type { - SelectedComponentInfoMessage + SelectedComponentInfoMessage, } from '@o3r/components'; import type { ConfigurationModel, - ConfigurationsMessage + ConfigurationsMessage, } from '@o3r/configuration'; import { - otterMessageType + otterMessageType, } from '@o3r/core'; import type { - RulesEngineDebugEventsContentMessage + RulesEngineDebugEventsContentMessage, } from '@o3r/rules-engine'; import { type Observable, of, ReplaySubject, - Subscription + Subscription, } from 'rxjs'; import { catchError, @@ -38,11 +38,11 @@ import { shareReplay, startWith, take, - timeout + timeout, } from 'rxjs/operators'; import { type AvailableMessageContents, - scriptToInject + scriptToInject, } from '../shared/index'; /** diff --git a/apps/chrome-devtools/src/services/localization.service.ts b/apps/chrome-devtools/src/services/localization.service.ts index d0d86e9d13..618a41f10b 100644 --- a/apps/chrome-devtools/src/services/localization.service.ts +++ b/apps/chrome-devtools/src/services/localization.service.ts @@ -2,29 +2,29 @@ import { inject, Injectable, signal, - type Signal + type Signal, } from '@angular/core'; import { takeUntilDestroyed, toObservable, - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import type { GetTranslationValuesContentMessage, IsTranslationDeactivationEnabledContentMessage, LanguagesContentMessage, LocalizationsContentMessage, - SwitchLanguageContentMessage + SwitchLanguageContentMessage, } from '@o3r/localization'; import { distinctUntilChanged, filter, map, - switchMap + switchMap, } from 'rxjs/operators'; import { ChromeExtensionConnectionService, - filterAndMapMessage + filterAndMapMessage, } from './connection.service'; @Injectable({ providedIn: 'root' }) diff --git a/apps/chrome-devtools/src/services/ruleset-history.service.ts b/apps/chrome-devtools/src/services/ruleset-history.service.ts index 43bd3b9cb4..cc010cb513 100644 --- a/apps/chrome-devtools/src/services/ruleset-history.service.ts +++ b/apps/chrome-devtools/src/services/ruleset-history.service.ts @@ -1,30 +1,30 @@ import { effect, inject, - Injectable + Injectable, } from '@angular/core'; import { - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import type { RulesEngineDebugEventsContentMessage, - RulesetExecutionDebug + RulesetExecutionDebug, } from '@o3r/rules-engine'; import { - rulesetReportToHistory + rulesetReportToHistory, } from '@o3r/rules-engine'; import { filter, map, Observable, - ReplaySubject + ReplaySubject, } from 'rxjs'; import { - shareReplay + shareReplay, } from 'rxjs/operators'; import { ChromeExtensionConnectionService, - isRuleEngineEventsMessage + isRuleEngineEventsMessage, } from './connection.service'; @Injectable({ diff --git a/apps/chrome-devtools/src/services/state.service.ts b/apps/chrome-devtools/src/services/state.service.ts index d65abc86ee..3f6429c675 100644 --- a/apps/chrome-devtools/src/services/state.service.ts +++ b/apps/chrome-devtools/src/services/state.service.ts @@ -4,29 +4,29 @@ import { inject, Injectable, type Signal, - signal + signal, } from '@angular/core'; import { takeUntilDestroyed, toObservable, - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { - combineLatest + combineLatest, } from 'rxjs'; import { ACTIVE_STATE_NAME_KEY, type State, type StateOverride, - STATES_KEY + STATES_KEY, } from '../extension/interface'; import { ChromeExtensionConnectionService, filterAndMapMessage, - isApplicationInformationMessage + isApplicationInformationMessage, } from './connection.service'; import { - LocalizationService + LocalizationService, } from './localization.service'; @Injectable({ providedIn: 'root' }) diff --git a/apps/chrome-devtools/src/shared/message.interface.ts b/apps/chrome-devtools/src/shared/message.interface.ts index 24eed0814f..b9718c1fd7 100644 --- a/apps/chrome-devtools/src/shared/message.interface.ts +++ b/apps/chrome-devtools/src/shared/message.interface.ts @@ -1,23 +1,23 @@ import type { - AvailableApplicationMessageContents + AvailableApplicationMessageContents, } from '@o3r/application'; import type { - AvailableComponentsMessageContents + AvailableComponentsMessageContents, } from '@o3r/components'; import type { - AvailableConfigurationMessageContents + AvailableConfigurationMessageContents, } from '@o3r/configuration'; import type { - CommonContentMessages + CommonContentMessages, } from '@o3r/core'; import type { - AvailableLocalizationMessageContents + AvailableLocalizationMessageContents, } from '@o3r/localization'; import type { - AvailableRulesEngineMessageContents + AvailableRulesEngineMessageContents, } from '@o3r/rules-engine'; import type { - AvailableStylingMessageContents + AvailableStylingMessageContents, } from '@o3r/styling'; export type AvailableMessageContents = diff --git a/apps/github-cascading-app/eslint.local.config.mjs b/apps/github-cascading-app/eslint.local.config.mjs index d5dd217af4..783a3aa3b3 100644 --- a/apps/github-cascading-app/eslint.local.config.mjs +++ b/apps/github-cascading-app/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; @@ -34,5 +34,5 @@ export default [ globalThis: true } } - }, + } ]; diff --git a/apps/github-cascading-app/scripts/prepare-azure-function.mjs b/apps/github-cascading-app/scripts/prepare-azure-function.mjs index b48ffddd30..422b69a63c 100644 --- a/apps/github-cascading-app/scripts/prepare-azure-function.mjs +++ b/apps/github-cascading-app/scripts/prepare-azure-function.mjs @@ -1,12 +1,12 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { dirname, - resolve + resolve, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __dirname = dirname(fileURLToPath(import.meta.url)); diff --git a/apps/github-cascading-app/src/app.ts b/apps/github-cascading-app/src/app.ts index 142c16973c..6080a4700b 100644 --- a/apps/github-cascading-app/src/app.ts +++ b/apps/github-cascading-app/src/app.ts @@ -1,8 +1,8 @@ import type { - Probot + Probot, } from 'probot'; import { - CascadingProbot + CascadingProbot, } from './cascading/cascading-probot'; export = (app: Probot) => { diff --git a/apps/github-cascading-app/src/cascading/cascading-probot.ts b/apps/github-cascading-app/src/cascading/cascading-probot.ts index d7f4f0763d..1051971c87 100644 --- a/apps/github-cascading-app/src/cascading/cascading-probot.ts +++ b/apps/github-cascading-app/src/cascading/cascading-probot.ts @@ -1,15 +1,15 @@ import { - ProbotOctokit + ProbotOctokit, } from 'probot'; import { - Cascading + Cascading, } from './cascading'; import { BaseLogger, CascadingConfiguration, CascadingPullRequestInfo, CheckConclusion, - DEFAULT_CONFIGURATION + DEFAULT_CONFIGURATION, } from './interfaces'; export interface CascadingProbotOptions { diff --git a/apps/github-cascading-app/src/cascading/cascading.spec.ts b/apps/github-cascading-app/src/cascading/cascading.spec.ts index ca8f8a47ab..34d22b253d 100644 --- a/apps/github-cascading-app/src/cascading/cascading.spec.ts +++ b/apps/github-cascading-app/src/cascading/cascading.spec.ts @@ -1,8 +1,8 @@ import { - render + render, } from 'ejs'; import { - Cascading + Cascading, } from './cascading'; import { BaseLogger, @@ -10,7 +10,7 @@ import { CascadingPullRequestInfo, CheckConclusion, DEFAULT_CONFIGURATION, - PullRequestContext + PullRequestContext, } from './interfaces'; const mockBasicTemplate = ` diff --git a/apps/github-cascading-app/src/cascading/cascading.ts b/apps/github-cascading-app/src/cascading/cascading.ts index 89d986a732..0c00e8117a 100644 --- a/apps/github-cascading-app/src/cascading/cascading.ts +++ b/apps/github-cascading-app/src/cascading/cascading.ts @@ -1,21 +1,21 @@ import { - resolve + resolve, } from 'node:path'; import { - renderFile + renderFile, } from 'ejs'; import { coerce, compare, parse, - valid + valid, } from 'semver'; import { BaseLogger, CascadingConfiguration, CascadingPullRequestInfo, CheckConclusion, - PullRequestContext + PullRequestContext, } from './interfaces'; /** Mark of the template to determine if the users cancelled the cascading retrigger */ diff --git a/apps/github-cascading-app/src/github-cascading/index.ts b/apps/github-cascading-app/src/github-cascading/index.ts index dd5c08882a..120606d119 100644 --- a/apps/github-cascading-app/src/github-cascading/index.ts +++ b/apps/github-cascading-app/src/github-cascading/index.ts @@ -1,10 +1,10 @@ import { app as azureApp, - type HttpRequest + type HttpRequest, } from '@azure/functions'; import { createProbot, - type Probot + type Probot, } from 'probot'; import app from '../app'; diff --git a/apps/showcase/e2e-playwright/playwright-config.sanity.ts b/apps/showcase/e2e-playwright/playwright-config.sanity.ts index 2a7a8e5ad2..57ef4fd627 100644 --- a/apps/showcase/e2e-playwright/playwright-config.sanity.ts +++ b/apps/showcase/e2e-playwright/playwright-config.sanity.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import { - defineConfig + defineConfig, } from '@playwright/test'; import { - default as defaultConfig + default as defaultConfig, } from './playwright-config'; const config = defineConfig({ diff --git a/apps/showcase/e2e-playwright/playwright-config.ts b/apps/showcase/e2e-playwright/playwright-config.ts index 714bb3eb70..cf69d8b22f 100644 --- a/apps/showcase/e2e-playwright/playwright-config.ts +++ b/apps/showcase/e2e-playwright/playwright-config.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import { - adjustPath + adjustPath, } from '@o3r/testing/tools/path-replacement'; import { - defineConfig + defineConfig, } from '@playwright/test'; adjustPath('playwright'); diff --git a/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts b/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts index 35f3730165..ecc2c8a4f6 100644 --- a/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts +++ b/apps/showcase/e2e-playwright/sanity/lighthouse-sanity.e2e.ts @@ -1,16 +1,16 @@ import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { type Page, test, - type TestInfo + type TestInfo, } from '@playwright/test'; import { - type playwrightLighthouseConfig + type playwrightLighthouseConfig, } from 'playwright-lighthouse'; import { - AppFixtureComponent + AppFixtureComponent, } from '../../src/app/app.fixture'; const baseUrl = process.env.PLAYWRIGHT_TARGET_URL || 'http://localhost:4200/'; diff --git a/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts b/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts index a243a4409d..f4a3db9703 100644 --- a/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts +++ b/apps/showcase/e2e-playwright/sanity/visual-sanity.e2e.ts @@ -1,12 +1,12 @@ import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { expect, - test + test, } from '@playwright/test'; import { - AppFixtureComponent + AppFixtureComponent, } from '../../src/app/app.fixture'; test.describe.serial('Sanity test', () => { diff --git a/apps/showcase/e2e-playwright/scenarios/component-replacement-page-scenario.e2e-playwright-spec.ts b/apps/showcase/e2e-playwright/scenarios/component-replacement-page-scenario.e2e-playwright-spec.ts index 6cd5cc6eb2..c9dd2796c8 100644 --- a/apps/showcase/e2e-playwright/scenarios/component-replacement-page-scenario.e2e-playwright-spec.ts +++ b/apps/showcase/e2e-playwright/scenarios/component-replacement-page-scenario.e2e-playwright-spec.ts @@ -1,15 +1,15 @@ import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { expect, - test + test, } from '@playwright/test'; import { - AppFixtureComponent + AppFixtureComponent, } from '../../src/app/app.fixture'; import { - ComponentReplacementPresFixtureComponent + ComponentReplacementPresFixtureComponent, } from '../../src/components/showcase/component-replacement/component-replacement-pres.fixture'; test.describe.serial('Test component replacement page', () => { diff --git a/apps/showcase/e2e-playwright/scenarios/configuration-page-scenario.e2e-playwright-spec.ts b/apps/showcase/e2e-playwright/scenarios/configuration-page-scenario.e2e-playwright-spec.ts index 6f7817a2d1..78b5f4c03d 100644 --- a/apps/showcase/e2e-playwright/scenarios/configuration-page-scenario.e2e-playwright-spec.ts +++ b/apps/showcase/e2e-playwright/scenarios/configuration-page-scenario.e2e-playwright-spec.ts @@ -1,15 +1,15 @@ import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { expect, - test + test, } from '@playwright/test'; import { - AppFixtureComponent + AppFixtureComponent, } from '../../src/app/app.fixture'; import { - ConfigurationFixtureComponent + ConfigurationFixtureComponent, } from '../../src/app/configuration/configuration.fixture'; test.describe.serial('Test configuration page', () => { diff --git a/apps/showcase/e2e-playwright/scenarios/dynamic-content-page-scenario.e2e-playwright-spec.ts b/apps/showcase/e2e-playwright/scenarios/dynamic-content-page-scenario.e2e-playwright-spec.ts index 542fea7a75..a9ee4171eb 100644 --- a/apps/showcase/e2e-playwright/scenarios/dynamic-content-page-scenario.e2e-playwright-spec.ts +++ b/apps/showcase/e2e-playwright/scenarios/dynamic-content-page-scenario.e2e-playwright-spec.ts @@ -1,15 +1,15 @@ import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { expect, - test + test, } from '@playwright/test'; import { - AppFixtureComponent + AppFixtureComponent, } from '../../src/app/app.fixture'; import { - DynamicContentFixtureComponent + DynamicContentFixtureComponent, } from '../../src/app/dynamic-content/dynamic-content.fixture'; test.describe.serial('Test dynamic content page', () => { diff --git a/apps/showcase/eslint.local.config.mjs b/apps/showcase/eslint.local.config.mjs index f5b278aae8..e41af57914 100644 --- a/apps/showcase/eslint.local.config.mjs +++ b/apps/showcase/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; @@ -32,7 +32,7 @@ export default [ 'tsconfig.spec.json' ] } - }, + } }, { name: '@o3r/showcase/playwright', @@ -50,19 +50,19 @@ export default [ '@o3r/o3r-widget-tags': [ 'error', { - 'widgets': { - 'DESTINATION_ARRAY': { - 'minItems': { - 'type': 'number' + widgets: { + DESTINATION_ARRAY: { + minItems: { + type: 'number' }, - 'allDestinationsDifferent': { - 'type': 'boolean' + allDestinationsDifferent: { + type: 'boolean' }, - 'atLeastOneDestinationAvailable': { - 'type': 'boolean' + atLeastOneDestinationAvailable: { + type: 'boolean' }, - 'destinationPattern': { - 'type': 'string' + destinationPattern: { + type: 'string' } } } diff --git a/apps/showcase/src/app/app-routing.module.ts b/apps/showcase/src/app/app-routing.module.ts index 9dce081598..2f528e011a 100644 --- a/apps/showcase/src/app/app-routing.module.ts +++ b/apps/showcase/src/app/app-routing.module.ts @@ -1,9 +1,9 @@ import { - NgModule + NgModule, } from '@angular/core'; import { RouterModule, - Routes + Routes, } from '@angular/router'; const appRoutes: Routes = [ diff --git a/apps/showcase/src/app/app.component.spec.ts b/apps/showcase/src/app/app.component.spec.ts index 43eae8264d..ce042cf75c 100644 --- a/apps/showcase/src/app/app.component.spec.ts +++ b/apps/showcase/src/app/app.component.spec.ts @@ -1,39 +1,39 @@ import { - Provider + Provider, } from '@angular/core'; import { - TestBed + TestBed, } from '@angular/core/testing'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - provideMockStore + provideMockStore, } from '@ngrx/store/testing'; import { TranslateCompiler, - TranslateFakeCompiler + TranslateFakeCompiler, } from '@ngx-translate/core'; import { - ApplicationDevtoolsModule + ApplicationDevtoolsModule, } from '@o3r/application'; import { - ComponentsDevtoolsModule + ComponentsDevtoolsModule, } from '@o3r/components'; import { - ConfigurationDevtoolsModule + ConfigurationDevtoolsModule, } from '@o3r/configuration'; import { - LocalizationDevtoolsModule + LocalizationDevtoolsModule, } from '@o3r/localization'; import { - mockTranslationModules + mockTranslationModules, } from '@o3r/testing/localization'; import { - AppComponent + AppComponent, } from './app.component'; const localizationConfiguration = { language: 'en' }; diff --git a/apps/showcase/src/app/app.component.ts b/apps/showcase/src/app/app.component.ts index 2bfcf96c36..219c3b8697 100644 --- a/apps/showcase/src/app/app.component.ts +++ b/apps/showcase/src/app/app.component.ts @@ -2,18 +2,18 @@ import { Component, inject, OnDestroy, - TemplateRef + TemplateRef, } from '@angular/core'; import { NavigationEnd, - Router + Router, } from '@angular/router'; import { NgbOffcanvas, - NgbOffcanvasRef + NgbOffcanvasRef, } from '@ng-bootstrap/ng-bootstrap'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { filter, @@ -21,10 +21,10 @@ import { Observable, share, shareReplay, - Subscription + Subscription, } from 'rxjs'; import { - SideNavLinksGroup + SideNavLinksGroup, } from '../components/index'; @O3rComponent({ componentType: 'Component' }) diff --git a/apps/showcase/src/app/app.fixture.ts b/apps/showcase/src/app/app.fixture.ts index a6a43b9185..21779081c7 100644 --- a/apps/showcase/src/app/app.fixture.ts +++ b/apps/showcase/src/app/app.fixture.ts @@ -1,10 +1,10 @@ import { ComponentFixtureProfile, - O3rComponentFixture + O3rComponentFixture, } from '@o3r/testing/core'; import { SidenavPresFixture, - SidenavPresFixtureComponent + SidenavPresFixtureComponent, } from '../components/utilities/sidenav/sidenav-pres.fixture'; /** diff --git a/apps/showcase/src/app/app.module.ts b/apps/showcase/src/app/app.module.ts index 6fb60104e3..33e24e41c4 100644 --- a/apps/showcase/src/app/app.module.ts +++ b/apps/showcase/src/app/app.module.ts @@ -1,52 +1,52 @@ import { - ApiFetchClient + ApiFetchClient, } from '@ama-sdk/client-fetch'; import { - registerLocaleData + registerLocaleData, } from '@angular/common'; import localeEN from '@angular/common/locales/en'; import localeFR from '@angular/common/locales/fr'; import { isDevMode, - NgModule + NgModule, } from '@angular/core'; import { - BrowserModule + BrowserModule, } from '@angular/platform-browser'; import { - BrowserAnimationsModule + BrowserAnimationsModule, } from '@angular/platform-browser/animations'; import { - NgbOffcanvasModule + NgbOffcanvasModule, } from '@ng-bootstrap/ng-bootstrap'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { RuntimeChecks, - StoreModule + StoreModule, } from '@ngrx/store'; import { - StoreDevtoolsModule + StoreDevtoolsModule, } from '@ngrx/store-devtools'; import { TranslateCompiler, - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { ApplicationDevtoolsModule, OTTER_APPLICATION_DEVTOOLS_OPTIONS, - prefersReducedMotion + prefersReducedMotion, } from '@o3r/application'; import { C11nModule, ComponentsDevtoolsModule, OTTER_COMPONENTS_DEVTOOLS_OPTIONS, - registerCustomComponent + registerCustomComponent, } from '@o3r/components'; import { ConfigurationDevtoolsModule, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from '@o3r/configuration'; import { LocalizationConfiguration, @@ -55,40 +55,40 @@ import { MESSAGE_FORMAT_CONFIG, OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, translateLoaderProvider, - TranslateMessageFormatLazyCompiler + TranslateMessageFormatLazyCompiler, } from '@o3r/localization'; import { ConsoleLogger, Logger, LOGGER_CLIENT_TOKEN, - LoggerService + LoggerService, } from '@o3r/logger'; import { OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS, - RulesEngineRunnerModule + RulesEngineRunnerModule, } from '@o3r/rules-engine'; import { OTTER_STYLING_DEVTOOLS_OPTIONS, - StylingDevtoolsModule + StylingDevtoolsModule, } from '@o3r/styling'; import { - PetApi + PetApi, } from '@o3r-training/showcase-sdk'; import { - HIGHLIGHT_OPTIONS + HIGHLIGHT_OPTIONS, } from 'ngx-highlightjs'; import { ScrollBackTopPresComponent, - SidenavPresComponent + SidenavPresComponent, } from '../components/index'; import { - DatePickerHebrewInputPresComponent + DatePickerHebrewInputPresComponent, } from '../components/utilities/date-picker-input-hebrew'; import { - AppRoutingModule + AppRoutingModule, } from './app-routing.module'; import { - AppComponent + AppComponent, } from './app.component'; const runtimeChecks: Partial = { diff --git a/apps/showcase/src/app/component-replacement/component-replacement.component.ts b/apps/showcase/src/app/component-replacement/component-replacement.component.ts index b22b37b1c9..bcc30a7128 100644 --- a/apps/showcase/src/app/component-replacement/component-replacement.component.ts +++ b/apps/showcase/src/app/component-replacement/component-replacement.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -8,28 +8,28 @@ import { inject, QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - ComponentReplacementPresComponent + ComponentReplacementPresComponent, } from '../../components/showcase/component-replacement/component-replacement-pres.component'; import { - CopyTextPresComponent + CopyTextPresComponent, } from '../../components/utilities/copy-text/copy-text-pres.component'; import { InPageNavLink, InPageNavLinkDirective, - InPageNavPresService + InPageNavPresService, } from '../../components/utilities/in-page-nav'; import { IN_PAGE_NAV_PRES_DIRECTIVES, - InPageNavPresComponent + InPageNavPresComponent, } from '../../components/utilities/in-page-nav/in-page-nav-pres.component'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/component-replacement/component-replacement.spec.ts b/apps/showcase/src/app/component-replacement/component-replacement.spec.ts index b7658fdbd8..954129cadf 100644 --- a/apps/showcase/src/app/component-replacement/component-replacement.spec.ts +++ b/apps/showcase/src/app/component-replacement/component-replacement.spec.ts @@ -1,18 +1,18 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - ComponentReplacementPresComponent + ComponentReplacementPresComponent, } from '../../components/showcase/component-replacement/component-replacement-pres.component'; import { - ComponentReplacementComponent + ComponentReplacementComponent, } from './component-replacement.component'; describe('ComponentReplacementComponent', () => { diff --git a/apps/showcase/src/app/configuration/configuration.component.ts b/apps/showcase/src/app/configuration/configuration.component.ts index 1c50936604..08629b722f 100644 --- a/apps/showcase/src/app/configuration/configuration.component.ts +++ b/apps/showcase/src/app/configuration/configuration.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -10,16 +10,16 @@ import { QueryList, signal, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - ConfigurationBaseServiceModule + ConfigurationBaseServiceModule, } from '@o3r/configuration'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { ConfigurationPresComponent, @@ -27,10 +27,10 @@ import { IN_PAGE_NAV_PRES_DIRECTIVES, InPageNavLink, InPageNavLinkDirective, - InPageNavPresService + InPageNavPresService, } from '../../components/index'; import { - ConfigurationPresConfig + ConfigurationPresConfig, } from '../../components/showcase/configuration/configuration-pres.config'; const CONFIG_OVERRIDE: ConfigurationPresConfig = { diff --git a/apps/showcase/src/app/configuration/configuration.fixture.ts b/apps/showcase/src/app/configuration/configuration.fixture.ts index 0a2f1dc533..beb98d795c 100644 --- a/apps/showcase/src/app/configuration/configuration.fixture.ts +++ b/apps/showcase/src/app/configuration/configuration.fixture.ts @@ -1,7 +1,7 @@ import { ComponentFixtureProfile, O3rComponentFixture, - O3rElement + O3rElement, } from '@o3r/testing/core'; /** diff --git a/apps/showcase/src/app/configuration/configuration.spec.ts b/apps/showcase/src/app/configuration/configuration.spec.ts index d96036dc00..4c6e54353f 100644 --- a/apps/showcase/src/app/configuration/configuration.spec.ts +++ b/apps/showcase/src/app/configuration/configuration.spec.ts @@ -1,24 +1,24 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { - ConfigurationComponent + ConfigurationComponent, } from './configuration.component'; import { - ConfigurationFixtureComponent + ConfigurationFixtureComponent, } from './configuration.fixture'; let componentFixture: ConfigurationFixtureComponent; diff --git a/apps/showcase/src/app/design-token/design-token.component.ts b/apps/showcase/src/app/design-token/design-token.component.ts index 379856ec35..efeb6d93bb 100644 --- a/apps/showcase/src/app/design-token/design-token.component.ts +++ b/apps/showcase/src/app/design-token/design-token.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -8,13 +8,13 @@ import { inject, QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterLink + RouterLink, } from '@angular/router'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { CopyTextPresComponent, @@ -22,7 +22,7 @@ import { IN_PAGE_NAV_PRES_DIRECTIVES, InPageNavLink, InPageNavLinkDirective, - InPageNavPresService + InPageNavPresService, } from '../../components'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/design-token/design-token.spec.ts b/apps/showcase/src/app/design-token/design-token.spec.ts index 86a4a50935..11a739183e 100644 --- a/apps/showcase/src/app/design-token/design-token.spec.ts +++ b/apps/showcase/src/app/design-token/design-token.spec.ts @@ -1,12 +1,12 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - DesignTokenComponent + DesignTokenComponent, } from './design-token.component'; describe('DesignTokenComponent', () => { diff --git a/apps/showcase/src/app/dynamic-content/dynamic-content.component.ts b/apps/showcase/src/app/dynamic-content/dynamic-content.component.ts index 00bedba440..2081ef569a 100644 --- a/apps/showcase/src/app/dynamic-content/dynamic-content.component.ts +++ b/apps/showcase/src/app/dynamic-content/dynamic-content.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -8,16 +8,16 @@ import { inject, QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DynamicContentModule + DynamicContentModule, } from '@o3r/dynamic-content'; import { CopyTextPresComponent, @@ -25,7 +25,7 @@ import { IN_PAGE_NAV_PRES_DIRECTIVES, InPageNavLink, InPageNavLinkDirective, - InPageNavPresService + InPageNavPresService, } from '../../components/index'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/dynamic-content/dynamic-content.fixture.ts b/apps/showcase/src/app/dynamic-content/dynamic-content.fixture.ts index c859fc4f97..fc0b3f73d4 100644 --- a/apps/showcase/src/app/dynamic-content/dynamic-content.fixture.ts +++ b/apps/showcase/src/app/dynamic-content/dynamic-content.fixture.ts @@ -1,7 +1,7 @@ import { ComponentFixtureProfile, O3rComponentFixture, - O3rElement + O3rElement, } from '@o3r/testing/core'; /** diff --git a/apps/showcase/src/app/dynamic-content/dynamic-content.spec.ts b/apps/showcase/src/app/dynamic-content/dynamic-content.spec.ts index dcba36eb1e..0ac23aac0c 100644 --- a/apps/showcase/src/app/dynamic-content/dynamic-content.spec.ts +++ b/apps/showcase/src/app/dynamic-content/dynamic-content.spec.ts @@ -1,21 +1,21 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { - DynamicContentComponent + DynamicContentComponent, } from './dynamic-content.component'; import { - DynamicContentFixtureComponent + DynamicContentFixtureComponent, } from './dynamic-content.fixture'; let componentFixture: DynamicContentFixtureComponent; diff --git a/apps/showcase/src/app/home/home.component.ts b/apps/showcase/src/app/home/home.component.ts index af97405fb1..08fa995896 100644 --- a/apps/showcase/src/app/home/home.component.ts +++ b/apps/showcase/src/app/home/home.component.ts @@ -1,16 +1,16 @@ import { ChangeDetectionStrategy, Component, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DynamicContentModule + DynamicContentModule, } from '@o3r/dynamic-content'; import { - CopyTextPresComponent + CopyTextPresComponent, } from '../../components'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/home/home.spec.ts b/apps/showcase/src/app/home/home.spec.ts index 01c14de722..71954dd165 100644 --- a/apps/showcase/src/app/home/home.spec.ts +++ b/apps/showcase/src/app/home/home.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - HomeComponent + HomeComponent, } from './home.component'; describe('HomeComponent', () => { diff --git a/apps/showcase/src/app/localization/localization.component.ts b/apps/showcase/src/app/localization/localization.component.ts index a41458b6dd..91e761feb7 100644 --- a/apps/showcase/src/app/localization/localization.component.ts +++ b/apps/showcase/src/app/localization/localization.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -8,13 +8,13 @@ import { inject, QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { CopyTextPresComponent, @@ -22,7 +22,7 @@ import { InPageNavLink, InPageNavLinkDirective, InPageNavPresService, - LocalizationPresComponent + LocalizationPresComponent, } from '../../components/index'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/localization/localization.spec.ts b/apps/showcase/src/app/localization/localization.spec.ts index e8415f043a..67770a14a6 100644 --- a/apps/showcase/src/app/localization/localization.spec.ts +++ b/apps/showcase/src/app/localization/localization.spec.ts @@ -1,28 +1,28 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { - Provider + Provider, } from '@angular/core'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { TranslateCompiler, - TranslateFakeCompiler + TranslateFakeCompiler, } from '@ngx-translate/core'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - mockTranslationModules + mockTranslationModules, } from '@o3r/testing/localization'; import { - LocalizationComponent + LocalizationComponent, } from './localization.component'; const localizationConfiguration = { language: 'en' }; diff --git a/apps/showcase/src/app/placeholder/placeholder.component.ts b/apps/showcase/src/app/placeholder/placeholder.component.ts index fa3e5293df..dff4fa6034 100644 --- a/apps/showcase/src/app/placeholder/placeholder.component.ts +++ b/apps/showcase/src/app/placeholder/placeholder.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { type AfterViewInit, @@ -8,47 +8,47 @@ import { inject, type QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - Store + Store, } from '@ngrx/store'; import { PlaceholderRulesEngineActionHandler, - PlaceholderRulesEngineActionModule + PlaceholderRulesEngineActionModule, } from '@o3r/components/rules-engine'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { DynamicContentModule, - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { RulesEngineDevtoolsModule, RulesEngineRunnerModule, RulesEngineRunnerService, RulesetsStore, - setRulesetsEntities + setRulesetsEntities, } from '@o3r/rules-engine'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { IN_PAGE_NAV_PRES_DIRECTIVES, type InPageNavLink, InPageNavLinkDirective, InPageNavPresService, - PlaceholderPresComponent + PlaceholderPresComponent, } from '../../components'; import { - environment + environment, } from '../../environments/environment.development'; import { - TripFactsService + TripFactsService, } from '../../facts'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/placeholder/placeholder.spec.ts b/apps/showcase/src/app/placeholder/placeholder.spec.ts index bea89619ca..90cda1720d 100644 --- a/apps/showcase/src/app/placeholder/placeholder.spec.ts +++ b/apps/showcase/src/app/placeholder/placeholder.spec.ts @@ -1,18 +1,18 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - RulesEngineRunnerModule + RulesEngineRunnerModule, } from '@o3r/rules-engine'; import { - PlaceholderComponent + PlaceholderComponent, } from './placeholder.component'; describe('PlaceholderComponent', () => { diff --git a/apps/showcase/src/app/rules-engine/rules-engine.component.ts b/apps/showcase/src/app/rules-engine/rules-engine.component.ts index 6812a198fe..53ec7ed62c 100644 --- a/apps/showcase/src/app/rules-engine/rules-engine.component.ts +++ b/apps/showcase/src/app/rules-engine/rules-engine.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -8,47 +8,47 @@ import { inject, QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - NgbNavModule + NgbNavModule, } from '@ng-bootstrap/ng-bootstrap'; import { - ApplicationDevtoolsModule + ApplicationDevtoolsModule, } from '@o3r/application'; import { - ComponentsDevtoolsModule + ComponentsDevtoolsModule, } from '@o3r/components'; import { ConfigOverrideStoreModule, ConfigurationBaseServiceModule, - ConfigurationDevtoolsModule + ConfigurationDevtoolsModule, } from '@o3r/configuration'; import { ConfigurationRulesEngineActionHandler, - ConfigurationRulesEngineActionModule + ConfigurationRulesEngineActionModule, } from '@o3r/configuration/rules-engine'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { AssetPathOverrideStoreModule, DynamicContentModule, - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { AssetRulesEngineActionHandler, - AssetRulesEngineActionModule + AssetRulesEngineActionModule, } from '@o3r/dynamic-content/rules-engine'; import { - LocalizationOverrideStoreModule + LocalizationOverrideStoreModule, } from '@o3r/localization'; import { LocalizationRulesEngineActionHandler, - LocalizationRulesEngineActionModule + LocalizationRulesEngineActionModule, } from '@o3r/localization/rules-engine'; import { CurrentTimeFactsService, @@ -59,10 +59,10 @@ import { RulesEngineRunnerModule, RulesEngineRunnerService, Ruleset, - UnaryOperator + UnaryOperator, } from '@o3r/rules-engine'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { CopyTextPresComponent, @@ -70,16 +70,16 @@ import { InPageNavLink, InPageNavLinkDirective, InPageNavPresService, - RulesEnginePresComponent + RulesEnginePresComponent, } from '../../components/index'; import { - environment + environment, } from '../../environments/environment.development'; import { - TripFactsService + TripFactsService, } from '../../facts/index'; import { - duringSummer + duringSummer, } from '../../operators/index'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/rules-engine/rules-engine.spec.ts b/apps/showcase/src/app/rules-engine/rules-engine.spec.ts index f3635ff347..7018a59720 100644 --- a/apps/showcase/src/app/rules-engine/rules-engine.spec.ts +++ b/apps/showcase/src/app/rules-engine/rules-engine.spec.ts @@ -1,37 +1,37 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { - Provider + Provider, } from '@angular/core'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { TranslateCompiler, - TranslateFakeCompiler + TranslateFakeCompiler, } from '@ngx-translate/core'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - RulesEngineRunnerModule + RulesEngineRunnerModule, } from '@o3r/rules-engine'; import { - mockTranslationModules + mockTranslationModules, } from '@o3r/testing/localization'; import { - RulesEngineComponent + RulesEngineComponent, } from './rules-engine.component'; const localizationConfiguration = { language: 'en' }; diff --git a/apps/showcase/src/app/run-app-locally/run-app-locally.component.ts b/apps/showcase/src/app/run-app-locally/run-app-locally.component.ts index d660fbd1b0..973f4fc207 100644 --- a/apps/showcase/src/app/run-app-locally/run-app-locally.component.ts +++ b/apps/showcase/src/app/run-app-locally/run-app-locally.component.ts @@ -1,13 +1,13 @@ import { ChangeDetectionStrategy, Component, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - CopyTextPresComponent + CopyTextPresComponent, } from '../../components/index'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/run-app-locally/run-app-locally.spec.ts b/apps/showcase/src/app/run-app-locally/run-app-locally.spec.ts index 78ce71b14a..a36c5542b6 100644 --- a/apps/showcase/src/app/run-app-locally/run-app-locally.spec.ts +++ b/apps/showcase/src/app/run-app-locally/run-app-locally.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RunAppLocallyComponent + RunAppLocallyComponent, } from './run-app-locally.component'; describe('RunAppLocallyComponent', () => { diff --git a/apps/showcase/src/app/sdk/sdk.component.ts b/apps/showcase/src/app/sdk/sdk.component.ts index ceae3d5723..7352c391c6 100644 --- a/apps/showcase/src/app/sdk/sdk.component.ts +++ b/apps/showcase/src/app/sdk/sdk.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { AfterViewInit, @@ -8,13 +8,13 @@ import { inject, QueryList, ViewChildren, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterLink + RouterLink, } from '@angular/router'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { CopyTextPresComponent, @@ -22,7 +22,7 @@ import { InPageNavLink, InPageNavLinkDirective, InPageNavPresService, - SdkPresComponent + SdkPresComponent, } from '../../components'; @O3rComponent({ componentType: 'Page' }) diff --git a/apps/showcase/src/app/sdk/sdk.spec.ts b/apps/showcase/src/app/sdk/sdk.spec.ts index ae433c7321..1fcad95cbe 100644 --- a/apps/showcase/src/app/sdk/sdk.spec.ts +++ b/apps/showcase/src/app/sdk/sdk.spec.ts @@ -1,21 +1,21 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - PetApi + PetApi, } from '@o3r-training/showcase-sdk'; import { - PetApiFixture + PetApiFixture, } from '@o3r-training/showcase-sdk/fixtures'; import { - SdkComponent + SdkComponent, } from './sdk.component'; import '@angular/localize/init'; diff --git a/apps/showcase/src/components/showcase/basic/basic-pres.component.ts b/apps/showcase/src/components/showcase/basic/basic-pres.component.ts index 8b4b1d9100..3b1591dffe 100644 --- a/apps/showcase/src/components/showcase/basic/basic-pres.component.ts +++ b/apps/showcase/src/components/showcase/basic/basic-pres.component.ts @@ -1,23 +1,23 @@ import { - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/basic/basic-pres.spec.ts b/apps/showcase/src/components/showcase/basic/basic-pres.spec.ts index 852ce49f31..6790db35e7 100644 --- a/apps/showcase/src/components/showcase/basic/basic-pres.spec.ts +++ b/apps/showcase/src/components/showcase/basic/basic-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - BasicPresComponent + BasicPresComponent, } from './basic-pres.component'; describe('BasicPresComponent', () => { diff --git a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.component.ts b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.component.ts index f4e5b1b557..6ffbebb8ae 100644 --- a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.component.ts +++ b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.component.ts @@ -1,6 +1,6 @@ import { CommonModule, - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -9,36 +9,36 @@ import { input, type Signal, Type, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { toObservable, - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { FormControl, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { C11nModule, - C11nService + C11nService, } from '@o3r/components'; import { configSignal, DynamicConfigurableWithSignal, - O3rConfig + O3rConfig, } from '@o3r/configuration'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { DatePickerInputPresComponent, - DatePickerInputPresContext + DatePickerInputPresContext, } from '../../utilities/index'; import { COMPONENT_REPLACEMENT_PRES_CONFIG_ID, COMPONENT_REPLACEMENT_PRES_DEFAULT_CONFIG, - ComponentReplacementPresConfig + ComponentReplacementPresConfig, } from './component-replacement-pres.config'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.config.ts b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.config.ts index 47792c337b..0bffce7e2d 100644 --- a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.config.ts +++ b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.config.ts @@ -1,8 +1,8 @@ import type { - Configuration + Configuration, } from '@o3r/core'; import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; /** diff --git a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.fixture.ts b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.fixture.ts index 309e32db62..49c334aa54 100644 --- a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.fixture.ts +++ b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.fixture.ts @@ -1,7 +1,7 @@ import { ComponentFixtureProfile, O3rComponentFixture, - O3rElement + O3rElement, } from '@o3r/testing/core'; /** diff --git a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.spec.ts b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.spec.ts index 4275d95fb6..c7e365fbb1 100644 --- a/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.spec.ts +++ b/apps/showcase/src/components/showcase/component-replacement/component-replacement-pres.spec.ts @@ -1,27 +1,27 @@ import { Directive, - forwardRef + forwardRef, } from '@angular/core'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - NG_VALUE_ACCESSOR + NG_VALUE_ACCESSOR, } from '@angular/forms'; import { C11nMockService, C11nModule, - C11nService + C11nService, } from '@o3r/components'; import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { - ComponentReplacementPresComponent + ComponentReplacementPresComponent, } from './component-replacement-pres.component'; import { - ComponentReplacementPresFixtureComponent + ComponentReplacementPresFixtureComponent, } from './component-replacement-pres.fixture'; let componentFixture: ComponentReplacementPresFixtureComponent; diff --git a/apps/showcase/src/components/showcase/configuration/configuration-pres.component.ts b/apps/showcase/src/components/showcase/configuration/configuration-pres.component.ts index 43d301a732..dcbb3ff7f4 100644 --- a/apps/showcase/src/components/showcase/configuration/configuration-pres.component.ts +++ b/apps/showcase/src/components/showcase/configuration/configuration-pres.component.ts @@ -1,6 +1,6 @@ import { AsyncPipe, - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -9,28 +9,28 @@ import { effect, inject, input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormBuilder, FormControl, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { configSignal, DynamicConfigurableWithSignal, - O3rConfig + O3rConfig, } from '@o3r/configuration'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; import { CONFIGURATION_PRES_CONFIG_ID, CONFIGURATION_PRES_DEFAULT_CONFIG, - ConfigurationPresConfig + ConfigurationPresConfig, } from './configuration-pres.config'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/configuration/configuration-pres.config.ts b/apps/showcase/src/components/showcase/configuration/configuration-pres.config.ts index a9d39fea8a..6b24cd05be 100644 --- a/apps/showcase/src/components/showcase/configuration/configuration-pres.config.ts +++ b/apps/showcase/src/components/showcase/configuration/configuration-pres.config.ts @@ -1,9 +1,9 @@ import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import type { Configuration, - NestedConfiguration + NestedConfiguration, } from '@o3r/core'; /** Configuration of a destination */ diff --git a/apps/showcase/src/components/showcase/configuration/configuration-pres.spec.ts b/apps/showcase/src/components/showcase/configuration/configuration-pres.spec.ts index 30634b0762..34f9881957 100644 --- a/apps/showcase/src/components/showcase/configuration/configuration-pres.spec.ts +++ b/apps/showcase/src/components/showcase/configuration/configuration-pres.spec.ts @@ -1,12 +1,12 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - ConfigurationPresComponent + ConfigurationPresComponent, } from './configuration-pres.component'; describe('ConfigurationPresComponent', () => { diff --git a/apps/showcase/src/components/showcase/design-token/design-token-pres.component.ts b/apps/showcase/src/components/showcase/design-token/design-token-pres.component.ts index 39a9a19784..0af7c64293 100644 --- a/apps/showcase/src/components/showcase/design-token/design-token-pres.component.ts +++ b/apps/showcase/src/components/showcase/design-token/design-token-pres.component.ts @@ -1,5 +1,5 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -7,27 +7,27 @@ import { DestroyRef, inject, OnDestroy, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, FormsModule, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { StyleLazyLoader, - StyleLazyLoaderModule + StyleLazyLoaderModule, } from '@o3r/dynamic-content'; import { - Subscription + Subscription, } from 'rxjs'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; @O3rComponent({ componentType: 'Component' }) diff --git a/apps/showcase/src/components/showcase/design-token/design-token-pres.spec.ts b/apps/showcase/src/components/showcase/design-token/design-token-pres.spec.ts index 18e5107b9c..2e6b498ea7 100644 --- a/apps/showcase/src/components/showcase/design-token/design-token-pres.spec.ts +++ b/apps/showcase/src/components/showcase/design-token/design-token-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - DesignTokenPresComponent + DesignTokenPresComponent, } from './design-token-pres.component'; describe('DesignTokenPresComponent', () => { diff --git a/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.component.ts b/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.component.ts index c086cfd55d..e9c88cd374 100644 --- a/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.component.ts +++ b/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.component.ts @@ -1,26 +1,26 @@ import { - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DynamicContentModule + DynamicContentModule, } from '@o3r/dynamic-content'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.spec.ts b/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.spec.ts index 68fd3dab08..7bcf54e4dc 100644 --- a/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.spec.ts +++ b/apps/showcase/src/components/showcase/dynamic-content/dynamic-content-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - DynamicContentPresComponent + DynamicContentPresComponent, } from './dynamic-content-pres.component'; describe('DynamicContentPresComponent', () => { diff --git a/apps/showcase/src/components/showcase/localization/localization-pres.component.ts b/apps/showcase/src/components/showcase/localization/localization-pres.component.ts index cbacb1307f..91d6d90c60 100644 --- a/apps/showcase/src/components/showcase/localization/localization-pres.component.ts +++ b/apps/showcase/src/components/showcase/localization/localization-pres.component.ts @@ -1,5 +1,5 @@ import { - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -7,32 +7,32 @@ import { inject, Input, OnDestroy, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { Localization, LocalizationModule, LocalizationService, - Translatable + Translatable, } from '@o3r/localization'; import { - Subscription + Subscription, } from 'rxjs'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; import { LocalizationPresTranslation, - translations + translations, } from './localization-pres.translation'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/localization/localization-pres.spec.ts b/apps/showcase/src/components/showcase/localization/localization-pres.spec.ts index 44dd1fa50a..e2ede117c0 100644 --- a/apps/showcase/src/components/showcase/localization/localization-pres.spec.ts +++ b/apps/showcase/src/components/showcase/localization/localization-pres.spec.ts @@ -1,22 +1,22 @@ import { - Provider + Provider, } from '@angular/core'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { TranslateCompiler, - TranslateFakeCompiler + TranslateFakeCompiler, } from '@ngx-translate/core'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - mockTranslationModules + mockTranslationModules, } from '@o3r/testing/localization'; import { - LocalizationPresComponent + LocalizationPresComponent, } from './localization-pres.component'; const localizationConfiguration = { language: 'en' }; diff --git a/apps/showcase/src/components/showcase/localization/localization-pres.translation.ts b/apps/showcase/src/components/showcase/localization/localization-pres.translation.ts index 39fd356ad7..82d13183c1 100644 --- a/apps/showcase/src/components/showcase/localization/localization-pres.translation.ts +++ b/apps/showcase/src/components/showcase/localization/localization-pres.translation.ts @@ -1,5 +1,5 @@ import type { - Translation + Translation, } from '@o3r/core'; export interface LocalizationPresTranslation extends Translation { diff --git a/apps/showcase/src/components/showcase/placeholder/placeholder-pres.component.ts b/apps/showcase/src/components/showcase/placeholder/placeholder-pres.component.ts index cd2ae265e5..b5a9fd3c57 100644 --- a/apps/showcase/src/components/showcase/placeholder/placeholder-pres.component.ts +++ b/apps/showcase/src/components/showcase/placeholder/placeholder-pres.component.ts @@ -1,36 +1,36 @@ import { - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject, type OnDestroy, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { - PlaceholderModule + PlaceholderModule, } from '@o3r/components'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - RulesEngineRunnerModule + RulesEngineRunnerModule, } from '@o3r/rules-engine'; import { - Subscription + Subscription, } from 'rxjs'; import { - TripFactsService + TripFactsService, } from '../../../facts/trip/trip.facts'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/placeholder/placeholder-pres.spec.ts b/apps/showcase/src/components/showcase/placeholder/placeholder-pres.spec.ts index 8dbc32464e..6701fab1d4 100644 --- a/apps/showcase/src/components/showcase/placeholder/placeholder-pres.spec.ts +++ b/apps/showcase/src/components/showcase/placeholder/placeholder-pres.spec.ts @@ -1,18 +1,18 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - RulesEngineRunnerModule + RulesEngineRunnerModule, } from '@o3r/rules-engine'; import { - PlaceholderPresComponent + PlaceholderPresComponent, } from './placeholder-pres.component'; describe('PlaceholderPresComponent', () => { diff --git a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.component.ts b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.component.ts index 2cfccf1239..7d8bd1e7ae 100644 --- a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.component.ts +++ b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.component.ts @@ -1,6 +1,6 @@ import { AsyncPipe, - formatDate + formatDate, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -11,55 +11,55 @@ import { input, type OnDestroy, OnInit, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - toObservable + toObservable, } from '@angular/core/rxjs-interop'; import { FormBuilder, FormControl, FormGroup, - ReactiveFormsModule + ReactiveFormsModule, } from '@angular/forms'; import { configSignal, DynamicConfigurableWithSignal, - O3rConfig + O3rConfig, } from '@o3r/configuration'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DynamicContentModule + DynamicContentModule, } from '@o3r/dynamic-content'; import { Localization, LocalizationModule, LocalizationService, - Translatable + Translatable, } from '@o3r/localization'; import { RulesEngineRunnerModule, - RulesEngineRunnerService + RulesEngineRunnerService, } from '@o3r/rules-engine'; import { - Subscription + Subscription, } from 'rxjs'; import { - TripFactsService + TripFactsService, } from '../../../facts/trip/trip.facts'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from '../../utilities'; import { RULES_ENGINE_PRES_CONFIG_ID, RULES_ENGINE_PRES_DEFAULT_CONFIG, - RulesEnginePresConfig + RulesEnginePresConfig, } from './rules-engine-pres.config'; import { RulesEnginePresTranslation, - translations + translations, } from './rules-engine-pres.translation'; const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000; diff --git a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.config.ts b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.config.ts index fb1936fd45..015dfc1abf 100644 --- a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.config.ts +++ b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.config.ts @@ -1,9 +1,9 @@ import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import type { Configuration, - NestedConfiguration + NestedConfiguration, } from '@o3r/core'; /** Configuration of a destination */ diff --git a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.spec.ts b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.spec.ts index b750a0ea1d..7f200fea12 100644 --- a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.spec.ts +++ b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.spec.ts @@ -1,34 +1,34 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { - Provider + Provider, } from '@angular/core'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { TranslateCompiler, - TranslateFakeCompiler + TranslateFakeCompiler, } from '@ngx-translate/core'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - RulesEngineRunnerModule + RulesEngineRunnerModule, } from '@o3r/rules-engine'; import { - mockTranslationModules + mockTranslationModules, } from '@o3r/testing/localization'; import { - RulesEnginePresComponent + RulesEnginePresComponent, } from './rules-engine-pres.component'; const localizationConfiguration = { language: 'en' }; diff --git a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.translation.ts b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.translation.ts index 8cb5c3d843..2c1f5d3cb2 100644 --- a/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.translation.ts +++ b/apps/showcase/src/components/showcase/rules-engine/rules-engine-pres.translation.ts @@ -1,5 +1,5 @@ import type { - Translation + Translation, } from '@o3r/core'; export interface RulesEnginePresTranslation extends Translation { diff --git a/apps/showcase/src/components/showcase/sdk/sdk-pres.component.ts b/apps/showcase/src/components/showcase/sdk/sdk-pres.component.ts index d60c6c7218..371a218314 100644 --- a/apps/showcase/src/components/showcase/sdk/sdk-pres.component.ts +++ b/apps/showcase/src/components/showcase/sdk/sdk-pres.component.ts @@ -4,35 +4,35 @@ import { computed, inject, signal, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import { - FormsModule + FormsModule, } from '@angular/forms'; import { - DfMedia + DfMedia, } from '@design-factory/design-factory'; import { NgbHighlight, NgbPagination, - NgbPaginationPages + NgbPaginationPages, } from '@ng-bootstrap/ng-bootstrap'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import type { - Pet + Pet, } from '@o3r-training/showcase-sdk'; import { PetApi, - Tag + Tag, } from '@o3r-training/showcase-sdk'; import { OtterIconPathPipe, - OtterPickerPresComponent + OtterPickerPresComponent, } from '../../utilities'; const FILTER_PAG_REGEX = /\D/g; diff --git a/apps/showcase/src/components/showcase/sdk/sdk-pres.spec.ts b/apps/showcase/src/components/showcase/sdk/sdk-pres.spec.ts index 5139828010..11c20084af 100644 --- a/apps/showcase/src/components/showcase/sdk/sdk-pres.spec.ts +++ b/apps/showcase/src/components/showcase/sdk/sdk-pres.spec.ts @@ -1,15 +1,15 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - PetApi + PetApi, } from '@o3r-training/showcase-sdk'; import { - PetApiFixture + PetApiFixture, } from '@o3r-training/showcase-sdk/fixtures'; import { - SdkPresComponent + SdkPresComponent, } from './sdk-pres.component'; import '@angular/localize/init'; diff --git a/apps/showcase/src/components/utilities/copy-text/copy-text-pres.component.ts b/apps/showcase/src/components/utilities/copy-text/copy-text-pres.component.ts index 8de48dd7d9..2286672307 100644 --- a/apps/showcase/src/components/utilities/copy-text/copy-text-pres.component.ts +++ b/apps/showcase/src/components/utilities/copy-text/copy-text-pres.component.ts @@ -1,19 +1,19 @@ import { Clipboard, - ClipboardModule + ClipboardModule, } from '@angular/cdk/clipboard'; import { ChangeDetectionStrategy, Component, inject, Input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - HighlightModule + HighlightModule, } from 'ngx-highlightjs'; @O3rComponent({ componentType: 'Component' }) diff --git a/apps/showcase/src/components/utilities/copy-text/copy-text-pres.spec.ts b/apps/showcase/src/components/utilities/copy-text/copy-text-pres.spec.ts index 7acbd776a1..4b5c8098ab 100644 --- a/apps/showcase/src/components/utilities/copy-text/copy-text-pres.spec.ts +++ b/apps/showcase/src/components/utilities/copy-text/copy-text-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - CopyTextPresComponent + CopyTextPresComponent, } from './copy-text-pres.component'; describe('CopyTextPresComponent', () => { diff --git a/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.component.ts b/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.component.ts index ce0dd62a4b..19e7d9d660 100644 --- a/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.component.ts +++ b/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.component.ts @@ -7,17 +7,17 @@ import { Pipe, type PipeTransform, signal, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { ControlValueAccessor, FormsModule, - NG_VALUE_ACCESSOR + NG_VALUE_ACCESSOR, } from '@angular/forms'; import { CloseInputDatePickerDirective, DfDatePickerModule, - DfInputIconDirective + DfInputIconDirective, } from '@design-factory/design-factory'; import { NgbCalendar, @@ -26,13 +26,13 @@ import { NgbDatepickerI18n, NgbDatepickerI18nHebrew, type NgbDateStruct, - NgbInputDatepicker + NgbInputDatepicker, } from '@ng-bootstrap/ng-bootstrap'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DatePickerInputHebrewPresContext + DatePickerInputHebrewPresContext, } from './date-picker-input-hebrew-pres.context'; @Pipe({ diff --git a/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.context.ts b/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.context.ts index 44a2ce4fd0..60cc177729 100644 --- a/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.context.ts +++ b/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.context.ts @@ -1,9 +1,9 @@ import type { - Context + Context, } from '@o3r/core'; import type { DatePickerInputPresContextInput, - DatePickerInputPresContextOutput + DatePickerInputPresContextOutput, } from '../date-picker-input/index'; /** diff --git a/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.spec.ts b/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.spec.ts index 32eb728c51..6e975f2b42 100644 --- a/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.spec.ts +++ b/apps/showcase/src/components/utilities/date-picker-input-hebrew/date-picker-input-hebrew-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - DatePickerHebrewInputPresComponent + DatePickerHebrewInputPresComponent, } from './date-picker-input-hebrew-pres.component'; describe('DatePickerHebrewInputPresComponent', () => { diff --git a/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.component.ts b/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.component.ts index c662f614fa..da7a1b4e8a 100644 --- a/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.component.ts +++ b/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.component.ts @@ -4,26 +4,26 @@ import { forwardRef, Input, signal, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { ControlValueAccessor, FormsModule, - NG_VALUE_ACCESSOR + NG_VALUE_ACCESSOR, } from '@angular/forms'; import { CloseInputDatePickerDirective, - DfInputIconDirective + DfInputIconDirective, } from '@design-factory/design-factory'; import { NgbDate, - NgbInputDatepicker + NgbInputDatepicker, } from '@ng-bootstrap/ng-bootstrap'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - DatePickerInputPresContext + DatePickerInputPresContext, } from './date-picker-input-pres.context'; @O3rComponent({ componentType: 'ExposedComponent' }) diff --git a/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.context.ts b/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.context.ts index 3d898a3cf0..c5054bd2d3 100644 --- a/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.context.ts +++ b/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.context.ts @@ -1,5 +1,5 @@ import type { - Context + Context, } from '@o3r/core'; /** diff --git a/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.spec.ts b/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.spec.ts index e50f2810a0..bb152c16bc 100644 --- a/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.spec.ts +++ b/apps/showcase/src/components/utilities/date-picker-input/date-picker-input-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - DatePickerInputPresComponent + DatePickerInputPresComponent, } from './date-picker-input-pres.component'; describe('DatePickerInputPresComponent', () => { diff --git a/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.component.ts b/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.component.ts index e303b18753..3db9acaf25 100644 --- a/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.component.ts +++ b/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.component.ts @@ -9,14 +9,14 @@ import { OnDestroy, SimpleChanges, ViewContainerRef, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { NgbScrollSpyModule, - NgbScrollSpyService + NgbScrollSpyService, } from '@ng-bootstrap/ng-bootstrap'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; export interface InPageNavLink { diff --git a/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.service.ts b/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.service.ts index 21de71fb95..d69bbfee50 100644 --- a/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.service.ts +++ b/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.service.ts @@ -1,7 +1,7 @@ import { Injectable, OnDestroy, - QueryList + QueryList, } from '@angular/core'; import { delay, @@ -10,10 +10,10 @@ import { startWith, Subject, Subscription, - switchMap + switchMap, } from 'rxjs'; import { - InPageNavLink + InPageNavLink, } from './in-page-nav-pres.component'; @Injectable({ diff --git a/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.spec.ts b/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.spec.ts index 2517714c0a..977af45dc3 100644 --- a/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.spec.ts +++ b/apps/showcase/src/components/utilities/in-page-nav/in-page-nav-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - InPageNavPresComponent + InPageNavPresComponent, } from './in-page-nav-pres.component'; describe('InPageNavPresComponent', () => { diff --git a/apps/showcase/src/components/utilities/otter-picker/otter-icon-path.pipe.ts b/apps/showcase/src/components/utilities/otter-picker/otter-icon-path.pipe.ts index 73785cf678..3d004e2203 100644 --- a/apps/showcase/src/components/utilities/otter-picker/otter-icon-path.pipe.ts +++ b/apps/showcase/src/components/utilities/otter-picker/otter-icon-path.pipe.ts @@ -1,10 +1,10 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { isOtterIcon, - OTTER_ICONS + OTTER_ICONS, } from './otter-icons'; @Pipe({ diff --git a/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.component.ts b/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.component.ts index b4c41a865d..ea6d453e6a 100644 --- a/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.component.ts +++ b/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.component.ts @@ -4,20 +4,20 @@ import { forwardRef, Input, signal, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { ControlValueAccessor, - NG_VALUE_ACCESSOR + NG_VALUE_ACCESSOR, } from '@angular/forms'; import { - NgbDropdownModule + NgbDropdownModule, } from '@ng-bootstrap/ng-bootstrap'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { - OTTER_ICONS + OTTER_ICONS, } from './otter-icons'; @O3rComponent({ componentType: 'Component' }) diff --git a/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.spec.ts b/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.spec.ts index fe202cea5e..f4c3cf9f41 100644 --- a/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.spec.ts +++ b/apps/showcase/src/components/utilities/otter-picker/otter-picker-pres.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - OtterPickerPresComponent + OtterPickerPresComponent, } from './otter-picker-pres.component'; describe('OtterPickerPresComponent', () => { diff --git a/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.component.ts b/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.component.ts index 60cad2ea33..785cd2e734 100644 --- a/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.component.ts +++ b/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.component.ts @@ -1,23 +1,23 @@ import { AsyncPipe, DOCUMENT, - ViewportScroller + ViewportScroller, } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - takeUntilDestroyed + takeUntilDestroyed, } from '@angular/core/rxjs-interop'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; import { fromEvent, - map + map, } from 'rxjs'; @O3rComponent({ componentType: 'Component' }) diff --git a/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.spec.ts b/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.spec.ts index 736db12fd7..6072648444 100644 --- a/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.spec.ts +++ b/apps/showcase/src/components/utilities/scroll-back-top/scroll-back-top-pres.spec.ts @@ -1,12 +1,12 @@ import { - AsyncPipe + AsyncPipe, } from '@angular/common'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - ScrollBackTopPresComponent + ScrollBackTopPresComponent, } from './scroll-back-top-pres.component'; describe('ScrollBackTopPresComponent', () => { diff --git a/apps/showcase/src/components/utilities/sidenav/sidenav-pres.component.ts b/apps/showcase/src/components/utilities/sidenav/sidenav-pres.component.ts index 9c760ac12e..3708258193 100644 --- a/apps/showcase/src/components/utilities/sidenav/sidenav-pres.component.ts +++ b/apps/showcase/src/components/utilities/sidenav/sidenav-pres.component.ts @@ -2,13 +2,13 @@ import { ChangeDetectionStrategy, Component, Input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - RouterModule + RouterModule, } from '@angular/router'; import { - O3rComponent + O3rComponent, } from '@o3r/core'; /** Link information */ diff --git a/apps/showcase/src/components/utilities/sidenav/sidenav-pres.fixture.ts b/apps/showcase/src/components/utilities/sidenav/sidenav-pres.fixture.ts index ac4f31a412..44437cde7c 100644 --- a/apps/showcase/src/components/utilities/sidenav/sidenav-pres.fixture.ts +++ b/apps/showcase/src/components/utilities/sidenav/sidenav-pres.fixture.ts @@ -1,6 +1,6 @@ import { ComponentFixtureProfile, - O3rComponentFixture + O3rComponentFixture, } from '@o3r/testing/core'; /** diff --git a/apps/showcase/src/components/utilities/sidenav/sidenav-pres.spec.ts b/apps/showcase/src/components/utilities/sidenav/sidenav-pres.spec.ts index 4703f0c7a9..a12e593356 100644 --- a/apps/showcase/src/components/utilities/sidenav/sidenav-pres.spec.ts +++ b/apps/showcase/src/components/utilities/sidenav/sidenav-pres.spec.ts @@ -1,15 +1,15 @@ import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - O3rElement + O3rElement, } from '@o3r/testing/core'; import { - SidenavPresComponent + SidenavPresComponent, } from './sidenav-pres.component'; import { - SidenavPresFixtureComponent + SidenavPresFixtureComponent, } from './sidenav-pres.fixture'; let componentFixture: SidenavPresFixtureComponent; diff --git a/apps/showcase/src/facts/trip/trip.facts.ts b/apps/showcase/src/facts/trip/trip.facts.ts index 8d04839504..73fc5b3273 100644 --- a/apps/showcase/src/facts/trip/trip.facts.ts +++ b/apps/showcase/src/facts/trip/trip.facts.ts @@ -1,14 +1,14 @@ import { - Injectable + Injectable, } from '@angular/core'; import { FactDefinitions, FactsService, - RulesEngineRunnerService + RulesEngineRunnerService, } from '@o3r/rules-engine'; import { BehaviorSubject, - distinctUntilChanged + distinctUntilChanged, } from 'rxjs'; /** Facts for a trip */ diff --git a/apps/showcase/src/main.ts b/apps/showcase/src/main.ts index 7eaebd3703..d3492316d8 100644 --- a/apps/showcase/src/main.ts +++ b/apps/showcase/src/main.ts @@ -1,34 +1,34 @@ import { inject, - runInInjectionContext + runInInjectionContext, } from '@angular/core'; import { - platformBrowserDynamic + platformBrowserDynamic, } from '@angular/platform-browser-dynamic'; import { ApplicationDevtoolsConsoleService, - ApplicationDevtoolsMessageService + ApplicationDevtoolsMessageService, } from '@o3r/application'; import { - ComponentsDevtoolsMessageService + ComponentsDevtoolsMessageService, } from '@o3r/components'; import { ConfigurationDevtoolsConsoleService, - ConfigurationDevtoolsMessageService + ConfigurationDevtoolsMessageService, } from '@o3r/configuration'; import { LocalizationDevtoolsConsoleService, - LocalizationDevtoolsMessageService + LocalizationDevtoolsMessageService, } from '@o3r/localization'; import { RulesEngineDevtoolsConsoleService, - RulesEngineDevtoolsMessageService + RulesEngineDevtoolsMessageService, } from '@o3r/rules-engine'; import { - StylingDevtoolsMessageService + StylingDevtoolsMessageService, } from '@o3r/styling'; import { - AppModule + AppModule, } from './app/app.module'; import '@angular/localize/init'; diff --git a/apps/showcase/src/operators/during-summer/during-summer.operator.ts b/apps/showcase/src/operators/during-summer/during-summer.operator.ts index 83189b1c65..bcca7c1cc6 100644 --- a/apps/showcase/src/operators/during-summer/during-summer.operator.ts +++ b/apps/showcase/src/operators/during-summer/during-summer.operator.ts @@ -1,7 +1,7 @@ import { DateInput, inRangeDate, - UnaryOperator + UnaryOperator, } from '@o3r/rules-engine'; /** diff --git a/apps/showcase/src/services/webcontainer/webcontainer-runner.ts b/apps/showcase/src/services/webcontainer/webcontainer-runner.ts index bbfea84938..86b678a41d 100644 --- a/apps/showcase/src/services/webcontainer/webcontainer-runner.ts +++ b/apps/showcase/src/services/webcontainer/webcontainer-runner.ts @@ -1,17 +1,17 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - takeUntilDestroyed + takeUntilDestroyed, } from '@angular/core/rxjs-interop'; import { type FileSystemTree, type IFSWatcher, WebContainer, - type WebContainerProcess + type WebContainerProcess, } from '@webcontainer/api'; import { - Terminal + Terminal, } from '@xterm/xterm'; import { BehaviorSubject, @@ -21,16 +21,16 @@ import { from, map, Observable, - switchMap + switchMap, } from 'rxjs'; import { - withLatestFrom + withLatestFrom, } from 'rxjs/operators'; import { createTerminalStream, doesFolderExist, killTerminal, - makeProcessWritable + makeProcessWritable, } from './webcontainer.helpers'; @Injectable({ diff --git a/apps/showcase/src/services/webcontainer/webcontainer.helpers.ts b/apps/showcase/src/services/webcontainer/webcontainer.helpers.ts index 8ae1a6f25f..7c906375b5 100644 --- a/apps/showcase/src/services/webcontainer/webcontainer.helpers.ts +++ b/apps/showcase/src/services/webcontainer/webcontainer.helpers.ts @@ -1,21 +1,21 @@ import { FileSystem, - getFilesTree + getFilesTree, } from '@o3r-training/training-tools'; import { type DirectoryNode, type FileSystemTree, WebContainer, - WebContainerProcess + WebContainerProcess, } from '@webcontainer/api'; import { - Terminal + Terminal, } from '@xterm/xterm'; import { - MonacoTreeElement + MonacoTreeElement, } from 'ngx-monaco-tree'; import { - BehaviorSubject + BehaviorSubject, } from 'rxjs'; /** diff --git a/apps/showcase/src/services/webcontainer/webcontainer.service.ts b/apps/showcase/src/services/webcontainer/webcontainer.service.ts index 01648ed827..984ddd1796 100644 --- a/apps/showcase/src/services/webcontainer/webcontainer.service.ts +++ b/apps/showcase/src/services/webcontainer/webcontainer.service.ts @@ -1,25 +1,25 @@ import { inject, - Injectable + Injectable, } from '@angular/core'; import { - FileSystemTree + FileSystemTree, } from '@webcontainer/api'; import { - MonacoTreeElement + MonacoTreeElement, } from 'ngx-monaco-tree'; import { BehaviorSubject, distinctUntilChanged, map, - share + share, } from 'rxjs'; import { - WebContainerRunner + WebContainerRunner, } from './webcontainer-runner'; import { convertTreeRec, - getFilesTreeFromContainer + getFilesTreeFromContainer, } from './webcontainer.helpers'; /** List of files or directories to exclude from the file tree */ diff --git a/apps/vscode-extension/eslint.local.config.mjs b/apps/vscode-extension/eslint.local.config.mjs index f7583c2a18..3d7850d712 100644 --- a/apps/vscode-extension/eslint.local.config.mjs +++ b/apps/vscode-extension/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import nxPlugin from '@nx/eslint-plugin'; import globals from 'globals'; diff --git a/apps/vscode-extension/src/commands/extract/styling/extract-all-to-variable.command.ts b/apps/vscode-extension/src/commands/extract/styling/extract-all-to-variable.command.ts index 25fca50e00..5d489f3134 100644 --- a/apps/vscode-extension/src/commands/extract/styling/extract-all-to-variable.command.ts +++ b/apps/vscode-extension/src/commands/extract/styling/extract-all-to-variable.command.ts @@ -1,17 +1,17 @@ import { - EOL + EOL, } from 'node:os'; import { ExtensionContext, Position, Range, TextEditor, - window + window, } from 'vscode'; import { generateVariableName, insertVariable, - isPropertyValue + isPropertyValue, } from './helpers/utils.helper'; /** diff --git a/apps/vscode-extension/src/commands/extract/styling/extract-to-variable.command.ts b/apps/vscode-extension/src/commands/extract/styling/extract-to-variable.command.ts index 6cadac2017..7218575712 100644 --- a/apps/vscode-extension/src/commands/extract/styling/extract-to-variable.command.ts +++ b/apps/vscode-extension/src/commands/extract/styling/extract-to-variable.command.ts @@ -1,16 +1,16 @@ import { - EOL + EOL, } from 'node:os'; import { ExtensionContext, Range, TextEditor, - window + window, } from 'vscode'; import { generateVariableName, insertVariable, - isPropertyValue + isPropertyValue, } from './helpers/utils.helper'; /** * Extract a single prop/value scss line to an otter variable diff --git a/apps/vscode-extension/src/commands/extract/styling/helpers/utils.helper.ts b/apps/vscode-extension/src/commands/extract/styling/helpers/utils.helper.ts index 8173101526..c3d073314c 100644 --- a/apps/vscode-extension/src/commands/extract/styling/helpers/utils.helper.ts +++ b/apps/vscode-extension/src/commands/extract/styling/helpers/utils.helper.ts @@ -1,8 +1,8 @@ import { - EOL + EOL, } from 'node:os'; import { - basename + basename, } from 'node:path'; import { Position, @@ -10,11 +10,11 @@ import { TextDocument, TextEditorEdit, TextLine, - workspace + workspace, } from 'vscode'; import * as vscode from 'vscode'; import { - regExp + regExp, } from './regex.helper'; /** diff --git a/apps/vscode-extension/src/commands/generate/component.command.ts b/apps/vscode-extension/src/commands/generate/component.command.ts index 523c4e78dc..ef382c091e 100644 --- a/apps/vscode-extension/src/commands/generate/component.command.ts +++ b/apps/vscode-extension/src/commands/generate/component.command.ts @@ -1,12 +1,12 @@ import type { - ExtensionContext + ExtensionContext, } from 'vscode'; import * as vscode from 'vscode'; import { getCurrentFolder, getPackageScriptRunner, getSchematicDefaultOptions, - stringifyOptions + stringifyOptions, } from '../helpers'; /** diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/analytics-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/analytics-to-component.commands.ts index 1f0927196c..b0c1f57c41 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/analytics-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/analytics-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddAnalyticsToComponentCommand = findPathAndExecuteSchematic('@o3r/analytics:analytics-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/common.ts b/apps/vscode-extension/src/commands/generate/enrich-component/common.ts index 157fd15e77..91f510353b 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/common.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/common.ts @@ -1,11 +1,11 @@ import { - relative + relative, } from 'node:path'; import * as vscode from 'vscode'; import { getPackageScriptRunner, getSchematicDefaultOptions, - stringifyOptions + stringifyOptions, } from '../../helpers'; const executeSchematic = async (componentPath: string, schematicName: string, getExtraOptions: () => Promise = () => Promise.resolve([])) => { diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/configuration-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/configuration-to-component.commands.ts index 7d814a1278..a72cb75215 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/configuration-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/configuration-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddConfigurationToComponentCommand = findPathAndExecuteSchematic('@o3r/configuration:configuration-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/context-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/context-to-component.commands.ts index d7e40b877f..7faeb10636 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/context-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/context-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddContextToComponentCommand = findPathAndExecuteSchematic('@o3r/core:context-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/convert-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/convert-component.commands.ts index ce9e245d81..e1999301c1 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/convert-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/convert-component.commands.ts @@ -1,6 +1,6 @@ import * as vscode from 'vscode'; import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; const getExtraOptions = async () => { diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/fixture-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/fixture-to-component.commands.ts index a3cd9d575e..bfa00cef5f 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/fixture-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/fixture-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddFixtureToComponentCommand = findPathAndExecuteSchematic('@o3r/testing:fixture-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/iframe-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/iframe-to-component.commands.ts index 9a68fdef0b..c629763011 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/iframe-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/iframe-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddIframeToComponentCommand = findPathAndExecuteSchematic('@o3r/third-party:iframe-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/localization-key-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/localization-key-to-component.commands.ts index 02d42707be..2b53b73441 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/localization-key-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/localization-key-to-component.commands.ts @@ -1,9 +1,9 @@ import { - relative + relative, } from 'node:path'; import * as vscode from 'vscode'; import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; const getExtraOptions = async (): Promise => { diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/localization-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/localization-to-component.commands.ts index ca3aeeade5..758ec93116 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/localization-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/localization-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddLocalizationToComponentCommand = findPathAndExecuteSchematic('@o3r/localization:localization-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/rules-engine-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/rules-engine-to-component.commands.ts index 77d3b944a9..ee8c41d672 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/rules-engine-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/rules-engine-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddRulesEngineToComponentCommand = findPathAndExecuteSchematic('@o3r/rules-engine:rules-engine-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/enrich-component/theming-to-component.commands.ts b/apps/vscode-extension/src/commands/generate/enrich-component/theming-to-component.commands.ts index 3a369f031a..6c549b58fe 100644 --- a/apps/vscode-extension/src/commands/generate/enrich-component/theming-to-component.commands.ts +++ b/apps/vscode-extension/src/commands/generate/enrich-component/theming-to-component.commands.ts @@ -1,5 +1,5 @@ import { - findPathAndExecuteSchematic + findPathAndExecuteSchematic, } from './common'; export const generateAddThemingToComponentCommand = findPathAndExecuteSchematic('@o3r/styling:theming-to-component'); diff --git a/apps/vscode-extension/src/commands/generate/fixture.command.ts b/apps/vscode-extension/src/commands/generate/fixture.command.ts index 716298c760..1a8e90d182 100644 --- a/apps/vscode-extension/src/commands/generate/fixture.command.ts +++ b/apps/vscode-extension/src/commands/generate/fixture.command.ts @@ -1,11 +1,11 @@ import type { - ExtensionContext + ExtensionContext, } from 'vscode'; import * as vscode from 'vscode'; import { getPackageScriptRunner, getSchematicDefaultOptions, - stringifyOptions + stringifyOptions, } from '../helpers'; const availableMethods: string[] = [ diff --git a/apps/vscode-extension/src/commands/generate/module.command.ts b/apps/vscode-extension/src/commands/generate/module.command.ts index 295960b4bd..424b9f268a 100644 --- a/apps/vscode-extension/src/commands/generate/module.command.ts +++ b/apps/vscode-extension/src/commands/generate/module.command.ts @@ -1,16 +1,16 @@ import { dirname, relative, - resolve + resolve, } from 'node:path'; import type { - ExtensionContext + ExtensionContext, } from 'vscode'; import * as vscode from 'vscode'; import { getPackageScriptRunner, getSchematicDefaultOptions, - stringifyOptions + stringifyOptions, } from '../helpers'; const getCurrentFolder = () => { diff --git a/apps/vscode-extension/src/commands/generate/service.command.ts b/apps/vscode-extension/src/commands/generate/service.command.ts index e56c996b5b..0b9704b84a 100644 --- a/apps/vscode-extension/src/commands/generate/service.command.ts +++ b/apps/vscode-extension/src/commands/generate/service.command.ts @@ -1,15 +1,15 @@ import { dirname, - relative + relative, } from 'node:path'; import type { - ExtensionContext + ExtensionContext, } from 'vscode'; import * as vscode from 'vscode'; import { getPackageScriptRunner, getSchematicDefaultOptions, - stringifyOptions + stringifyOptions, } from '../helpers'; const getCurrentFolder = () => { diff --git a/apps/vscode-extension/src/commands/generate/store.command.ts b/apps/vscode-extension/src/commands/generate/store.command.ts index a57beac77e..88d60d9ba2 100644 --- a/apps/vscode-extension/src/commands/generate/store.command.ts +++ b/apps/vscode-extension/src/commands/generate/store.command.ts @@ -1,15 +1,15 @@ import { dirname, - relative + relative, } from 'node:path'; import type { - ExtensionContext + ExtensionContext, } from 'vscode'; import * as vscode from 'vscode'; import { getPackageScriptRunner, getSchematicDefaultOptions, - stringifyOptions + stringifyOptions, } from '../helpers'; const getCurrentFolder = () => { diff --git a/apps/vscode-extension/src/commands/helpers.ts b/apps/vscode-extension/src/commands/helpers.ts index dd1092a0de..5c831d2eac 100644 --- a/apps/vscode-extension/src/commands/helpers.ts +++ b/apps/vscode-extension/src/commands/helpers.ts @@ -1,14 +1,14 @@ import { - lstatSync + lstatSync, } from 'node:fs'; import { basename, dirname, posix, - relative + relative, } from 'node:path'; import type { - WorkspaceSchema + WorkspaceSchema, } from '@o3r/schematics'; import * as vscode from 'vscode'; diff --git a/apps/vscode-extension/src/commands/module/add-module.command.ts b/apps/vscode-extension/src/commands/module/add-module.command.ts index 2596a64423..a34aa1b4e5 100644 --- a/apps/vscode-extension/src/commands/module/add-module.command.ts +++ b/apps/vscode-extension/src/commands/module/add-module.command.ts @@ -1,24 +1,24 @@ import type { - IncomingMessage + IncomingMessage, } from 'node:http'; import { - get + get, } from 'node:https'; import { - posix + posix, } from 'node:path'; import type { NpmRegistryPackage, NPMRegistrySearchResponse, OTTER_MODULE_KEYWORD as OTTER_MODULE_KEYWORD_TYPE, - OTTER_MODULE_SUPPORTED_SCOPES as OTTER_MODULE_SUPPORTED_SCOPES_TYPE + OTTER_MODULE_SUPPORTED_SCOPES as OTTER_MODULE_SUPPORTED_SCOPES_TYPE, } from '@o3r/schematics'; import * as vscode from 'vscode'; import type { - ExtensionContext + ExtensionContext, } from 'vscode'; import { - getPackageScriptRunner + getPackageScriptRunner, } from '../helpers'; // TODO: Remove this workaround when #362 is implemented diff --git a/apps/vscode-extension/src/extension.ts b/apps/vscode-extension/src/extension.ts index 96e14aa7e9..ea363dee0e 100644 --- a/apps/vscode-extension/src/extension.ts +++ b/apps/vscode-extension/src/extension.ts @@ -1,16 +1,16 @@ import { commands, ExtensionContext, - languages + languages, } from 'vscode'; import { - extractAllToVariable + extractAllToVariable, } from './commands/extract/styling/extract-all-to-variable.command'; import { - extractToVariable + extractToVariable, } from './commands/extract/styling/extract-to-variable.command'; import { - generateComponentGenerateCommand + generateComponentGenerateCommand, } from './commands/generate/component.command'; import { generateAddAnalyticsToComponentCommand, @@ -22,36 +22,36 @@ import { generateAddLocalizationToComponentCommand, generateAddRulesEngineToComponentCommand, generateAddThemingToComponentCommand, - generateConvertComponentCommand + generateConvertComponentCommand, } from './commands/generate/enrich-component'; import { - generateFixtureGenerateCommand + generateFixtureGenerateCommand, } from './commands/generate/fixture.command'; import { - generateModuleGenerateCommand + generateModuleGenerateCommand, } from './commands/generate/module.command'; import { - generateServiceGenerateCommand + generateServiceGenerateCommand, } from './commands/generate/service.command'; import { - generateStoreGenerateCommand + generateStoreGenerateCommand, } from './commands/generate/store.command'; import { - wrapCommandWhenExplorerContext + wrapCommandWhenExplorerContext, } from './commands/helpers'; import { - generateModuleAddCommand + generateModuleAddCommand, } from './commands/module/add-module.command'; import { configurationCompletionItemProvider, - configurationCompletionTriggerChar + configurationCompletionTriggerChar, } from './intellisense/configuration'; import { - designTokenCompletionItemAndHoverProviders + designTokenCompletionItemAndHoverProviders, } from './intellisense/design-token'; import { stylingCompletionItemProvider, - stylingCompletionTriggerChar + stylingCompletionTriggerChar, } from './intellisense/styling'; /** diff --git a/apps/vscode-extension/src/intellisense/configuration.ts b/apps/vscode-extension/src/intellisense/configuration.ts index cd2f81afc7..908b85179e 100644 --- a/apps/vscode-extension/src/intellisense/configuration.ts +++ b/apps/vscode-extension/src/intellisense/configuration.ts @@ -1,18 +1,18 @@ import type { O3rCategoriesTagsRuleOption, - O3rWidgetTagsRuleOption + O3rWidgetTagsRuleOption, } from '@o3r/eslint-plugin'; import type { - TSESLint + TSESLint, } from '@typescript-eslint/utils'; import { - ESLint + ESLint, } from 'eslint'; import { CompletionItem, CompletionItemKind, CompletionItemProvider, - SnippetString + SnippetString, } from 'vscode'; interface ConfigurationTags { diff --git a/apps/vscode-extension/src/intellisense/design-token.ts b/apps/vscode-extension/src/intellisense/design-token.ts index 2d557edba9..baec61c3dc 100644 --- a/apps/vscode-extension/src/intellisense/design-token.ts +++ b/apps/vscode-extension/src/intellisense/design-token.ts @@ -3,13 +3,13 @@ import { type DesignTokenVariableSet, type DesignTokenVariableStructure, getCssTokenValueRenderer, - parseDesignTokenFile + parseDesignTokenFile, } from '@o3r/design'; import { CompletionItem, CompletionItemKind, CompletionItemProvider, - HoverProvider + HoverProvider, } from 'vscode'; import * as vscode from 'vscode'; diff --git a/apps/vscode-extension/src/intellisense/styling.ts b/apps/vscode-extension/src/intellisense/styling.ts index ad750bbea5..5950f88ba0 100644 --- a/apps/vscode-extension/src/intellisense/styling.ts +++ b/apps/vscode-extension/src/intellisense/styling.ts @@ -3,7 +3,7 @@ import { CompletionItemKind, CompletionItemProvider, SnippetString, - workspace + workspace, } from 'vscode'; const importStyling = /@use '@o3r\/styling'( as (?\w+))?;/; diff --git a/eslint.shared.config.mjs b/eslint.shared.config.mjs index a60ba8bb29..6e82bfa293 100644 --- a/eslint.shared.config.mjs +++ b/eslint.shared.config.mjs @@ -178,16 +178,6 @@ export default [ ] } }, - { - name: '@o3r/framework/disabled-for-discussion', - files: ['**/*.{c,m,}{t,j}s'], - rules: { - '@stylistic/comma-dangle': 'off', - '@stylistic/quote-props': 'off', - 'jsdoc/require-param-description': 'off', - 'unicorn/no-await-expression-member': 'off' - } - }, { name: '@o3r/framework/warn-until-migration-completed', files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'], diff --git a/packages/@ama-sdk/client-angular/eslint.local.config.mjs b/packages/@ama-sdk/client-angular/eslint.local.config.mjs index 24aaf7c706..0b8fdb82e8 100644 --- a/packages/@ama-sdk/client-angular/eslint.local.config.mjs +++ b/packages/@ama-sdk/client-angular/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@ama-sdk/client-angular/schematics/ng-add/index.ts b/packages/@ama-sdk/client-angular/schematics/ng-add/index.ts index 73c20d45b7..18234518b1 100644 --- a/packages/@ama-sdk/client-angular/schematics/ng-add/index.ts +++ b/packages/@ama-sdk/client-angular/schematics/ng-add/index.ts @@ -2,16 +2,16 @@ import * as path from 'node:path'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { - mapMigrationFromCoreImports + mapMigrationFromCoreImports, } from './migration/import-map'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const devDependenciesToInstall: string[] = [ diff --git a/packages/@ama-sdk/client-angular/schematics/ng-add/schema.ts b/packages/@ama-sdk/client-angular/schematics/ng-add/schema.ts index e2c067effb..867dbc2184 100644 --- a/packages/@ama-sdk/client-angular/schematics/ng-add/schema.ts +++ b/packages/@ama-sdk/client-angular/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/client-angular/src/angular-plugin.ts b/packages/@ama-sdk/client-angular/src/angular-plugin.ts index 364e02e156..c7b9299bec 100644 --- a/packages/@ama-sdk/client-angular/src/angular-plugin.ts +++ b/packages/@ama-sdk/client-angular/src/angular-plugin.ts @@ -1,13 +1,13 @@ import type { ApiClient, PluginContext, - RequestOptions + RequestOptions, } from '@ama-sdk/core'; import type { - HttpResponse + HttpResponse, } from '@angular/common/http'; import type { - Observable + Observable, } from 'rxjs'; /** diff --git a/packages/@ama-sdk/client-angular/src/api-angular-client.ts b/packages/@ama-sdk/client-angular/src/api-angular-client.ts index 44c63f8a3a..e9dc846498 100644 --- a/packages/@ama-sdk/client-angular/src/api-angular-client.ts +++ b/packages/@ama-sdk/client-angular/src/api-angular-client.ts @@ -6,7 +6,7 @@ import type { RequestOptions, RequestOptionsParameters, ReviverType, - TokenizedOptions + TokenizedOptions, } from '@ama-sdk/core'; import { EmptyResponseError, @@ -17,16 +17,16 @@ import { prepareUrl, processFormData, ReviverReply, - tokenizeRequestOptions + tokenizeRequestOptions, } from '@ama-sdk/core'; import type { HttpClient, - HttpResponse + HttpResponse, } from '@angular/common/http'; import type { AngularCall, AngularPlugin, - PluginObservableRunner + PluginObservableRunner, } from './angular-plugin'; /** @see BaseApiClientOptions */ diff --git a/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.angular.ts b/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.angular.ts index f2d0ab3dd0..d2bf3ca34a 100644 --- a/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.angular.ts +++ b/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.angular.ts @@ -1,23 +1,23 @@ import { CUSTOM_MOCK_OPERATION_ID_HEADER, - MockInterceptRequest + MockInterceptRequest, } from '@ama-sdk/core'; import { - HttpResponse + HttpResponse, } from '@angular/common/http'; import { delay, from, - mergeMap + mergeMap, } from 'rxjs'; import type { AngularCall, AngularPlugin, AngularPluginContext, - PluginObservableRunner + PluginObservableRunner, } from '../../angular-plugin'; import type { - MockInterceptAngularParameters + MockInterceptAngularParameters, } from './mock-intercept.interface'; /** diff --git a/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.interface.ts b/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.interface.ts index f13facd26e..965128f2d6 100644 --- a/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.interface.ts +++ b/packages/@ama-sdk/client-angular/src/plugins/mock-intercept/mock-intercept.interface.ts @@ -1,8 +1,8 @@ import type { - MockAdapter + MockAdapter, } from '@ama-sdk/core'; import type { - AngularPluginContext + AngularPluginContext, } from '../../angular-plugin'; /** diff --git a/packages/@ama-sdk/client-beacon/eslint.local.config.mjs b/packages/@ama-sdk/client-beacon/eslint.local.config.mjs index 0b51ae6084..6e8762f8ff 100644 --- a/packages/@ama-sdk/client-beacon/eslint.local.config.mjs +++ b/packages/@ama-sdk/client-beacon/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@ama-sdk/client-beacon/schematics/ng-add/index.ts b/packages/@ama-sdk/client-beacon/schematics/ng-add/index.ts index 1276e6b988..8e079c87a9 100644 --- a/packages/@ama-sdk/client-beacon/schematics/ng-add/index.ts +++ b/packages/@ama-sdk/client-beacon/schematics/ng-add/index.ts @@ -2,16 +2,16 @@ import * as path from 'node:path'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { - mapMigrationFromCoreImports + mapMigrationFromCoreImports, } from './migration/import-map'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const devDependenciesToInstall: string[] = [ diff --git a/packages/@ama-sdk/client-beacon/schematics/ng-add/schema.ts b/packages/@ama-sdk/client-beacon/schematics/ng-add/schema.ts index e2c067effb..867dbc2184 100644 --- a/packages/@ama-sdk/client-beacon/schematics/ng-add/schema.ts +++ b/packages/@ama-sdk/client-beacon/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/client-beacon/src/api-beacon-client.ts b/packages/@ama-sdk/client-beacon/src/api-beacon-client.ts index 392600d7c1..b81c94b1ea 100644 --- a/packages/@ama-sdk/client-beacon/src/api-beacon-client.ts +++ b/packages/@ama-sdk/client-beacon/src/api-beacon-client.ts @@ -5,14 +5,14 @@ import type { PartialExcept, RequestOptions, RequestOptionsParameters, - TokenizedOptions + TokenizedOptions, } from '@ama-sdk/core'; import { extractQueryParams, filterUndefinedValues, prepareUrl, processFormData, - tokenizeRequestOptions + tokenizeRequestOptions, } from '@ama-sdk/core'; /** @see BaseApiClientOptions */ diff --git a/packages/@ama-sdk/client-fetch/eslint.local.config.mjs b/packages/@ama-sdk/client-fetch/eslint.local.config.mjs index 558be18f91..f1e5483ab2 100644 --- a/packages/@ama-sdk/client-fetch/eslint.local.config.mjs +++ b/packages/@ama-sdk/client-fetch/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@ama-sdk/client-fetch/schematics/ng-add/index.ts b/packages/@ama-sdk/client-fetch/schematics/ng-add/index.ts index 34b022f5de..4b2fb45126 100644 --- a/packages/@ama-sdk/client-fetch/schematics/ng-add/index.ts +++ b/packages/@ama-sdk/client-fetch/schematics/ng-add/index.ts @@ -2,16 +2,16 @@ import * as path from 'node:path'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { - mapMigrationFromCoreImports + mapMigrationFromCoreImports, } from './migration/import-map'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const devDependenciesToInstall: string[] = [ diff --git a/packages/@ama-sdk/client-fetch/schematics/ng-add/schema.ts b/packages/@ama-sdk/client-fetch/schematics/ng-add/schema.ts index e2c067effb..867dbc2184 100644 --- a/packages/@ama-sdk/client-fetch/schematics/ng-add/schema.ts +++ b/packages/@ama-sdk/client-fetch/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/client-fetch/src/api-fetch-client.ts b/packages/@ama-sdk/client-fetch/src/api-fetch-client.ts index 7f7538e464..4650cdf58d 100644 --- a/packages/@ama-sdk/client-fetch/src/api-fetch-client.ts +++ b/packages/@ama-sdk/client-fetch/src/api-fetch-client.ts @@ -7,7 +7,7 @@ import type { RequestOptions, RequestOptionsParameters, ReviverType, - TokenizedOptions + TokenizedOptions, } from '@ama-sdk/core'; import { CanceledCallError, @@ -20,12 +20,12 @@ import { processFormData, ResponseJSONParseError, ReviverReply, - tokenizeRequestOptions + tokenizeRequestOptions, } from '@ama-sdk/core'; import type { FetchCall, FetchPlugin, - PluginAsyncStarter + PluginAsyncStarter, } from './fetch-plugin'; /** @see BaseApiClientOptions */ diff --git a/packages/@ama-sdk/client-fetch/src/fetch-plugin.ts b/packages/@ama-sdk/client-fetch/src/fetch-plugin.ts index 4b91ff2c56..2c1cc95fd8 100644 --- a/packages/@ama-sdk/client-fetch/src/fetch-plugin.ts +++ b/packages/@ama-sdk/client-fetch/src/fetch-plugin.ts @@ -3,7 +3,7 @@ import type { Plugin, PluginAsyncRunner, PluginContext, - RequestOptions + RequestOptions, } from '@ama-sdk/core'; /** Fetch Call Response type */ diff --git a/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.fetch.ts index 5b8a3e71e3..f91001271c 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.fetch.ts @@ -1,10 +1,10 @@ import type { - RequestOptions + RequestOptions, } from '@ama-sdk/core'; import type { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; interface AbortCallbackParameters { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.spec.ts index f784b7921d..171a3d9f85 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/abort/abort.spec.ts @@ -1,5 +1,5 @@ import { - AbortFetch + AbortFetch, } from './abort.fetch'; describe('Abort Plugin', () => { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.fetch.ts index 8b626b3dc0..acc6dba085 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.fetch.ts @@ -1,7 +1,7 @@ import { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; /** diff --git a/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.spec.ts index d86dbb3b1e..2d93379ece 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/concurrent/concurrent.spec.ts @@ -1,5 +1,5 @@ import { - ConcurrentFetch + ConcurrentFetch, } from './concurrent.fetch'; describe('Concurrent Fetch Plugin', () => { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.request.ts b/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.request.ts index 8f26977279..df0f4f03b5 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.request.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '@ama-sdk/core'; /** diff --git a/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.spec.ts index f9c0184040..0d05c7e0ee 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/keepalive/keepalive.spec.ts @@ -1,8 +1,8 @@ import type { - RequestOptions + RequestOptions, } from '@ama-sdk/core'; import { - KeepaliveRequest + KeepaliveRequest, } from './keepalive.request'; describe('Keepalive Request Plugin', () => { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.fetch.ts index 13fd8adcac..16013a4131 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.fetch.ts @@ -1,18 +1,18 @@ import type { - PluginAsyncRunner + PluginAsyncRunner, } from '@ama-sdk/core'; import { CUSTOM_MOCK_OPERATION_ID_HEADER, - MockInterceptRequest + MockInterceptRequest, } from '@ama-sdk/core'; import type { FetchCall, FetchPlugin, FetchPluginContext, - PluginAsyncStarter + PluginAsyncStarter, } from '../../fetch-plugin'; import { - MockInterceptFetchParameters + MockInterceptFetchParameters, } from './mock-intercept.interface'; /** diff --git a/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.interface.ts b/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.interface.ts index bc6df4d43a..6a469392ef 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.interface.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.interface.ts @@ -1,8 +1,8 @@ import type { - MockAdapter + MockAdapter, } from '@ama-sdk/core'; import type { - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; /** Mock Fetch Plugin options */ diff --git a/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.spec.ts index 97bde69361..623f84712a 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/mock-intercept/mock-intercept.spec.ts @@ -7,10 +7,10 @@ import { MockInterceptRequest, RequestOptions, RequestPlugin, - SequentialMockAdapter + SequentialMockAdapter, } from '@ama-sdk/core'; import { - MockInterceptFetch + MockInterceptFetch, } from './mock-intercept.fetch'; const testMock: Mock = { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.fetch.ts index 375c9cf32f..44b362e2d1 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.fetch.ts @@ -1,10 +1,10 @@ import { - v4 + v4, } from 'uuid'; import type { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; /** diff --git a/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.probe.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.probe.spec.ts index e373221eb6..a3fe5aa01a 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.probe.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/perf-metric/perf-metric.probe.spec.ts @@ -1,5 +1,5 @@ import { - PerformanceMetricPlugin + PerformanceMetricPlugin, } from './perf-metric.fetch'; let perfPlugin: PerformanceMetricPlugin; diff --git a/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.fetch.ts index c933873e0b..95e613abcc 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.fetch.ts @@ -1,10 +1,10 @@ import { - CanceledCallError + CanceledCallError, } from '@ama-sdk/core'; import type { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; /** diff --git a/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.spec.ts index a2f918e33c..78bf851299 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/retry/retry.spec.ts @@ -1,5 +1,5 @@ import { - RetryFetch + RetryFetch, } from './retry.fetch'; describe('Retry Fetch Plugin', () => { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.fetch.ts index b4ec24b567..45ce166f59 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.fetch.ts @@ -1,10 +1,10 @@ import { - ResponseTimeoutError + ResponseTimeoutError, } from '@ama-sdk/core'; import type { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; /** diff --git a/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.spec.ts index c455b2f6be..6845f3b218 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/timeout/timeout.spec.ts @@ -1,11 +1,11 @@ import { EmptyResponseError, - ResponseTimeoutError + ResponseTimeoutError, } from '@ama-sdk/core'; import { impervaCaptchaEventHandlerFactory, TimeoutFetch, - TimeoutStatus + TimeoutStatus, } from './timeout.fetch'; describe('Timeout Fetch Plugin', () => { diff --git a/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.fetch.ts b/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.fetch.ts index e7e41dc73e..3978fa0bfd 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.fetch.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.fetch.ts @@ -1,7 +1,7 @@ import type { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../../fetch-plugin'; /** Callback function type */ diff --git a/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.spec.ts b/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.spec.ts index 03cb5df363..580666c455 100644 --- a/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.spec.ts +++ b/packages/@ama-sdk/client-fetch/src/plugins/wait-for/wait-for.spec.ts @@ -1,5 +1,5 @@ import { - WaitForFetch + WaitForFetch, } from './wait-for.fetch'; describe('Wait For Fetch Plugin', () => { diff --git a/packages/@ama-sdk/core/eslint.local.config.mjs b/packages/@ama-sdk/core/eslint.local.config.mjs index c0af5a61ef..f8e11a26cc 100644 --- a/packages/@ama-sdk/core/eslint.local.config.mjs +++ b/packages/@ama-sdk/core/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@ama-sdk/core/schematics/ng-add/index.spec.ts b/packages/@ama-sdk/core/schematics/ng-add/index.spec.ts index d569e39d32..2ed1592c72 100644 --- a/packages/@ama-sdk/core/schematics/ng-add/index.spec.ts +++ b/packages/@ama-sdk/core/schematics/ng-add/index.spec.ts @@ -1,18 +1,18 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - join + join, } from 'node:path'; import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAdd + ngAdd, } from './index'; describe('Ng add @ama-sdk/core', () => { diff --git a/packages/@ama-sdk/core/schematics/ng-add/index.ts b/packages/@ama-sdk/core/schematics/ng-add/index.ts index 91fbe9a616..45dc87ba1e 100644 --- a/packages/@ama-sdk/core/schematics/ng-add/index.ts +++ b/packages/@ama-sdk/core/schematics/ng-add/index.ts @@ -1,14 +1,14 @@ import * as path from 'node:path'; import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { - NodePackageInstallTask + NodePackageInstallTask, } from '@angular-devkit/schematics/tasks'; import * as ts from 'typescript'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@ama-sdk/core/schematics/ng-add/schema.ts b/packages/@ama-sdk/core/schematics/ng-add/schema.ts index e2c067effb..867dbc2184 100644 --- a/packages/@ama-sdk/core/schematics/ng-add/schema.ts +++ b/packages/@ama-sdk/core/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/core/src/clients/api-angular-client.ts b/packages/@ama-sdk/core/src/clients/api-angular-client.ts index 585745c00e..a0d6f0eb11 100644 --- a/packages/@ama-sdk/core/src/clients/api-angular-client.ts +++ b/packages/@ama-sdk/core/src/clients/api-angular-client.ts @@ -1,9 +1,9 @@ import type { HttpClient, - HttpResponse + HttpResponse, } from '@angular/common/http'; import { - ApiTypes + ApiTypes, } from '../fwk/api'; import { extractQueryParams, @@ -11,38 +11,38 @@ import { getResponseReviver, prepareUrl, processFormData, - tokenizeRequestOptions + tokenizeRequestOptions, } from '../fwk/api.helpers'; import type { - PartialExcept + PartialExcept, } from '../fwk/api.interface'; import type { ApiClient, - RequestOptionsParameters + RequestOptionsParameters, } from '../fwk/core/api-client'; import { - BaseApiClientOptions + BaseApiClientOptions, } from '../fwk/core/base-api-constructor'; import { - EmptyResponseError + EmptyResponseError, } from '../fwk/errors'; import { - ReviverType + ReviverType, } from '../fwk/reviver'; import type { AngularCall, AngularPlugin, - PluginObservableRunner + PluginObservableRunner, } from '../plugins/core/angular-plugin'; import type { RequestOptions, - TokenizedOptions + TokenizedOptions, } from '../plugins/core/index'; import { - ExceptionReply + ExceptionReply, } from '../plugins/exception'; import { - ReviverReply + ReviverReply, } from '../plugins/reviver'; /** diff --git a/packages/@ama-sdk/core/src/clients/api-beacon-client.ts b/packages/@ama-sdk/core/src/clients/api-beacon-client.ts index c2d0db1ff7..e381a8ec18 100644 --- a/packages/@ama-sdk/core/src/clients/api-beacon-client.ts +++ b/packages/@ama-sdk/core/src/clients/api-beacon-client.ts @@ -1,27 +1,27 @@ import type { - ApiTypes + ApiTypes, } from '../fwk/api'; import { extractQueryParams, filterUndefinedValues, prepareUrl, processFormData, - tokenizeRequestOptions + tokenizeRequestOptions, } from '../fwk/api.helpers'; import type { - PartialExcept + PartialExcept, } from '../fwk/api.interface'; import type { ApiClient, - RequestOptionsParameters + RequestOptionsParameters, } from '../fwk/core/api-client'; import type { - BaseApiClientOptions + BaseApiClientOptions, } from '../fwk/core/base-api-constructor'; import type { RequestBody, RequestOptions, - TokenizedOptions + TokenizedOptions, } from '../plugins'; /** diff --git a/packages/@ama-sdk/core/src/clients/api-fetch-client.ts b/packages/@ama-sdk/core/src/clients/api-fetch-client.ts index e681fb0856..4a22d234fb 100644 --- a/packages/@ama-sdk/core/src/clients/api-fetch-client.ts +++ b/packages/@ama-sdk/core/src/clients/api-fetch-client.ts @@ -1,5 +1,5 @@ import { - ApiTypes + ApiTypes, } from '../fwk/api'; import { extractQueryParams, @@ -7,25 +7,25 @@ import { getResponseReviver, prepareUrl, processFormData, - tokenizeRequestOptions + tokenizeRequestOptions, } from '../fwk/api.helpers'; import type { - PartialExcept + PartialExcept, } from '../fwk/api.interface'; import type { ApiClient, - RequestOptionsParameters + RequestOptionsParameters, } from '../fwk/core/api-client'; import { - BaseApiClientOptions + BaseApiClientOptions, } from '../fwk/core/base-api-constructor'; import { CanceledCallError, EmptyResponseError, - ResponseJSONParseError + ResponseJSONParseError, } from '../fwk/errors'; import { - ReviverType + ReviverType, } from '../fwk/reviver'; import type { FetchCall, @@ -33,13 +33,13 @@ import type { PluginAsyncRunner, PluginAsyncStarter, RequestOptions, - TokenizedOptions + TokenizedOptions, } from '../plugins/core/index'; import { - ExceptionReply + ExceptionReply, } from '../plugins/exception'; import { - ReviverReply + ReviverReply, } from '../plugins/reviver'; /** diff --git a/packages/@ama-sdk/core/src/fwk/api.helper.spec.ts b/packages/@ama-sdk/core/src/fwk/api.helper.spec.ts index c77d19c35a..3878ad497f 100644 --- a/packages/@ama-sdk/core/src/fwk/api.helper.spec.ts +++ b/packages/@ama-sdk/core/src/fwk/api.helper.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable no-console -- only using the reference */ import { getResponseReviver, - ReviverType + ReviverType, } from '@ama-sdk/core'; describe('getResponseReviver - revivers by status code', () => { diff --git a/packages/@ama-sdk/core/src/fwk/api.helpers.ts b/packages/@ama-sdk/core/src/fwk/api.helpers.ts index 65b07f44ef..2765e5a480 100644 --- a/packages/@ama-sdk/core/src/fwk/api.helpers.ts +++ b/packages/@ama-sdk/core/src/fwk/api.helpers.ts @@ -1,8 +1,8 @@ import { - TokenizedOptions + TokenizedOptions, } from '../plugins/core/request-plugin'; import type { - ReviverType + ReviverType, } from './reviver'; /** diff --git a/packages/@ama-sdk/core/src/fwk/api.interface.ts b/packages/@ama-sdk/core/src/fwk/api.interface.ts index 2901ee31ff..cf96e18546 100644 --- a/packages/@ama-sdk/core/src/fwk/api.interface.ts +++ b/packages/@ama-sdk/core/src/fwk/api.interface.ts @@ -1,5 +1,5 @@ import { - ApiClient + ApiClient, } from './core/api-client'; /** Identified API interface */ diff --git a/packages/@ama-sdk/core/src/fwk/core/api-client.ts b/packages/@ama-sdk/core/src/fwk/core/api-client.ts index 5330f8688d..e3d56e40d2 100644 --- a/packages/@ama-sdk/core/src/fwk/core/api-client.ts +++ b/packages/@ama-sdk/core/src/fwk/core/api-client.ts @@ -2,19 +2,19 @@ import type { RequestBody, RequestMetadata, RequestOptions, - TokenizedOptions + TokenizedOptions, } from '../../plugins/index'; import type { - ApiTypes + ApiTypes, } from '../api'; import type { - Api + Api, } from '../api.interface'; import type { - ReviverType + ReviverType, } from '../reviver'; import type { - BaseApiClientOptions + BaseApiClientOptions, } from './base-api-constructor'; /** Parameters to the request the call options */ diff --git a/packages/@ama-sdk/core/src/fwk/core/base-api-constructor.ts b/packages/@ama-sdk/core/src/fwk/core/base-api-constructor.ts index 7efb120484..ee8100b621 100644 --- a/packages/@ama-sdk/core/src/fwk/core/base-api-constructor.ts +++ b/packages/@ama-sdk/core/src/fwk/core/base-api-constructor.ts @@ -1,9 +1,9 @@ import { ReplyPlugin, - RequestPlugin + RequestPlugin, } from '../../plugins'; import type { - Logger + Logger, } from '../logger'; /** Interface of the constructor configuration object */ diff --git a/packages/@ama-sdk/core/src/fwk/date.spec.ts b/packages/@ama-sdk/core/src/fwk/date.spec.ts index a1e4f9218e..ebb481aacb 100644 --- a/packages/@ama-sdk/core/src/fwk/date.spec.ts +++ b/packages/@ama-sdk/core/src/fwk/date.spec.ts @@ -1,5 +1,5 @@ import { - utils + utils, } from './date'; describe('DateTime', () => { diff --git a/packages/@ama-sdk/core/src/fwk/mocks/alf-mock-adapter.ts b/packages/@ama-sdk/core/src/fwk/mocks/alf-mock-adapter.ts index 602de91c40..b511d27645 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/alf-mock-adapter.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/alf-mock-adapter.ts @@ -1,15 +1,15 @@ import { - MockMap + MockMap, } from './base-mock-adapter'; import { getOperationId, - getPath + getPath, } from './helpers'; import { - PathObject + PathObject, } from './path-object'; import { - SequentialMockAdapter + SequentialMockAdapter, } from './sequential-mock-adapter'; /** diff --git a/packages/@ama-sdk/core/src/fwk/mocks/base-mock-adapter.ts b/packages/@ama-sdk/core/src/fwk/mocks/base-mock-adapter.ts index 474800a9e7..701c524edd 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/base-mock-adapter.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/base-mock-adapter.ts @@ -1,18 +1,18 @@ import { - EncodedApiRequest + EncodedApiRequest, } from './encoded-api-request'; import { getOperationId, - getPath + getPath, } from './helpers'; import { - Mock + Mock, } from './mock'; import { - MockAdapter + MockAdapter, } from './mock-adapter'; import { - PathObject + PathObject, } from './path-object'; export type MockMap = { [operationID: string]: Mock[] }; diff --git a/packages/@ama-sdk/core/src/fwk/mocks/encoded-api-request.ts b/packages/@ama-sdk/core/src/fwk/mocks/encoded-api-request.ts index 4de2f24adb..ca8da7e471 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/encoded-api-request.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/encoded-api-request.ts @@ -1,5 +1,5 @@ import { - RequestBody + RequestBody, } from '../../plugins/index'; /** diff --git a/packages/@ama-sdk/core/src/fwk/mocks/helpers.ts b/packages/@ama-sdk/core/src/fwk/mocks/helpers.ts index 23d777d7d7..b3cd8a05c0 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/helpers.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/helpers.ts @@ -1,5 +1,5 @@ import { - PathObject + PathObject, } from './path-object'; /** diff --git a/packages/@ama-sdk/core/src/fwk/mocks/mock-adapter.ts b/packages/@ama-sdk/core/src/fwk/mocks/mock-adapter.ts index f95806ab4e..5167415f0f 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/mock-adapter.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/mock-adapter.ts @@ -1,8 +1,8 @@ import { - EncodedApiRequest + EncodedApiRequest, } from './encoded-api-request'; import { - Mock + Mock, } from './mock'; /** Describes an adapter for mocking */ diff --git a/packages/@ama-sdk/core/src/fwk/mocks/path-object.ts b/packages/@ama-sdk/core/src/fwk/mocks/path-object.ts index 3a4680a652..25bfebad58 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/path-object.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/path-object.ts @@ -1,5 +1,5 @@ import { - Operation + Operation, } from './operation'; /** Describes a path on the swagger specification */ diff --git a/packages/@ama-sdk/core/src/fwk/mocks/random-mock-adapter.ts b/packages/@ama-sdk/core/src/fwk/mocks/random-mock-adapter.ts index 784ec123a0..7e4cac2ac6 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/random-mock-adapter.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/random-mock-adapter.ts @@ -1,8 +1,8 @@ import { - BaseMockAdapter + BaseMockAdapter, } from './base-mock-adapter'; import { - Mock + Mock, } from './mock'; /** diff --git a/packages/@ama-sdk/core/src/fwk/mocks/sequential-mock-adapter.ts b/packages/@ama-sdk/core/src/fwk/mocks/sequential-mock-adapter.ts index f97c795619..54f0ab3dac 100644 --- a/packages/@ama-sdk/core/src/fwk/mocks/sequential-mock-adapter.ts +++ b/packages/@ama-sdk/core/src/fwk/mocks/sequential-mock-adapter.ts @@ -1,8 +1,8 @@ import { - BaseMockAdapter + BaseMockAdapter, } from './base-mock-adapter'; import { - Mock + Mock, } from './mock'; /** diff --git a/packages/@ama-sdk/core/src/fwk/reviver.spec.ts b/packages/@ama-sdk/core/src/fwk/reviver.spec.ts index df09e7f8ec..c7e574db41 100644 --- a/packages/@ama-sdk/core/src/fwk/reviver.spec.ts +++ b/packages/@ama-sdk/core/src/fwk/reviver.spec.ts @@ -1,7 +1,7 @@ import { reviveArray, reviveDictionarizedArray, - reviveMap + reviveMap, } from './reviver'; describe('Revivers :', () => { diff --git a/packages/@ama-sdk/core/src/fwk/reviver.ts b/packages/@ama-sdk/core/src/fwk/reviver.ts index 86af91535a..18fd87500d 100644 --- a/packages/@ama-sdk/core/src/fwk/reviver.ts +++ b/packages/@ama-sdk/core/src/fwk/reviver.ts @@ -1,5 +1,5 @@ import type { - Logger + Logger, } from './logger'; /** Options provided to the reviver */ diff --git a/packages/@ama-sdk/core/src/plugins/abort/abort.fetch.ts b/packages/@ama-sdk/core/src/plugins/abort/abort.fetch.ts index 1817339d09..6ba70b63dd 100644 --- a/packages/@ama-sdk/core/src/plugins/abort/abort.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/abort/abort.fetch.ts @@ -2,7 +2,7 @@ import type { FetchCall, FetchPlugin, FetchPluginContext, - RequestOptions + RequestOptions, } from '../core'; interface AbortCallbackParameters { diff --git a/packages/@ama-sdk/core/src/plugins/abort/abort.spec.ts b/packages/@ama-sdk/core/src/plugins/abort/abort.spec.ts index f784b7921d..171a3d9f85 100644 --- a/packages/@ama-sdk/core/src/plugins/abort/abort.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/abort/abort.spec.ts @@ -1,5 +1,5 @@ import { - AbortFetch + AbortFetch, } from './abort.fetch'; describe('Abort Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/additional-params/additional-params-sync.request.ts b/packages/@ama-sdk/core/src/plugins/additional-params/additional-params-sync.request.ts index 3eae9ff543..b69658d0f3 100644 --- a/packages/@ama-sdk/core/src/plugins/additional-params/additional-params-sync.request.ts +++ b/packages/@ama-sdk/core/src/plugins/additional-params/additional-params-sync.request.ts @@ -1,10 +1,10 @@ import { PluginSyncRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; import { - isStringOrUndefined + isStringOrUndefined, } from './additional-params.request'; export interface AdditionalParametersSync { diff --git a/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.request.ts b/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.request.ts index b97a3e441c..e7e1417da9 100644 --- a/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.request.ts +++ b/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; export interface AdditionalParameters { diff --git a/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.spec.ts b/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.spec.ts index 4c0f039f9c..c6c6d3299f 100644 --- a/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/additional-params/additional-params.spec.ts @@ -1,11 +1,11 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - AdditionalParamsSyncRequest + AdditionalParamsSyncRequest, } from './additional-params-sync.request'; import { - AdditionalParamsRequest + AdditionalParamsRequest, } from './additional-params.request'; describe('Additional Params Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.request.ts b/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.request.ts index fdd21711ef..6d4362ce5a 100644 --- a/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.request.ts +++ b/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.request.ts @@ -2,7 +2,7 @@ import { AsyncPluginInput, PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.spec.ts b/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.spec.ts index c69ca2f65d..bb63b3e586 100644 --- a/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/api-configuration-override/api-configuration-override.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - ApiConfigurationOverride + ApiConfigurationOverride, } from './api-configuration-override.request'; describe('ApiConfigurationOverride Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/api-key/api-key.request.ts b/packages/@ama-sdk/core/src/plugins/api-key/api-key.request.ts index f0a0f1b547..f7b2944532 100644 --- a/packages/@ama-sdk/core/src/plugins/api-key/api-key.request.ts +++ b/packages/@ama-sdk/core/src/plugins/api-key/api-key.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/api-key/api-key.spec.ts b/packages/@ama-sdk/core/src/plugins/api-key/api-key.spec.ts index cfa45ae897..360135bb1f 100644 --- a/packages/@ama-sdk/core/src/plugins/api-key/api-key.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/api-key/api-key.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - ApiKeyRequest + ApiKeyRequest, } from './api-key.request'; describe('Api Key Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.request.ts b/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.request.ts index 16afe31983..c620be72da 100644 --- a/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.request.ts +++ b/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.request.ts @@ -1,11 +1,11 @@ import type { - Logger + Logger, } from '../../fwk/logger'; import { PluginRunner, RequestOptions, RequestPlugin, - RequestPluginContext + RequestPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.ts b/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.ts index 5b44ac6d49..a7a60a8a57 100644 --- a/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.ts @@ -1,12 +1,12 @@ import { - RequestOptions + RequestOptions, } from '../core'; import { akamaiTelemetryRetrieverFactory, BotProtectionFingerprintRequest, BotProtectionFingerprintRetriever, ImpervaProtection, - impervaProtectionRetrieverFactory + impervaProtectionRetrieverFactory, } from './bot-protection-fingerprint.request'; declare let global: any; diff --git a/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.request.ts b/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.request.ts index 71d29580dd..425bedb0e6 100644 --- a/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.request.ts +++ b/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.request.ts @@ -1,10 +1,10 @@ import { - createJwtEncoder + createJwtEncoder, } from '../../utils/json-token'; import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.spec.ts b/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.spec.ts index e5ea97a597..54f3834897 100644 --- a/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/client-facts/client-facts.spec.ts @@ -1,10 +1,10 @@ import { - RequestOptions + RequestOptions, } from '../core'; import { ClientFactsRequestPlugin, createJwtFactsEncoder, - PublicFacts + PublicFacts, } from './client-facts.request'; const defaultFacts: PublicFacts = { diff --git a/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.fetch.ts b/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.fetch.ts index e8de303e1d..bcea7a2958 100644 --- a/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.fetch.ts @@ -1,7 +1,7 @@ import { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.spec.ts b/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.spec.ts index 0dd76c8dc7..a2eb585705 100644 --- a/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/concurrent/concurrent.spec.ts @@ -1,5 +1,5 @@ import { - ConcurrentFetch + ConcurrentFetch, } from './concurrent.fetch'; describe('Concurrent Fetch Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/core/angular-plugin.ts b/packages/@ama-sdk/core/src/plugins/core/angular-plugin.ts index 6d07d85bde..ce50c3cdf5 100644 --- a/packages/@ama-sdk/core/src/plugins/core/angular-plugin.ts +++ b/packages/@ama-sdk/core/src/plugins/core/angular-plugin.ts @@ -1,17 +1,17 @@ import type { - HttpResponse + HttpResponse, } from '@angular/common/http'; import type { - Observable + Observable, } from 'rxjs'; import type { - ApiClient + ApiClient, } from '../../fwk/core/api-client'; import type { - PluginContext + PluginContext, } from './plugin'; import type { - RequestOptions + RequestOptions, } from './request-plugin'; /** diff --git a/packages/@ama-sdk/core/src/plugins/core/fetch-plugin.ts b/packages/@ama-sdk/core/src/plugins/core/fetch-plugin.ts index 579076ea25..5840ec9668 100644 --- a/packages/@ama-sdk/core/src/plugins/core/fetch-plugin.ts +++ b/packages/@ama-sdk/core/src/plugins/core/fetch-plugin.ts @@ -1,13 +1,13 @@ import type { - ApiClient + ApiClient, } from '../../fwk/core/api-client'; import type { Plugin, PluginAsyncRunner, - PluginContext + PluginContext, } from './plugin'; import type { - RequestOptions + RequestOptions, } from './request-plugin'; /** diff --git a/packages/@ama-sdk/core/src/plugins/core/plugin.ts b/packages/@ama-sdk/core/src/plugins/core/plugin.ts index 89a0f8d875..482cbd2028 100644 --- a/packages/@ama-sdk/core/src/plugins/core/plugin.ts +++ b/packages/@ama-sdk/core/src/plugins/core/plugin.ts @@ -1,5 +1,5 @@ import type { - Logger + Logger, } from '../../fwk/logger'; /** diff --git a/packages/@ama-sdk/core/src/plugins/core/reply-plugin.ts b/packages/@ama-sdk/core/src/plugins/core/reply-plugin.ts index 8b84a46fd0..656f97d8b0 100644 --- a/packages/@ama-sdk/core/src/plugins/core/reply-plugin.ts +++ b/packages/@ama-sdk/core/src/plugins/core/reply-plugin.ts @@ -1,13 +1,13 @@ import type { - ApiTypes + ApiTypes, } from '../../fwk/api'; import type { - ReviverType + ReviverType, } from '../../fwk/reviver'; import type { Plugin, PluginContext, - PluginRunner + PluginRunner, } from './plugin'; /** diff --git a/packages/@ama-sdk/core/src/plugins/core/request-plugin.ts b/packages/@ama-sdk/core/src/plugins/core/request-plugin.ts index 77efc2ee3e..bd488b02da 100644 --- a/packages/@ama-sdk/core/src/plugins/core/request-plugin.ts +++ b/packages/@ama-sdk/core/src/plugins/core/request-plugin.ts @@ -1,10 +1,10 @@ import type { - Api + Api, } from '../../fwk'; import type { Plugin, PluginContext, - PluginRunner + PluginRunner, } from './plugin'; export type RequestBody = string | FormData; diff --git a/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.reply.ts b/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.reply.ts index 8681b9d118..5184780ad6 100644 --- a/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.reply.ts +++ b/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.reply.ts @@ -1,7 +1,7 @@ import { PluginRunner, ReplyPlugin, - ReplyPluginContext + ReplyPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.spec.ts b/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.spec.ts index d175f7c45a..b19a8be2d4 100644 --- a/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/custom-info/custom-info.spec.ts @@ -1,8 +1,8 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { - CustomInfoReply + CustomInfoReply, } from './custom-info.reply'; describe('Custom info reply plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/exception/exception.reply.ts b/packages/@ama-sdk/core/src/plugins/exception/exception.reply.ts index ecdfde98b3..5dde4f5a46 100644 --- a/packages/@ama-sdk/core/src/plugins/exception/exception.reply.ts +++ b/packages/@ama-sdk/core/src/plugins/exception/exception.reply.ts @@ -1,14 +1,14 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { EmptyResponseError, - RequestFailedError + RequestFailedError, } from '../../fwk/errors'; import { PluginRunner, ReplyPlugin, - ReplyPluginContext + ReplyPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/exception/exception.spec.ts b/packages/@ama-sdk/core/src/plugins/exception/exception.spec.ts index d380a70b77..653d0b5a47 100644 --- a/packages/@ama-sdk/core/src/plugins/exception/exception.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/exception/exception.spec.ts @@ -1,12 +1,12 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { EmptyResponseError, - RequestFailedError + RequestFailedError, } from '../../fwk/errors'; import { - ExceptionReply + ExceptionReply, } from './exception.reply'; describe('Exception Reply Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.request.ts b/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.request.ts index 4f792b6146..3bc11290b9 100644 --- a/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.request.ts +++ b/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** * Plugin to set the cache option of the fetch API for every request it is applied to. diff --git a/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.spec.ts b/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.spec.ts index 6e94d3f7d8..61d65e93cc 100644 --- a/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/fetch-cache/fetch-cache.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - FetchCacheRequest + FetchCacheRequest, } from './fetch-cache.request'; describe('Fetch API cache Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.request.ts b/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.request.ts index 81a71092e8..c10a302457 100644 --- a/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.request.ts +++ b/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.spec.ts b/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.spec.ts index a874a56f59..43aee6faef 100644 --- a/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/fetch-credentials/fetch-credentials.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - FetchCredentialsRequest + FetchCredentialsRequest, } from './fetch-credentials.request'; describe('Fetch API credentials Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/json-token/json-token.reply.ts b/packages/@ama-sdk/core/src/plugins/json-token/json-token.reply.ts index 1efc2c5cd3..377b1a0bca 100644 --- a/packages/@ama-sdk/core/src/plugins/json-token/json-token.reply.ts +++ b/packages/@ama-sdk/core/src/plugins/json-token/json-token.reply.ts @@ -1,7 +1,7 @@ import { PluginRunner, ReplyPlugin, - ReplyPluginContext + ReplyPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/json-token/json-token.request.ts b/packages/@ama-sdk/core/src/plugins/json-token/json-token.request.ts index 0bd060cb72..bd0017d2c8 100644 --- a/packages/@ama-sdk/core/src/plugins/json-token/json-token.request.ts +++ b/packages/@ama-sdk/core/src/plugins/json-token/json-token.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/json-token/json-token.spec.ts b/packages/@ama-sdk/core/src/plugins/json-token/json-token.spec.ts index ecc264ce4e..3e826c4f9b 100644 --- a/packages/@ama-sdk/core/src/plugins/json-token/json-token.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/json-token/json-token.spec.ts @@ -1,14 +1,14 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - JsonTokenReply + JsonTokenReply, } from './json-token.reply'; import { - JsonTokenRequest + JsonTokenRequest, } from './json-token.request'; describe('Json Token', () => { diff --git a/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.request.ts b/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.request.ts index 9d68b89afe..6a557b57ae 100644 --- a/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.request.ts +++ b/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.spec.ts b/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.spec.ts index e1a755a0e4..dcefe2f426 100644 --- a/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/keepalive/keepalive.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - KeepaliveRequest + KeepaliveRequest, } from './keepalive.request'; describe('Keepalive Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.request.ts b/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.request.ts index 71592f99ff..acdc29a97f 100644 --- a/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.request.ts +++ b/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.request.ts @@ -1,19 +1,19 @@ import { - v4 + v4, } from 'uuid'; import { base64EncodeUrl, createBase64Encoder, - createBase64UrlEncoder + createBase64UrlEncoder, } from '../../utils/json-token'; import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; import { hmacSHA256, - sha256 + sha256, } from './mgw-mdw-auth.helpers'; /** diff --git a/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.ts b/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.ts index 515ae22b26..5e6c2e3542 100644 --- a/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.ts @@ -2,19 +2,19 @@ import { base64EncodeUrl, createBase64Decoder, createBase64UrlDecoder, - createBase64UrlEncoder + createBase64UrlEncoder, } from '../../utils/json-token'; import { - RequestOptions + RequestOptions, } from '../core'; import { hmacSHA256, - sha256 + sha256, } from './mgw-mdw-auth.helpers'; import { JsonTokenPayload, MicroGatewayMiddlewareAuthenticationRequest, - MicroGatewayMiddlewareAuthenticationRequestConstructor + MicroGatewayMiddlewareAuthenticationRequestConstructor, } from './mgw-mdw-auth.request'; const authHeaderKey = 'Authorization'; diff --git a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.angular.ts b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.angular.ts index 8aa34abe01..89e86853be 100644 --- a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.angular.ts +++ b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.angular.ts @@ -1,23 +1,23 @@ import { - HttpResponse + HttpResponse, } from '@angular/common/http'; import { delay, from, - mergeMap + mergeMap, } from 'rxjs'; import type { AngularCall, AngularPlugin, AngularPluginContext, - PluginObservableRunner + PluginObservableRunner, } from '../core/angular-plugin'; import { CUSTOM_MOCK_OPERATION_ID_HEADER, - MockInterceptFetchParameters + MockInterceptFetchParameters, } from './mock-intercept.interface'; import { - MockInterceptRequest + MockInterceptRequest, } from './mock-intercept.request'; /** diff --git a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.fetch.ts b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.fetch.ts index a5049ffc08..6722a8e0ef 100644 --- a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.fetch.ts @@ -3,14 +3,14 @@ import { FetchPlugin, FetchPluginContext, PluginAsyncRunner, - PluginAsyncStarter + PluginAsyncStarter, } from '../core'; import { CUSTOM_MOCK_OPERATION_ID_HEADER, - MockInterceptFetchParameters + MockInterceptFetchParameters, } from './mock-intercept.interface'; import { - MockInterceptRequest + MockInterceptRequest, } from './mock-intercept.request'; /** diff --git a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.interface.ts b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.interface.ts index 5405469111..a03f24c98d 100644 --- a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.interface.ts +++ b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.interface.ts @@ -1,9 +1,9 @@ import { - MockAdapter + MockAdapter, } from '../../fwk/index'; import { FetchPluginContext, - RequestOptions + RequestOptions, } from '../core/index'; /** diff --git a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.request.ts b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.request.ts index 861972f581..0bcfd16500 100644 --- a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.request.ts +++ b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.request.ts @@ -1,13 +1,13 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; import { CUSTOM_MOCK_OPERATION_ID_HEADER, CUSTOM_MOCK_REQUEST_HEADER, MockInterceptFetchParameters, - MockInterceptRequestParameters + MockInterceptRequestParameters, } from './mock-intercept.interface'; /** diff --git a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.spec.ts b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.spec.ts index f13f5ccf1c..893125b072 100644 --- a/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/mock-intercept/mock-intercept.spec.ts @@ -2,21 +2,21 @@ import { ApiClient, Mock, MockAdapter, - SequentialMockAdapter + SequentialMockAdapter, } from '../../fwk'; import { RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; import { - MockInterceptFetch + MockInterceptFetch, } from './mock-intercept.fetch'; import { CUSTOM_MOCK_OPERATION_ID_HEADER, - CUSTOM_MOCK_REQUEST_HEADER + CUSTOM_MOCK_REQUEST_HEADER, } from './mock-intercept.interface'; import { - MockInterceptRequest + MockInterceptRequest, } from './mock-intercept.request'; const testMock: Mock = { diff --git a/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.fetch.ts b/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.fetch.ts index e59557d272..adb8c1b77b 100644 --- a/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.fetch.ts @@ -1,10 +1,10 @@ import { - v4 + v4, } from 'uuid'; import { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.probe.spec.ts b/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.probe.spec.ts index e373221eb6..a3fe5aa01a 100644 --- a/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.probe.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/perf-metric/perf-metric.probe.spec.ts @@ -1,5 +1,5 @@ import { - PerformanceMetricPlugin + PerformanceMetricPlugin, } from './perf-metric.fetch'; let perfPlugin: PerformanceMetricPlugin; diff --git a/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.request.ts b/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.request.ts index 7da0c6e5c4..b54bdc67fc 100644 --- a/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.request.ts +++ b/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.request.ts @@ -1,15 +1,15 @@ import type { - Logger + Logger, } from '../../fwk/logger'; import { createJweEncoder, - createJwtEncoder + createJwtEncoder, } from '../../utils/json-token'; import { PluginRunner, RequestOptions, RequestPlugin, - RequestPluginContext + RequestPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.spec.ts b/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.spec.ts index 94eab09ef4..5400c09fb4 100644 --- a/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/pii-tokenizer/pii-tokenizer.spec.ts @@ -3,10 +3,10 @@ import { DeepLinkOptions, RequestMetadata, RequestOptions, - TokenizedOptions + TokenizedOptions, } from '../core/request-plugin'; import { - PiiTokenizerRequest + PiiTokenizerRequest, } from './pii-tokenizer.request'; describe('Tokenizer Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.reply.ts b/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.reply.ts index bf14645c42..9c2dd560be 100644 --- a/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.reply.ts +++ b/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.reply.ts @@ -1,10 +1,10 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { PluginRunner, ReplyPlugin, - ReplyPluginContext + ReplyPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.spec.ts b/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.spec.ts index 9eecea3348..6b1f4fc4d7 100644 --- a/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/raw-response-info/raw-response-info.spec.ts @@ -1,8 +1,8 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { - RawResponseInfoReply + RawResponseInfoReply, } from './raw-response-info.reply'; describe('Raw response info Reply plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/retry/retry.fetch.ts b/packages/@ama-sdk/core/src/plugins/retry/retry.fetch.ts index ece33b2ae1..3c584da0f2 100644 --- a/packages/@ama-sdk/core/src/plugins/retry/retry.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/retry/retry.fetch.ts @@ -1,10 +1,10 @@ import { - CanceledCallError + CanceledCallError, } from '../../fwk/errors'; import { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/retry/retry.spec.ts b/packages/@ama-sdk/core/src/plugins/retry/retry.spec.ts index a2f918e33c..78bf851299 100644 --- a/packages/@ama-sdk/core/src/plugins/retry/retry.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/retry/retry.spec.ts @@ -1,5 +1,5 @@ import { - RetryFetch + RetryFetch, } from './retry.fetch'; describe('Retry Fetch Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/reviver/reviver.reply.ts b/packages/@ama-sdk/core/src/plugins/reviver/reviver.reply.ts index cae8a19683..e0c87d389f 100644 --- a/packages/@ama-sdk/core/src/plugins/reviver/reviver.reply.ts +++ b/packages/@ama-sdk/core/src/plugins/reviver/reviver.reply.ts @@ -1,10 +1,10 @@ import type { - ReviverOptions + ReviverOptions, } from '../../fwk/reviver'; import { PluginRunner, ReplyPlugin, - ReplyPluginContext + ReplyPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/reviver/reviver.spec.ts b/packages/@ama-sdk/core/src/plugins/reviver/reviver.spec.ts index ee65923deb..c7e0f5dde4 100644 --- a/packages/@ama-sdk/core/src/plugins/reviver/reviver.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/reviver/reviver.spec.ts @@ -1,8 +1,8 @@ import { - ApiTypes + ApiTypes, } from '../../fwk/api'; import { - ReviverReply + ReviverReply, } from './reviver.reply'; describe('Reviver Reply Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/session-id/session-id.request.ts b/packages/@ama-sdk/core/src/plugins/session-id/session-id.request.ts index 336bd168ec..dee7460c1a 100644 --- a/packages/@ama-sdk/core/src/plugins/session-id/session-id.request.ts +++ b/packages/@ama-sdk/core/src/plugins/session-id/session-id.request.ts @@ -1,14 +1,14 @@ import { - v4 + v4, } from 'uuid'; import type { - Logger + Logger, } from '../../fwk/logger'; import { PluginRunner, RequestOptions, RequestPlugin, - RequestPluginContext + RequestPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/session-id/session-id.spec.ts b/packages/@ama-sdk/core/src/plugins/session-id/session-id.spec.ts index 047514a7b6..f7178601ed 100644 --- a/packages/@ama-sdk/core/src/plugins/session-id/session-id.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/session-id/session-id.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - SessionIdRequest + SessionIdRequest, } from './session-id.request'; describe('Session ID Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/si-token/si-token.request.ts b/packages/@ama-sdk/core/src/plugins/si-token/si-token.request.ts index 099bea0d63..dd7e64e998 100644 --- a/packages/@ama-sdk/core/src/plugins/si-token/si-token.request.ts +++ b/packages/@ama-sdk/core/src/plugins/si-token/si-token.request.ts @@ -1,8 +1,8 @@ import { - AdditionalParamsRequest + AdditionalParamsRequest, } from '../additional-params'; import { - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/si-token/si-token.spec.ts b/packages/@ama-sdk/core/src/plugins/si-token/si-token.spec.ts index 63cd6f95f1..5a27156bbc 100644 --- a/packages/@ama-sdk/core/src/plugins/si-token/si-token.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/si-token/si-token.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - SiTokenRequest + SiTokenRequest, } from './si-token.request'; describe('SI Token Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.request.ts b/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.request.ts index a93f464187..75dd008ddb 100644 --- a/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.request.ts +++ b/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.request.ts @@ -1,10 +1,10 @@ import { - createJwtEncoder + createJwtEncoder, } from '../../utils/json-token'; import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.ts b/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.ts index 9fe6039b1a..7c1eac74c0 100644 --- a/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.ts @@ -1,11 +1,11 @@ import { - createBase64UrlDecoder + createBase64UrlDecoder, } from '../../utils/json-token'; import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - SimpleApiKeyAuthenticationRequest + SimpleApiKeyAuthenticationRequest, } from './simple-api-key-authentication.request'; const base64UrlDecoder = createBase64UrlDecoder(); diff --git a/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts b/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts index d71cbbae34..d28dd00e62 100644 --- a/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/timeout/timeout.fetch.ts @@ -1,10 +1,10 @@ import { - ResponseTimeoutError + ResponseTimeoutError, } from '../../fwk/errors'; import { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/timeout/timeout.spec.ts b/packages/@ama-sdk/core/src/plugins/timeout/timeout.spec.ts index be9a3d8627..e5a930ef12 100644 --- a/packages/@ama-sdk/core/src/plugins/timeout/timeout.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/timeout/timeout.spec.ts @@ -1,11 +1,11 @@ import { EmptyResponseError, - ResponseTimeoutError + ResponseTimeoutError, } from '../../fwk/errors'; import { impervaCaptchaEventHandlerFactory, TimeoutFetch, - TimeoutStatus + TimeoutStatus, } from './timeout.fetch'; describe('Timeout Fetch Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.request.ts b/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.request.ts index 6e0686bfc9..7f5fc94b67 100644 --- a/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.request.ts +++ b/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.request.ts @@ -1,7 +1,7 @@ import { PluginRunner, RequestOptions, - RequestPlugin + RequestPlugin, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.spec.ts b/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.spec.ts index 8b21246f88..206e8888d9 100644 --- a/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/url-rewrite/url-rewrite.spec.ts @@ -1,8 +1,8 @@ import { - RequestOptions + RequestOptions, } from '../core/request-plugin'; import { - UrlRewriteRequest + UrlRewriteRequest, } from './url-rewrite.request'; describe('URL Rewrite Request Plugin', () => { diff --git a/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.fetch.ts b/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.fetch.ts index a1a0bfb323..acaa62e101 100644 --- a/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.fetch.ts +++ b/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.fetch.ts @@ -1,7 +1,7 @@ import { FetchCall, FetchPlugin, - FetchPluginContext + FetchPluginContext, } from '../core'; /** diff --git a/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.spec.ts b/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.spec.ts index 03cb5df363..580666c455 100644 --- a/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.spec.ts +++ b/packages/@ama-sdk/core/src/plugins/wait-for/wait-for.spec.ts @@ -1,5 +1,5 @@ import { - WaitForFetch + WaitForFetch, } from './wait-for.fetch'; describe('Wait For Fetch Plugin', () => { diff --git a/packages/@ama-sdk/core/src/utils/crypto.ts b/packages/@ama-sdk/core/src/utils/crypto.ts index 890ee72b32..911a68876f 100644 --- a/packages/@ama-sdk/core/src/utils/crypto.ts +++ b/packages/@ama-sdk/core/src/utils/crypto.ts @@ -1,6 +1,6 @@ import { MsCrypto, - promisifyMsCrypto + promisifyMsCrypto, } from './ie11'; declare global { diff --git a/packages/@ama-sdk/core/src/utils/generic-api.ts b/packages/@ama-sdk/core/src/utils/generic-api.ts index f9119b6d43..711fdf8762 100644 --- a/packages/@ama-sdk/core/src/utils/generic-api.ts +++ b/packages/@ama-sdk/core/src/utils/generic-api.ts @@ -3,7 +3,7 @@ import { type ApiClient, ApiTypes, type RequestOptionsParameters, - type ReviverType + type ReviverType, } from '../fwk'; /** @@ -49,7 +49,7 @@ export class GenericApi implements Api { const metadataHeaderAccept = requestOptions.metadata?.headerAccept || 'application/json'; const headers: { [key: string]: string | undefined } = { 'Content-Type': requestOptions.metadata?.headerContentType || 'application/json', - ...(metadataHeaderAccept ? { 'Accept': metadataHeaderAccept } : {}) + ...(metadataHeaderAccept ? { Accept: metadataHeaderAccept } : {}) }; const requestParameters: RequestOptionsParameters = { diff --git a/packages/@ama-sdk/core/src/utils/json-token.spec.ts b/packages/@ama-sdk/core/src/utils/json-token.spec.ts index 76911e2ff9..0bec7fd43a 100644 --- a/packages/@ama-sdk/core/src/utils/json-token.spec.ts +++ b/packages/@ama-sdk/core/src/utils/json-token.spec.ts @@ -5,7 +5,7 @@ import { createBase64Encoder, createBase64UrlDecoder, createBase64UrlEncoder, - createJweEncoder + createJweEncoder, } from './json-token'; describe('JSON token utils', () => { diff --git a/packages/@ama-sdk/core/src/utils/json-token.ts b/packages/@ama-sdk/core/src/utils/json-token.ts index 73498ef086..5e2792bcf8 100644 --- a/packages/@ama-sdk/core/src/utils/json-token.ts +++ b/packages/@ama-sdk/core/src/utils/json-token.ts @@ -3,10 +3,10 @@ import { encryptPayload, generateContentEncryptionKey, generateIV, - wrapContentEncryptionKey + wrapContentEncryptionKey, } from './crypto'; import { - Encoder + Encoder, } from './encoder'; /** diff --git a/packages/@ama-sdk/create/eslint.local.config.mjs b/packages/@ama-sdk/create/eslint.local.config.mjs index 36a92f4c29..2b16ee0d8f 100644 --- a/packages/@ama-sdk/create/eslint.local.config.mjs +++ b/packages/@ama-sdk/create/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@ama-sdk/create/src/index.it.spec.ts b/packages/@ama-sdk/create/src/index.it.spec.ts index 5229e6f140..0429169f4c 100644 --- a/packages/@ama-sdk/create/src/index.it.spec.ts +++ b/packages/@ama-sdk/create/src/index.it.spec.ts @@ -11,7 +11,7 @@ import { cpSync, existsSync, mkdirSync, - renameSync + renameSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -21,7 +21,7 @@ import { packageManagerCreate, packageManagerExec, packageManagerInstall, - packageManagerRun + packageManagerRun, } from '@o3r/test-helpers'; const sdkPackageName = '@my-test/sdk'; diff --git a/packages/@ama-sdk/create/src/index.ts b/packages/@ama-sdk/create/src/index.ts index 9e88c5bf79..c27593e78a 100644 --- a/packages/@ama-sdk/create/src/index.ts +++ b/packages/@ama-sdk/create/src/index.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import { execSync, - spawnSync + spawnSync, } from 'node:child_process'; import { dirname, @@ -9,15 +9,15 @@ import { join, parse, relative, - resolve + resolve, } from 'node:path'; import { LOCAL_SPEC_FILENAME, SPEC_JSON_EXTENSION, - SPEC_YAML_EXTENSION + SPEC_YAML_EXTENSION, } from '@ama-sdk/schematics'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; diff --git a/packages/@ama-sdk/schematics/cli/clear-index.cts b/packages/@ama-sdk/schematics/cli/clear-index.cts index a6154e87ef..f2a19065de 100644 --- a/packages/@ama-sdk/schematics/cli/clear-index.cts +++ b/packages/@ama-sdk/schematics/cli/clear-index.cts @@ -6,13 +6,13 @@ import { promises as fs, - statSync + statSync, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; diff --git a/packages/@ama-sdk/schematics/cli/files-pack.cts b/packages/@ama-sdk/schematics/cli/files-pack.cts index 750b53423f..3a6cdfbe5b 100644 --- a/packages/@ama-sdk/schematics/cli/files-pack.cts +++ b/packages/@ama-sdk/schematics/cli/files-pack.cts @@ -7,16 +7,16 @@ import { copyFileSync, promises as fs, - mkdirSync + mkdirSync, } from 'node:fs'; import * as path from 'node:path'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as globby from 'globby'; import * as minimist from 'minimist'; import type { - PackageJson + PackageJson, } from 'type-fest'; const argv = minimist(process.argv.slice(2)); diff --git a/packages/@ama-sdk/schematics/cli/update-spec-from-npm.cts b/packages/@ama-sdk/schematics/cli/update-spec-from-npm.cts index 60a586510f..7f6da9ff28 100644 --- a/packages/@ama-sdk/schematics/cli/update-spec-from-npm.cts +++ b/packages/@ama-sdk/schematics/cli/update-spec-from-npm.cts @@ -5,34 +5,34 @@ */ import { - existsSync + existsSync, } from 'node:fs'; import { copyFile, - readFile + readFile, } from 'node:fs/promises'; import { - createRequire + createRequire, } from 'node:module'; import { extname, - posix + posix, } from 'node:path'; import type { OpenApiToolsConfiguration, - OpenApiToolsGenerator + OpenApiToolsGenerator, } from '@ama-sdk/schematics'; import { LOCAL_SPEC_FILENAME, SPEC_JSON_EXTENSION, - SPEC_YAML_EXTENSION + SPEC_YAML_EXTENSION, } from '@ama-sdk/schematics'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; import type { - PackageJson + PackageJson, } from 'type-fest'; const argv = minimist(process.argv.slice(2)); diff --git a/packages/@ama-sdk/schematics/eslint.local.config.mjs b/packages/@ama-sdk/schematics/eslint.local.config.mjs index d50500cf10..8823fcf087 100644 --- a/packages/@ama-sdk/schematics/eslint.local.config.mjs +++ b/packages/@ama-sdk/schematics/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@ama-sdk/schematics/schematics/api-extension/index.ts b/packages/@ama-sdk/schematics/schematics/api-extension/index.ts index 5ef3cc05c9..0ccbbcf444 100644 --- a/packages/@ama-sdk/schematics/schematics/api-extension/index.ts +++ b/packages/@ama-sdk/schematics/schematics/api-extension/index.ts @@ -7,10 +7,10 @@ import { Rule, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { - NgGenerateApiExtensionSchematicsSchema + NgGenerateApiExtensionSchematicsSchema, } from './schema'; /** diff --git a/packages/@ama-sdk/schematics/schematics/api-extension/schema.ts b/packages/@ama-sdk/schematics/schematics/api-extension/schema.ts index 507ef304f5..26b44dc0ae 100644 --- a/packages/@ama-sdk/schematics/schematics/api-extension/schema.ts +++ b/packages/@ama-sdk/schematics/schematics/api-extension/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateApiExtensionSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/schematics/schematics/code-generator/code-generator.ts b/packages/@ama-sdk/schematics/schematics/code-generator/code-generator.ts index cf0266fcaf..8e03eba312 100644 --- a/packages/@ama-sdk/schematics/schematics/code-generator/code-generator.ts +++ b/packages/@ama-sdk/schematics/schematics/code-generator/code-generator.ts @@ -4,10 +4,10 @@ import { TaskConfiguration, TaskConfigurationGenerator, TaskExecutor, - Tree + Tree, } from '@angular-devkit/schematics'; import { - NodeModulesEngineHost + NodeModulesEngineHost, } from '@angular-devkit/schematics/tools'; /** diff --git a/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.generator.ts b/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.generator.ts index 2519cd4a07..54f97be7cc 100644 --- a/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.generator.ts +++ b/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.generator.ts @@ -1,17 +1,17 @@ import { spawn, - SpawnOptions + SpawnOptions, } from 'node:child_process'; import * as path from 'node:path'; import { - getPackageManagerName + getPackageManagerName, } from '../../helpers/node-install'; import { - CodeGenerator + CodeGenerator, } from '../code-generator'; import { defaultTypescriptGeneratorOptions, - OpenApiCliOptions + OpenApiCliOptions, } from './open-api-cli.options'; /** diff --git a/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.options.ts b/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.options.ts index 0383df3831..6071b6909d 100644 --- a/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.options.ts +++ b/packages/@ama-sdk/schematics/schematics/code-generator/open-api-cli-generator/open-api-cli.options.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - CodegenTaskOptions + CodegenTaskOptions, } from '../code-generator'; /** diff --git a/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.generator.ts b/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.generator.ts index 2baa473766..c34320c1d7 100644 --- a/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.generator.ts +++ b/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.generator.ts @@ -1,14 +1,14 @@ import { spawn, - SpawnOptions + SpawnOptions, } from 'node:child_process'; import * as path from 'node:path'; import { - CodeGenerator + CodeGenerator, } from '../code-generator'; import { defaultOptions, - JavaGeneratorTaskOptions + JavaGeneratorTaskOptions, } from './swagger-java.options'; /** diff --git a/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.options.ts b/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.options.ts index 149968dc3b..8e2e4e4cae 100644 --- a/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.options.ts +++ b/packages/@ama-sdk/schematics/schematics/code-generator/swagger-java-generator/swagger-java.options.ts @@ -1,5 +1,5 @@ import { - CodegenTaskOptions + CodegenTaskOptions, } from '../code-generator'; /** diff --git a/packages/@ama-sdk/schematics/schematics/helpers/is-typescript-project.ts b/packages/@ama-sdk/schematics/schematics/helpers/is-typescript-project.ts index cd13646ecd..1f34bb3e83 100644 --- a/packages/@ama-sdk/schematics/schematics/helpers/is-typescript-project.ts +++ b/packages/@ama-sdk/schematics/schematics/helpers/is-typescript-project.ts @@ -1,5 +1,5 @@ import type { - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@ama-sdk/schematics/schematics/helpers/node-install.ts b/packages/@ama-sdk/schematics/schematics/helpers/node-install.ts index f6a6a1a030..cf1b5a70bb 100644 --- a/packages/@ama-sdk/schematics/schematics/helpers/node-install.ts +++ b/packages/@ama-sdk/schematics/schematics/helpers/node-install.ts @@ -1,11 +1,11 @@ import { - NodePackageInstallTask + NodePackageInstallTask, } from '@angular-devkit/schematics/tasks'; import { - NodePackageName + NodePackageName, } from '@angular-devkit/schematics/tasks/package-manager/options'; import type { - SupportedPackageManagers + SupportedPackageManagers, } from '@o3r/schematics'; /** diff --git a/packages/@ama-sdk/schematics/schematics/helpers/read-package.ts b/packages/@ama-sdk/schematics/schematics/helpers/read-package.ts index 651ac95681..18fd6e058f 100644 --- a/packages/@ama-sdk/schematics/schematics/helpers/read-package.ts +++ b/packages/@ama-sdk/schematics/schematics/helpers/read-package.ts @@ -1,9 +1,9 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** Get generator package.json */ diff --git a/packages/@ama-sdk/schematics/schematics/helpers/tree-glob.ts b/packages/@ama-sdk/schematics/schematics/helpers/tree-glob.ts index 37ee703d09..3dea758ea0 100644 --- a/packages/@ama-sdk/schematics/schematics/helpers/tree-glob.ts +++ b/packages/@ama-sdk/schematics/schematics/helpers/tree-glob.ts @@ -1,6 +1,6 @@ import { DirEntry, - Tree + Tree, } from '@angular-devkit/schematics'; import * as minimatch from 'minimatch'; diff --git a/packages/@ama-sdk/schematics/schematics/java/client-core/index.spec.ts b/packages/@ama-sdk/schematics/schematics/java/client-core/index.spec.ts index 3df202fcf7..78988c116c 100644 --- a/packages/@ama-sdk/schematics/schematics/java/client-core/index.spec.ts +++ b/packages/@ama-sdk/schematics/schematics/java/client-core/index.spec.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@ama-sdk/schematics/schematics/java/client-core/index.ts b/packages/@ama-sdk/schematics/schematics/java/client-core/index.ts index b6a000b57b..2301756cf2 100644 --- a/packages/@ama-sdk/schematics/schematics/java/client-core/index.ts +++ b/packages/@ama-sdk/schematics/schematics/java/client-core/index.ts @@ -1,21 +1,21 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - SwaggerJavaGenerator + SwaggerJavaGenerator, } from '../../code-generator/swagger-java-generator/swagger-java.generator'; import { - treeGlob + treeGlob, } from '../../helpers/tree-glob'; import { - NgGenerateJavaClientCoreSchematicsSchema + NgGenerateJavaClientCoreSchematicsSchema, } from './schema'; /** Base path where to find codegen jars */ diff --git a/packages/@ama-sdk/schematics/schematics/java/client-core/schema.ts b/packages/@ama-sdk/schematics/schematics/java/client-core/schema.ts index d23def8cb9..04c2935877 100644 --- a/packages/@ama-sdk/schematics/schematics/java/client-core/schema.ts +++ b/packages/@ama-sdk/schematics/schematics/java/client-core/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateJavaClientCoreSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/schematics/schematics/migrate/index.ts b/packages/@ama-sdk/schematics/schematics/migrate/index.ts index 912723f994..625a0bf0e8 100644 --- a/packages/@ama-sdk/schematics/schematics/migrate/index.ts +++ b/packages/@ama-sdk/schematics/schematics/migrate/index.ts @@ -1,35 +1,35 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { getMigrationRuleRunner, getWorkspaceConfig, - type MigrationRulesMap + type MigrationRulesMap, } from '@o3r/schematics'; import { gt, - minVersion + minVersion, } from 'semver'; import { - isTypescriptSdk + isTypescriptSdk, } from '../helpers/is-typescript-project'; import { - updateV11_4 as updateV114 + updateV11_4 as updateV114, } from '../ng-update/typescript'; import { - updateOpenApiVersionInProject + updateOpenApiVersionInProject, } from '../ng-update/typescript/v10.3/update-openapiversion'; import { - updateRegenScript + updateRegenScript, } from '../ng-update/typescript/v11.0/update-regen-script'; import { - MigrateSchematicsSchemaOptions + MigrateSchematicsSchemaOptions, } from './schema'; const tsMigrationMap: MigrationRulesMap = { diff --git a/packages/@ama-sdk/schematics/schematics/ng-add/index.spec.ts b/packages/@ama-sdk/schematics/schematics/ng-add/index.spec.ts index f9d37e4ce6..a644d09300 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-add/index.spec.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-add/index.spec.ts @@ -2,19 +2,19 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { isJsonObject, - JsonObject + JsonObject, } from '@angular-devkit/core'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - updatePackageJsonScripts + updatePackageJsonScripts, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@ama-sdk/schematics/schematics/ng-add/index.ts b/packages/@ama-sdk/schematics/schematics/ng-add/index.ts index 781def733f..1a6a6f6c12 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-add/index.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-add/index.ts @@ -1,32 +1,32 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - isJsonObject + isJsonObject, } from '@angular-devkit/core'; import { chain, externalSchematic, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import type { JsonObject, - PackageJson + PackageJson, } from 'type-fest'; import { - DevInstall + DevInstall, } from '../helpers/node-install'; import type { - OpenApiToolsConfiguration + OpenApiToolsConfiguration, } from '../helpers/open-api-tools-configuration'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = '/package.json'; diff --git a/packages/@ama-sdk/schematics/schematics/ng-add/schema.ts b/packages/@ama-sdk/schematics/schematics/ng-add/schema.ts index e2c067effb..867dbc2184 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-add/schema.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/index.ts b/packages/@ama-sdk/schematics/schematics/ng-update/index.ts index b69c34c1dd..fed537faab 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/index.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/index.ts @@ -1,15 +1,15 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - isTypescriptSdk + isTypescriptSdk, } from '../helpers/is-typescript-project'; import { updateV10_0 as tsUpdateV10_0, updateV10_1 as tsUpdateV10_1, updateV10_3 as tsUpdateV10_3, updateV11_0 as tsUpdateV11_0, - updateV11_4 as tsUpdateV11_4 + updateV11_4 as tsUpdateV11_4, } from './typescript'; /** diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/index.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/index.ts index 0dc1631c89..06f4b27c78 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/index.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/index.ts @@ -1,26 +1,26 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { addCpyDependencies, deprecateScriptsFolder, - updateScriptPackageJson + updateScriptPackageJson, } from './v10.0/script-removal'; import { - addPresetsRenovate + addPresetsRenovate, } from './v10.1/add-presets-renovate'; import { - updateOpenApiVersionInProject + updateOpenApiVersionInProject, } from './v10.3/update-openapiversion'; import { - updateOpenapitoolsFile + updateOpenapitoolsFile, } from './v11.0/update-openapitools'; import { - updateRegenScript + updateRegenScript, } from './v11.0/update-regen-script'; import { - createGitAttributesFile + createGitAttributesFile, } from './v11.4/create-gitattributes'; /** diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.0/script-removal.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.0/script-removal.ts index 8c71403593..ea7046e80d 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.0/script-removal.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.0/script-removal.ts @@ -1,21 +1,20 @@ import { noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - DevInstall + DevInstall, } from '../../../helpers/node-install'; import { - readPackageJson + readPackageJson, } from '../../../helpers/read-package'; /** * Update the scrips from package.json */ -// eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function export const updateScriptPackageJson = (): Rule => (tree, context) => { if (!tree.exists('/package.json')) { context.logger.warn('Can not find package.json, update process will be skipped'); @@ -40,7 +39,6 @@ export const updateScriptPackageJson = (): Rule => (tree, context) => { /** * Deprecate the scripts folder */ -// eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function export const deprecateScriptsFolder = (): Rule => (tree) => { if (tree.exists('/scripts')) { tree.create('/scripts/readme.md', `## Deprecation @@ -59,7 +57,6 @@ The following scripts of this folder are not used anymore, if there is no custom /** * Add the CPY dependencies */ -// eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function export const addCpyDependencies = (): Rule => async (_, context) => { const amaSdkSchematicsPackageJson = await readPackageJson(); context.addTask(new DevInstall({ packageName: `globby@${amaSdkSchematicsPackageJson.dependencies!.globby as string}` })); diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.1/add-presets-renovate.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.1/add-presets-renovate.ts index 6801276d30..1d81450613 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.1/add-presets-renovate.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.1/add-presets-renovate.ts @@ -1,5 +1,5 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; const renovatePresets = [ diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.3/update-openapiversion.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.3/update-openapiversion.ts index 683df3c382..c446164d90 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.3/update-openapiversion.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v10.3/update-openapiversion.ts @@ -1,12 +1,12 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - chain + chain, } from '@angular-devkit/schematics'; import { getWorkspaceConfig, - globInTree + globInTree, } from '@o3r/schematics'; import * as semver from 'semver'; diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-openapitools.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-openapitools.ts index 252866a60c..32c1971fd0 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-openapitools.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-openapitools.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - findFilesInTree + findFilesInTree, } from '@o3r/schematics'; import { - LOCAL_SPEC_FILENAME + LOCAL_SPEC_FILENAME, } from '../../../helpers/generators'; /** diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-regen-script.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-regen-script.ts index 69987e0425..1de77c8e61 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-regen-script.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.0/update-regen-script.ts @@ -1,14 +1,14 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - findFilesInTree + findFilesInTree, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - LOCAL_SPEC_FILENAME + LOCAL_SPEC_FILENAME, } from '../../../helpers/generators'; const SCRIPT_REGEN_LABEL = 'spec:regen'; diff --git a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.4/create-gitattributes.ts b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.4/create-gitattributes.ts index 4961a44e86..e9e810f218 100644 --- a/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.4/create-gitattributes.ts +++ b/packages/@ama-sdk/schematics/schematics/ng-update/typescript/v11.4/create-gitattributes.ts @@ -1,5 +1,5 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; /** diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.spec.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.spec.ts index 439ac52bf9..53d4b4dd7b 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.spec.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.spec.ts @@ -1,13 +1,13 @@ import { - readFile + readFile, } from 'node:fs/promises'; import { dirname, - join + join, } from 'node:path'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; describe('Specs processing', () => { diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.ts index 7d8dcfcb37..09a36168ee 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/copy-referenced-files.ts @@ -1,11 +1,11 @@ import { - existsSync + existsSync, } from 'node:fs'; import { copyFile, mkdir, readFile, - rm + rm, } from 'node:fs/promises'; import { dirname, @@ -15,7 +15,7 @@ import { posix, relative, resolve, - sep + sep, } from 'node:path'; const refMatcher = /\B["']?\$ref["']?\s*:\s*([^\n#]+)/g; diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.spec.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.spec.ts index 83c2c13cd1..58d744fdd3 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.spec.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.spec.ts @@ -1,9 +1,9 @@ import type { OpenAPIV2, - OpenAPIV3 + OpenAPIV3, } from 'openapi-types'; import { - generateOperationFinderFromSingleFile + generateOperationFinderFromSingleFile, } from './path-extractor'; describe('generateOperationFinderFromSingleFile', () => { @@ -62,10 +62,10 @@ describe('generateOperationFinderFromSingleFile', () => { const result = generateOperationFinderFromSingleFile(spec); expect(result).toEqual([ { - path: '/pet', regexp: new RegExp('^/pet(?:/(?=$))?$'), operations: [{ 'method': 'post', 'operationId': 'addPet' }, { 'method': 'put', 'operationId': 'updatePet' }] + path: '/pet', regexp: new RegExp('^/pet(?:/(?=$))?$'), operations: [{ method: 'post', operationId: 'addPet' }, { method: 'put', operationId: 'updatePet' }] }, { - path: '/pet/{petId}', regexp: new RegExp('^/pet/((?:[^/]+?))(?:/(?=$))?$'), operations: [{ 'method': 'get', 'operationId': 'getPetById' }] + path: '/pet/{petId}', regexp: new RegExp('^/pet/((?:[^/]+?))(?:/(?=$))?$'), operations: [{ method: 'get', operationId: 'getPetById' }] } ]); }); @@ -103,7 +103,7 @@ describe('generateOperationFinderFromSingleFile', () => { const result = generateOperationFinderFromSingleFile(spec); expect(result).toEqual([ { - path: '/pet', regexp: new RegExp('^/pet(?:/(?=$))?$'), operations: [{ 'method': 'post', 'operationId': 'addPet' }] + path: '/pet', regexp: new RegExp('^/pet(?:/(?=$))?$'), operations: [{ method: 'post', operationId: 'addPet' }] } ]); }); @@ -142,7 +142,7 @@ describe('generateOperationFinderFromSingleFile', () => { const result1 = generateOperationFinderFromSingleFile(spec1); expect(result1).toEqual([ { - path: '/pet', regexp: new RegExp('^/v2/pet(?:/(?=$))?$'), operations: [{ 'method': 'post', 'operationId': 'addPet' }] + path: '/pet', regexp: new RegExp('^/v2/pet(?:/(?=$))?$'), operations: [{ method: 'post', operationId: 'addPet' }] } ]); @@ -154,7 +154,7 @@ describe('generateOperationFinderFromSingleFile', () => { const result2 = generateOperationFinderFromSingleFile(spec2); expect(result2).toEqual([ { - path: '/pet', regexp: new RegExp('^/v3/pet(?:/(?=$))?$'), operations: [{ 'method': 'post', 'operationId': 'addPet' }] + path: '/pet', regexp: new RegExp('^/v3/pet(?:/(?=$))?$'), operations: [{ method: 'post', operationId: 'addPet' }] } ]); @@ -166,7 +166,7 @@ describe('generateOperationFinderFromSingleFile', () => { const result3 = generateOperationFinderFromSingleFile(spec3); expect(result3).toEqual([ { - path: '/pet', regexp: new RegExp('^/pet(?:/(?=$))?$'), operations: [{ 'method': 'post', 'operationId': 'addPet' }] + path: '/pet', regexp: new RegExp('^/pet(?:/(?=$))?$'), operations: [{ method: 'post', operationId: 'addPet' }] } ]); }); diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.ts index 79a4c4d0a5..a8a6ab5c73 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/helpers/path-extractor.ts @@ -1,10 +1,10 @@ import type { - PathObject + PathObject, } from '@ama-sdk/core'; import type { OpenAPIV2, OpenAPIV3, - OpenAPIV3_1 + OpenAPIV3_1, } from 'openapi-types'; /** diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/index.spec.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/index.spec.ts index 867623a7ed..da11f7d25e 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/index.spec.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/index.spec.ts @@ -1,21 +1,21 @@ import * as path from 'node:path'; import type { - OpenApiToolsConfiguration + OpenApiToolsConfiguration, } from '@ama-sdk/schematics'; import { LOCAL_SPEC_FILENAME, SPEC_JSON_EXTENSION, - SPEC_YAML_EXTENSION + SPEC_YAML_EXTENSION, } from '@ama-sdk/schematics'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; import type { - JsonObject + JsonObject, } from 'type-fest'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/index.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/index.ts index c0097730e2..44fa002af1 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/index.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/index.ts @@ -1,13 +1,13 @@ import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - URL + URL, } from 'node:url'; import type { - PathObject + PathObject, } from '@ama-sdk/core'; import { apply, @@ -20,39 +20,39 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import * as semver from 'semver'; import type { - JsonObject + JsonObject, } from 'type-fest'; import { - OpenApiCliGenerator + OpenApiCliGenerator, } from '../../code-generator/open-api-cli-generator/open-api-cli.generator'; import { - OpenApiCliOptions + OpenApiCliOptions, } from '../../code-generator/open-api-cli-generator/open-api-cli.options'; import { LOCAL_SPEC_FILENAME, SPEC_JSON_EXTENSION, - SPEC_YAML_EXTENSION + SPEC_YAML_EXTENSION, } from '../../helpers/generators'; import type { OpenApiToolsConfiguration, - OpenApiToolsGenerator + OpenApiToolsGenerator, } from '../../helpers/open-api-tools-configuration'; import { - treeGlob + treeGlob, } from '../../helpers/tree-glob'; import { copyReferencedFiles, - updateLocalRelativeRefs + updateLocalRelativeRefs, } from './helpers/copy-referenced-files'; import { - generateOperationFinderFromSingleFile + generateOperationFinderFromSingleFile, } from './helpers/path-extractor'; import { - NgGenerateTypescriptSDKCoreSchematicsSchema + NgGenerateTypescriptSDKCoreSchematicsSchema, } from './schema'; const JAVA_OPTIONS = ['specPath', 'specConfigPath', 'globalProperty', 'outputPath']; diff --git a/packages/@ama-sdk/schematics/schematics/typescript/core/schema.ts b/packages/@ama-sdk/schematics/schematics/typescript/core/schema.ts index 587854ef95..72aa359707 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/core/schema.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/core/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateTypescriptSDKCoreSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/schematics/schematics/typescript/mock/index.ts b/packages/@ama-sdk/schematics/schematics/typescript/mock/index.ts index d5e274489b..80f4ec33ba 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/mock/index.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/mock/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -12,10 +12,10 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { - NgGenerateMockSchematicsSchema + NgGenerateMockSchematicsSchema, } from './schema'; function endsWith(singular: string, matches: string[], excludes: string[] = []): boolean { diff --git a/packages/@ama-sdk/schematics/schematics/typescript/mock/schema.ts b/packages/@ama-sdk/schematics/schematics/typescript/mock/schema.ts index ae710a459c..0cd966ef80 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/mock/schema.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/mock/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateMockSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/schematics/schematics/typescript/shell/index.spec.ts b/packages/@ama-sdk/schematics/schematics/typescript/shell/index.spec.ts index 3b37d188d6..622aab9b24 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/shell/index.spec.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/shell/index.spec.ts @@ -1,17 +1,17 @@ import * as path from 'node:path'; import type { - OpenApiToolsConfiguration + OpenApiToolsConfiguration, } from '@ama-sdk/schematics'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; import type { JsonObject, - PackageJson + PackageJson, } from 'type-fest'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@ama-sdk/schematics/schematics/typescript/shell/index.ts b/packages/@ama-sdk/schematics/schematics/typescript/shell/index.ts index 09da7dceda..8162fd927e 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/shell/index.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/shell/index.ts @@ -1,7 +1,7 @@ import { isAbsolute, posix, - relative + relative, } from 'node:path'; import { apply, @@ -14,21 +14,21 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { dump, - load + load, } from 'js-yaml'; import { getPackageManagerName, - NpmInstall + NpmInstall, } from '../../helpers/node-install'; import { - readPackageJson + readPackageJson, } from '../../helpers/read-package'; import type { - NgGenerateTypescriptSDKShellSchematicsSchema + NgGenerateTypescriptSDKShellSchematicsSchema, } from './schema'; /** @@ -46,7 +46,7 @@ function ngGenerateTypescriptSDKFn(options: NgGenerateTypescriptSDKShellSchemati const amaSdkSchematicsPackageJson = await readPackageJson(); const versions = { - 'tslib': amaSdkSchematicsPackageJson.dependencies!.tslib, + tslib: amaSdkSchematicsPackageJson.dependencies!.tslib, '@commitlint/cli': amaSdkSchematicsPackageJson.generatorDependencies['@commitlint/cli'], '@commitlint/config-conventional': amaSdkSchematicsPackageJson.generatorDependencies['@commitlint/config-conventional'], '@swc/helpers': amaSdkSchematicsPackageJson.generatorDependencies['@swc/helpers'], @@ -64,29 +64,29 @@ function ngGenerateTypescriptSDKFn(options: NgGenerateTypescriptSDKShellSchemati 'eslint-plugin-jsdoc': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-jsdoc'], 'eslint-plugin-prefer-arrow': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-prefer-arrow'], 'eslint-plugin-unicorn': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-unicorn'], - 'eslint': amaSdkSchematicsPackageJson.devDependencies!.eslint, - 'globals': amaSdkSchematicsPackageJson.devDependencies!.globals, - 'globby': amaSdkSchematicsPackageJson.dependencies!.globby, + eslint: amaSdkSchematicsPackageJson.devDependencies!.eslint, + globals: amaSdkSchematicsPackageJson.devDependencies!.globals, + globby: amaSdkSchematicsPackageJson.dependencies!.globby, 'isomorphic-fetch': amaSdkSchematicsPackageJson.devDependencies!['isomorphic-fetch'], - 'jest': amaSdkSchematicsPackageJson.devDependencies!.jest, - 'rxjs': amaSdkSchematicsPackageJson.dependencies!.rxjs, + jest: amaSdkSchematicsPackageJson.devDependencies!.jest, + rxjs: amaSdkSchematicsPackageJson.dependencies!.rxjs, 'ts-jest': amaSdkSchematicsPackageJson.devDependencies!['ts-jest'], - 'typescript': amaSdkSchematicsPackageJson.devDependencies!.typescript, + typescript: amaSdkSchematicsPackageJson.devDependencies!.typescript, 'jest-junit': amaSdkSchematicsPackageJson.generatorDependencies['jest-junit'], 'lint-staged': amaSdkSchematicsPackageJson.generatorDependencies['lint-staged'], - 'minimist': amaSdkSchematicsPackageJson.generatorDependencies.minimist, - 'rimraf': amaSdkSchematicsPackageJson.generatorDependencies.rimraf, + minimist: amaSdkSchematicsPackageJson.generatorDependencies.minimist, + rimraf: amaSdkSchematicsPackageJson.generatorDependencies.rimraf, 'tsc-watch': amaSdkSchematicsPackageJson.generatorDependencies['tsc-watch'], 'yaml-eslint-parser': amaSdkSchematicsPackageJson.generatorDependencies['yaml-eslint-parser'], - 'typedoc': amaSdkSchematicsPackageJson.generatorDependencies.typedoc + typedoc: amaSdkSchematicsPackageJson.generatorDependencies.typedoc }; const openApiSupportedVersion = typeof amaSdkSchematicsPackageJson.openApiSupportedVersion === 'string' && amaSdkSchematicsPackageJson.openApiSupportedVersion.replace(/\^|~/, ''); context.logger.warn(JSON.stringify(openApiSupportedVersion)); const engineVersions = { - 'node': amaSdkSchematicsPackageJson.engines!.node, - 'npm': amaSdkSchematicsPackageJson.engines!.npm, - 'yarn': amaSdkSchematicsPackageJson.engines!.yarn + node: amaSdkSchematicsPackageJson.engines!.node, + npm: amaSdkSchematicsPackageJson.engines!.npm, + yarn: amaSdkSchematicsPackageJson.engines!.yarn }; const properties = { diff --git a/packages/@ama-sdk/schematics/schematics/typescript/shell/schema.ts b/packages/@ama-sdk/schematics/schematics/typescript/shell/schema.ts index 2e4748591c..5d0dbc7899 100644 --- a/packages/@ama-sdk/schematics/schematics/typescript/shell/schema.ts +++ b/packages/@ama-sdk/schematics/schematics/typescript/shell/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateTypescriptSDKShellSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@ama-sdk/swagger-builder/eslint.local.config.mjs b/packages/@ama-sdk/swagger-builder/eslint.local.config.mjs index 937527ca81..41779bcddf 100644 --- a/packages/@ama-sdk/swagger-builder/eslint.local.config.mjs +++ b/packages/@ama-sdk/swagger-builder/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@ama-sdk/swagger-builder/src/cli/build.ts b/packages/@ama-sdk/swagger-builder/src/cli/build.ts index 64886b0f37..c846145676 100644 --- a/packages/@ama-sdk/swagger-builder/src/cli/build.ts +++ b/packages/@ama-sdk/swagger-builder/src/cli/build.ts @@ -5,22 +5,22 @@ import path from 'node:path'; import process from 'node:process'; import commander from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import semver from 'semver'; import { checkJson, - isGlobPattern + isGlobPattern, } from '../core/utils'; import { - buildSpecs + buildSpecs, } from '../helpers/build'; import { ApisConfiguration, - BuilderApiConfiguration + BuilderApiConfiguration, } from '../interfaces/apis-configuration'; import { - BuilderConfiguration + BuilderConfiguration, } from '../interfaces/builder-configuration'; process.on('unhandledRejection', (err) => { diff --git a/packages/@ama-sdk/swagger-builder/src/cli/dictionary-check.ts b/packages/@ama-sdk/swagger-builder/src/cli/dictionary-check.ts index 4c27bbfcea..f2787b325d 100644 --- a/packages/@ama-sdk/swagger-builder/src/cli/dictionary-check.ts +++ b/packages/@ama-sdk/swagger-builder/src/cli/dictionary-check.ts @@ -5,13 +5,13 @@ import path from 'node:path'; import process from 'node:process'; import commander from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { - isGlobPattern + isGlobPattern, } from '../core/utils'; import { - checkDictionaries + checkDictionaries, } from '../helpers/dictionary-check'; process.on('unhandledRejection', (err) => { diff --git a/packages/@ama-sdk/swagger-builder/src/cli/multi-success-check.ts b/packages/@ama-sdk/swagger-builder/src/cli/multi-success-check.ts index 5dc9daa3b3..93c971f414 100644 --- a/packages/@ama-sdk/swagger-builder/src/cli/multi-success-check.ts +++ b/packages/@ama-sdk/swagger-builder/src/cli/multi-success-check.ts @@ -5,17 +5,17 @@ import path from 'node:path'; import process from 'node:process'; import commander from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { - Report + Report, } from '../core/checkers/checker.interface'; import { - MultiSuccessChecker + MultiSuccessChecker, } from '../core/checkers/multi-success-checker'; import { getTargetInformation, - isGlobPattern + isGlobPattern, } from '../core/utils'; process.on('unhandledRejection', (err) => { diff --git a/packages/@ama-sdk/swagger-builder/src/cli/operation-id-check.ts b/packages/@ama-sdk/swagger-builder/src/cli/operation-id-check.ts index 8650e91acb..b23777fb3e 100644 --- a/packages/@ama-sdk/swagger-builder/src/cli/operation-id-check.ts +++ b/packages/@ama-sdk/swagger-builder/src/cli/operation-id-check.ts @@ -5,17 +5,17 @@ import path from 'node:path'; import process from 'node:process'; import commander from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { - Report + Report, } from '../core/checkers/checker.interface'; import { - OperationIdChecker + OperationIdChecker, } from '../core/checkers/operation-id-checker'; import { getTargetInformation, - isGlobPattern + isGlobPattern, } from '../core/utils'; process.on('unhandledRejection', (err) => { diff --git a/packages/@ama-sdk/swagger-builder/src/core/checkers/checker.interface.ts b/packages/@ama-sdk/swagger-builder/src/core/checkers/checker.interface.ts index 0039a37054..1711f869bb 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/checkers/checker.interface.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/checkers/checker.interface.ts @@ -1,5 +1,5 @@ import { - SwaggerSpec + SwaggerSpec, } from '../swagger-spec-wrappers/swagger-spec.interface'; /** Checker Error */ diff --git a/packages/@ama-sdk/swagger-builder/src/core/checkers/dictionary-checker.ts b/packages/@ama-sdk/swagger-builder/src/core/checkers/dictionary-checker.ts index 2be1739e1f..c4cb911109 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/checkers/dictionary-checker.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/checkers/dictionary-checker.ts @@ -1,9 +1,9 @@ import { - SwaggerSpec + SwaggerSpec, } from '../swagger-spec-wrappers/swagger-spec.interface'; import { Checker, - Report + Report, } from './checker.interface'; /** Dictionary reference object */ diff --git a/packages/@ama-sdk/swagger-builder/src/core/checkers/multi-success-checker.ts b/packages/@ama-sdk/swagger-builder/src/core/checkers/multi-success-checker.ts index 9907ecf09c..a38da0841c 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/checkers/multi-success-checker.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/checkers/multi-success-checker.ts @@ -1,10 +1,10 @@ import { - SwaggerSpec + SwaggerSpec, } from '../swagger-spec-wrappers/swagger-spec.interface'; import { Checker, CheckerError, - Report + Report, } from './checker.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/checkers/operation-id-checker.ts b/packages/@ama-sdk/swagger-builder/src/core/checkers/operation-id-checker.ts index 647eca75ee..7f67f14a7e 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/checkers/operation-id-checker.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/checkers/operation-id-checker.ts @@ -1,10 +1,10 @@ import { - SwaggerSpec + SwaggerSpec, } from '../swagger-spec-wrappers/swagger-spec.interface'; import { Checker, CheckerError, - Report + Report, } from './checker.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/formatters/json-formatter.ts b/packages/@ama-sdk/swagger-builder/src/core/formatters/json-formatter.ts index 5f3aedc6c9..15c6532088 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/formatters/json-formatter.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/formatters/json-formatter.ts @@ -1,10 +1,10 @@ import fs from 'node:fs'; import path from 'node:path'; import { - Formatter + Formatter, } from './formatter.interface'; import { - generatePackageJson + generatePackageJson, } from './utils'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/formatters/split-yaml-formatter.ts b/packages/@ama-sdk/swagger-builder/src/core/formatters/split-yaml-formatter.ts index c376ae67c5..0d3163437f 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/formatters/split-yaml-formatter.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/formatters/split-yaml-formatter.ts @@ -1,13 +1,13 @@ import fs from 'node:fs'; import path from 'node:path'; import { - dump as yamlDump + dump as yamlDump, } from 'js-yaml'; import { - Formatter + Formatter, } from './formatter.interface'; import { - generatePackageJson + generatePackageJson, } from './utils'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/formatters/yaml-formatter.ts b/packages/@ama-sdk/swagger-builder/src/core/formatters/yaml-formatter.ts index ddf7bb1d54..629b7ddf40 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/formatters/yaml-formatter.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/formatters/yaml-formatter.ts @@ -4,10 +4,10 @@ import { dump as yamlDump, } from 'js-yaml'; import { - Formatter + Formatter, } from './formatter.interface'; import { - generatePackageJson + generatePackageJson, } from './utils'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/aws-compat.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/aws-compat.ts index 982aa90732..f205376f15 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/aws-compat.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/aws-compat.ts @@ -1,5 +1,5 @@ import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/blacklist-paths.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/blacklist-paths.ts index 8a77662895..e1c879296b 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/blacklist-paths.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/blacklist-paths.ts @@ -1,5 +1,5 @@ import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/flag-definition.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/flag-definition.ts index 6550d77222..429211d3b5 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/flag-definition.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/flag-definition.ts @@ -1,5 +1,5 @@ import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/flatten-conflicted-allof.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/flatten-conflicted-allof.ts index 8379e5794a..ceb245e035 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/flatten-conflicted-allof.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/flatten-conflicted-allof.ts @@ -1,8 +1,8 @@ import { - X_VENDOR_CONFLICT_TAG + X_VENDOR_CONFLICT_TAG, } from '../utils'; import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/propagate-xvendor.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/propagate-xvendor.ts index 74bea93940..6d45f4279e 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/propagate-xvendor.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/propagate-xvendor.ts @@ -1,5 +1,5 @@ import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/resolve-discriminator.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/resolve-discriminator.ts index d8fdff87a2..5ae37aee22 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/resolve-discriminator.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/resolve-discriminator.ts @@ -1,5 +1,5 @@ import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/tree-shaker.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/tree-shaker.ts index 555a9bfcce..8020e53687 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/tree-shaker.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/tree-shaker.ts @@ -2,13 +2,13 @@ import { findReferences, getDefinitionsDeeplyAccessibleFromPaths, getDiscriminatorLinks, - getTags + getTags, } from '../../helpers/spec-parser'; import { - TreeShakingStrategy + TreeShakingStrategy, } from '../../interfaces/builder-configuration'; import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/validate.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/validate.ts index a0ccc76b96..32eadb9855 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/validate.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/validate.ts @@ -1,6 +1,6 @@ import SwaggerParser from '@apidevtools/swagger-parser'; import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/post-processes/whitelist-paths.ts b/packages/@ama-sdk/swagger-builder/src/core/post-processes/whitelist-paths.ts index e5a5390158..6cf1f998eb 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/post-processes/whitelist-paths.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/post-processes/whitelist-paths.ts @@ -1,5 +1,5 @@ import { - PostProcess + PostProcess, } from './post-process.interface'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-merger.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-merger.ts index b821284bb7..ddbf63acf6 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-merger.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-merger.ts @@ -2,21 +2,21 @@ import path from 'node:path'; import process from 'node:process'; import type { Path, - Spec + Spec, } from 'swagger-schema-official'; import { - SwaggerSpec + SwaggerSpec, } from './swagger-spec-wrappers/swagger-spec.interface'; import { isOuterRefPath, - isUrlRefPath + isUrlRefPath, } from './swagger-spec-wrappers/utils'; import { addDefinitionToSpecObj, addParameterToSpecObj, addResponseToSpecObj, addTagToSpecObj, - getTargetInformation + getTargetInformation, } from './utils'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-file.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-file.ts index 08f85b35b8..c6e4413115 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-file.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-file.ts @@ -1,12 +1,12 @@ import type { - Spec + Spec, } from 'swagger-schema-official'; import { - SwaggerSpec + SwaggerSpec, } from './swagger-spec.interface'; import { getYamlFullPath, - isOuterRefPath + isOuterRefPath, } from './utils'; export abstract class SwaggerSpecFile implements SwaggerSpec { diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-json.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-json.ts index 43524beba2..d8b23abcbf 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-json.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-json.ts @@ -1,12 +1,12 @@ import fs from 'node:fs'; import { - SwaggerSpecFile + SwaggerSpecFile, } from './swagger-spec-file'; import { - SwaggerSpec + SwaggerSpec, } from './swagger-spec.interface'; import { - sanitizeDefinition + sanitizeDefinition, } from './utils'; export class SwaggerSpecJson extends SwaggerSpecFile implements SwaggerSpec { diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-object.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-object.ts index 3b40bc4ba8..52bfeccba8 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-object.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-object.ts @@ -1,13 +1,13 @@ import type { Schema, - Spec + Spec, } from 'swagger-schema-official'; import type { AvailableSwaggerSpecTargets, - SwaggerSpec + SwaggerSpec, } from './swagger-spec.interface'; import { - sanitizeDefinition + sanitizeDefinition, } from './utils'; export class SwaggerSpecObject implements SwaggerSpec { diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-split.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-split.ts index fb8dca2b7e..cd04d5d89d 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-split.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-split.ts @@ -1,27 +1,27 @@ import fs from 'node:fs'; import path from 'node:path'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import type { - Spec + Spec, } from 'swagger-schema-official'; import { - BuilderApiConfiguration + BuilderApiConfiguration, } from '../../interfaces/apis-configuration'; import { - SwaggerSpecMerger + SwaggerSpecMerger, } from '../swagger-spec-merger'; import { checkJson, getTargetInformation, - isGlobPattern + isGlobPattern, } from '../utils'; import { - SwaggerSpecObject + SwaggerSpecObject, } from './swagger-spec-object'; import { - SwaggerSpec + SwaggerSpec, } from './swagger-spec.interface'; const apiConfigurationSchema = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', '..', 'schemas', 'api-configuration.schema.json'), { encoding: 'utf8' })); diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-yaml.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-yaml.ts index d418125ffd..d5fa54a16d 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-yaml.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec-yaml.ts @@ -1,15 +1,15 @@ import fs from 'node:fs'; import { - load as yamlLoad + load as yamlLoad, } from 'js-yaml'; import { - SwaggerSpecFile + SwaggerSpecFile, } from './swagger-spec-file'; import { - SwaggerSpec + SwaggerSpec, } from './swagger-spec.interface'; import { - sanitizeDefinition + sanitizeDefinition, } from './utils'; export class SwaggerSpecYaml extends SwaggerSpecFile implements SwaggerSpec { diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec.interface.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec.interface.ts index 0ca7cc724c..b9630512f8 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec.interface.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/swagger-spec.interface.ts @@ -3,7 +3,7 @@ import type { Path, QueryParameter, Schema, - Tag + Tag, } from 'swagger-schema-official'; /** Swagger spec available as target of $ref field */ diff --git a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/utils.ts b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/utils.ts index c11e4355b3..dc91ad05dd 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/utils.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/swagger-spec-wrappers/utils.ts @@ -1,6 +1,6 @@ import path from 'node:path'; import type { - Spec + Spec, } from 'swagger-schema-official'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/core/utils.ts b/packages/@ama-sdk/swagger-builder/src/core/utils.ts index e109c1311c..3e9556afea 100644 --- a/packages/@ama-sdk/swagger-builder/src/core/utils.ts +++ b/packages/@ama-sdk/swagger-builder/src/core/utils.ts @@ -3,35 +3,35 @@ import https from 'node:https'; import path from 'node:path'; import process from 'node:process'; import { - load + load, } from 'js-yaml'; import { - Validator + Validator, } from 'jsonschema'; import { - pascalCase + pascalCase, } from 'pascal-case'; import type { - Spec + Spec, } from 'swagger-schema-official'; import { - SwaggerSpecJson + SwaggerSpecJson, } from './swagger-spec-wrappers/swagger-spec-json'; import { - SwaggerSpecObject + SwaggerSpecObject, } from './swagger-spec-wrappers/swagger-spec-object'; import { - SwaggerSpecSplit + SwaggerSpecSplit, } from './swagger-spec-wrappers/swagger-spec-split'; import { - SwaggerSpecYaml + SwaggerSpecYaml, } from './swagger-spec-wrappers/swagger-spec-yaml'; import { AvailableSwaggerSpecTargets, - SwaggerSpec + SwaggerSpec, } from './swagger-spec-wrappers/swagger-spec.interface'; import { - isUrlRefPath + isUrlRefPath, } from './swagger-spec-wrappers/utils'; /** X Vendor to indicate that the definition is generated because of reference conflict */ diff --git a/packages/@ama-sdk/swagger-builder/src/helpers/build.ts b/packages/@ama-sdk/swagger-builder/src/helpers/build.ts index 146d455d1b..ae090271f0 100644 --- a/packages/@ama-sdk/swagger-builder/src/helpers/build.ts +++ b/packages/@ama-sdk/swagger-builder/src/helpers/build.ts @@ -1,34 +1,34 @@ import { - Formatter + Formatter, } from '../core/formatters/formatter.interface'; import { - JsonFormatter + JsonFormatter, } from '../core/formatters/json-formatter'; import { - SplitYamlFormatter + SplitYamlFormatter, } from '../core/formatters/split-yaml-formatter'; import { - YamlFormatter + YamlFormatter, } from '../core/formatters/yaml-formatter'; import { - SwaggerSpecMerger + SwaggerSpecMerger, } from '../core/swagger-spec-merger'; import { - SwaggerSpecSplit + SwaggerSpecSplit, } from '../core/swagger-spec-wrappers/swagger-spec-split'; import { getCurrentArtifactVersion, - getTargetInformation + getTargetInformation, } from '../core/utils'; import { - BuilderApiConfiguration + BuilderApiConfiguration, } from '../interfaces/apis-configuration'; import { BuilderConfiguration, - OutputFormat + OutputFormat, } from '../interfaces/builder-configuration'; import { - applyPostProcess + applyPostProcess, } from './post-process'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/helpers/dictionary-check.ts b/packages/@ama-sdk/swagger-builder/src/helpers/dictionary-check.ts index dddaea4204..2ed7a398a2 100644 --- a/packages/@ama-sdk/swagger-builder/src/helpers/dictionary-check.ts +++ b/packages/@ama-sdk/swagger-builder/src/helpers/dictionary-check.ts @@ -1,11 +1,11 @@ import { - Report + Report, } from '../core/checkers/checker.interface'; import { - DictionaryChecker + DictionaryChecker, } from '../core/checkers/dictionary-checker'; import { - getTargetInformation + getTargetInformation, } from '../core/utils'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/helpers/post-process.ts b/packages/@ama-sdk/swagger-builder/src/helpers/post-process.ts index 74d66ec528..e7b681bf75 100644 --- a/packages/@ama-sdk/swagger-builder/src/helpers/post-process.ts +++ b/packages/@ama-sdk/swagger-builder/src/helpers/post-process.ts @@ -1,32 +1,32 @@ import { - AwsCompatConverter + AwsCompatConverter, } from '../core/post-processes/aws-compat'; import { - PathsBlacklister + PathsBlacklister, } from '../core/post-processes/blacklist-paths'; import { - FlagDefinition + FlagDefinition, } from '../core/post-processes/flag-definition'; import { - FlattenConflictedAllOf + FlattenConflictedAllOf, } from '../core/post-processes/flatten-conflicted-allof'; import { - PropagateXvendor + PropagateXvendor, } from '../core/post-processes/propagate-xvendor'; import { - ResolveDiscriminator + ResolveDiscriminator, } from '../core/post-processes/resolve-discriminator'; import { - TreeShaker + TreeShaker, } from '../core/post-processes/tree-shaker'; import { - Validator + Validator, } from '../core/post-processes/validate'; import { - PathsWhitelister + PathsWhitelister, } from '../core/post-processes/whitelist-paths'; import { - BuilderConfiguration + BuilderConfiguration, } from '../interfaces/builder-configuration'; /** diff --git a/packages/@ama-sdk/swagger-builder/src/interfaces/apis-configuration.ts b/packages/@ama-sdk/swagger-builder/src/interfaces/apis-configuration.ts index 993cb6fa67..daea31b20e 100644 --- a/packages/@ama-sdk/swagger-builder/src/interfaces/apis-configuration.ts +++ b/packages/@ama-sdk/swagger-builder/src/interfaces/apis-configuration.ts @@ -1,8 +1,8 @@ import { - ApiConfiguration + ApiConfiguration, } from './api-configuration'; import { - BuilderConfiguration + BuilderConfiguration, } from './builder-configuration'; export interface BuilderApiConfiguration extends ApiConfiguration, BuilderConfiguration { diff --git a/packages/@ama-sdk/swagger-builder/tests/build.spec.ts b/packages/@ama-sdk/swagger-builder/tests/build.spec.ts index cb68a9a09d..32849de5ed 100644 --- a/packages/@ama-sdk/swagger-builder/tests/build.spec.ts +++ b/packages/@ama-sdk/swagger-builder/tests/build.spec.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - buildSpecs + buildSpecs, } from '../src/helpers/build'; const expectPath = path.resolve(__dirname, 'mocks-build'); diff --git a/packages/@ama-sdk/swagger-builder/tests/dictionary-check.spec.ts b/packages/@ama-sdk/swagger-builder/tests/dictionary-check.spec.ts index ee894faa27..77ba0f9378 100644 --- a/packages/@ama-sdk/swagger-builder/tests/dictionary-check.spec.ts +++ b/packages/@ama-sdk/swagger-builder/tests/dictionary-check.spec.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - checkDictionaries + checkDictionaries, } from '../src/helpers/dictionary-check'; const resourcePath = path.resolve(__dirname, 'mocks-dictionary-check'); diff --git a/packages/@ama-terasu/cli/eslint.local.config.mjs b/packages/@ama-terasu/cli/eslint.local.config.mjs index c392be4430..cea29ea530 100644 --- a/packages/@ama-terasu/cli/eslint.local.config.mjs +++ b/packages/@ama-terasu/cli/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@ama-terasu/cli/src/cli/ama.ts b/packages/@ama-terasu/cli/src/cli/ama.ts index bbb26fd986..cc7194ee37 100644 --- a/packages/@ama-terasu/cli/src/cli/ama.ts +++ b/packages/@ama-terasu/cli/src/cli/ama.ts @@ -1,12 +1,12 @@ #!/usr/bin/env node import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; import * as prompts from 'prompts'; import { - amaYargs + amaYargs, } from '../modules/base-yargs'; const run = async () => { diff --git a/packages/@ama-terasu/cli/src/helpers/format.helper.ts b/packages/@ama-terasu/cli/src/helpers/format.helper.ts index ec704c8946..fb44aa8b25 100644 --- a/packages/@ama-terasu/cli/src/helpers/format.helper.ts +++ b/packages/@ama-terasu/cli/src/helpers/format.helper.ts @@ -1,10 +1,10 @@ import { - EOL + EOL, } from 'node:os'; import * as chalk from 'chalk'; import { Arguments, - terminalWidth + terminalWidth, } from 'yargs'; /** diff --git a/packages/@ama-terasu/cli/src/helpers/module.helper.ts b/packages/@ama-terasu/cli/src/helpers/module.helper.ts index d20bdf4af3..f33227d75f 100644 --- a/packages/@ama-terasu/cli/src/helpers/module.helper.ts +++ b/packages/@ama-terasu/cli/src/helpers/module.helper.ts @@ -1,31 +1,31 @@ import { - exec + exec, } from 'node:child_process'; import { existsSync, promises as fs, - readFileSync + readFileSync, } from 'node:fs'; import { dirname, join, - resolve + resolve, } from 'node:path'; import { - promisify + promisify, } from 'node:util'; import { getAvailableModules, - NpmRegistryPackage + NpmRegistryPackage, } from '@o3r/schematics'; import * as chalk from 'chalk'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { dependencies, devDependencies, - peerDependencies + peerDependencies, } from '../../package.json'; const moduleScopeWhitelist = ['@o3r', '@ama-sdk', '@ama-des']; diff --git a/packages/@ama-terasu/cli/src/helpers/version.helper.ts b/packages/@ama-terasu/cli/src/helpers/version.helper.ts index 2881a9d6f3..fa8924c50b 100644 --- a/packages/@ama-terasu/cli/src/helpers/version.helper.ts +++ b/packages/@ama-terasu/cli/src/helpers/version.helper.ts @@ -1,17 +1,17 @@ import { - EOL + EOL, } from 'node:os'; import * as chalk from 'chalk'; import { name, - version + version, } from '../../package.json'; import { - formatTitle + formatTitle, } from './format.helper'; import { isInstalled, - ModuleDiscovery + ModuleDiscovery, } from './module.helper'; /** diff --git a/packages/@ama-terasu/cli/src/modules/base-context.ts b/packages/@ama-terasu/cli/src/modules/base-context.ts index e1d6b16c45..0c3dbae171 100644 --- a/packages/@ama-terasu/cli/src/modules/base-context.ts +++ b/packages/@ama-terasu/cli/src/modules/base-context.ts @@ -1,30 +1,30 @@ #!/usr/bin/env node import { - EOL + EOL, } from 'node:os'; import type { Context, RootContext, ProgressBar as SimpleProgressBar, - Task + Task, } from '@ama-terasu/core'; import * as chalk from 'chalk'; import * as logger from 'loglevel'; import { - error + error, } from 'loglevel'; import { default as ora, - oraPromise + oraPromise, } from 'ora'; import ProgressBar from 'progress'; import { Arguments, Argv, - terminalWidth + terminalWidth, } from 'yargs'; import { - formatHelpMessage + formatHelpMessage, } from '../helpers'; /** diff --git a/packages/@ama-terasu/cli/src/modules/base-yargs.ts b/packages/@ama-terasu/cli/src/modules/base-yargs.ts index 1e4f1814b7..4cf153fa3d 100644 --- a/packages/@ama-terasu/cli/src/modules/base-yargs.ts +++ b/packages/@ama-terasu/cli/src/modules/base-yargs.ts @@ -1,40 +1,40 @@ #!/usr/bin/env node import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import { - EOL + EOL, } from 'node:os'; import { - resolve + resolve, } from 'node:path'; import { AmaCliModule, - yargsAmaCli + yargsAmaCli, } from '@ama-terasu/core'; import * as chalk from 'chalk'; import { - error + error, } from 'loglevel'; import { - terminalWidth + terminalWidth, } from 'yargs'; import { formatHelpMessage, getPackageFormattedVersion, - getPackageVersion + getPackageVersion, } from '../helpers/index'; import { getCliModules, getFormattedDescription, getInstalledInformation, installDependency, - isInstalled + isInstalled, } from '../helpers/module.helper'; import { baseContext, - generateUsageMessage + generateUsageMessage, } from './base-context'; export const amaYargs = async (argv?: Record) => { diff --git a/packages/@ama-terasu/core/eslint.local.config.mjs b/packages/@ama-terasu/core/eslint.local.config.mjs index ab66651f61..61f6bdc14d 100644 --- a/packages/@ama-terasu/core/eslint.local.config.mjs +++ b/packages/@ama-terasu/core/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@ama-terasu/core/src/module/common-config.ts b/packages/@ama-terasu/core/src/module/common-config.ts index bdeff3a9df..ba4e4ebd12 100644 --- a/packages/@ama-terasu/core/src/module/common-config.ts +++ b/packages/@ama-terasu/core/src/module/common-config.ts @@ -1,9 +1,9 @@ import yargs, { ArgumentsCamelCase, - Argv + Argv, } from 'yargs'; import { - hideBin + hideBin, } from 'yargs/helpers'; /** global CLI options */ diff --git a/packages/@ama-terasu/core/src/module/helpers.ts b/packages/@ama-terasu/core/src/module/helpers.ts index 508e32307f..79d4142683 100644 --- a/packages/@ama-terasu/core/src/module/helpers.ts +++ b/packages/@ama-terasu/core/src/module/helpers.ts @@ -1,6 +1,6 @@ import { spawn, - SpawnOptionsWithoutStdio + SpawnOptionsWithoutStdio, } from 'node:child_process'; import type * as logger from 'loglevel'; diff --git a/packages/@ama-terasu/core/src/module/interface.ts b/packages/@ama-terasu/core/src/module/interface.ts index 1299581b02..cc9e2ad3f8 100644 --- a/packages/@ama-terasu/core/src/module/interface.ts +++ b/packages/@ama-terasu/core/src/module/interface.ts @@ -1,13 +1,13 @@ import type { - Logger + Logger, } from 'loglevel'; import { Arguments, - Argv + Argv, } from 'yargs'; import { CommonOptions, - yargsAmaCli + yargsAmaCli, } from './common-config'; /** Progress bar update options */ diff --git a/packages/@ama-terasu/schematics/eslint.local.config.mjs b/packages/@ama-terasu/schematics/eslint.local.config.mjs index d36e011a4f..2483f0ccf9 100644 --- a/packages/@ama-terasu/schematics/eslint.local.config.mjs +++ b/packages/@ama-terasu/schematics/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@ama-terasu/schematics/src/create-module/index.ts b/packages/@ama-terasu/schematics/src/create-module/index.ts index 217a883f92..091ac0b2e9 100644 --- a/packages/@ama-terasu/schematics/src/create-module/index.ts +++ b/packages/@ama-terasu/schematics/src/create-module/index.ts @@ -1,9 +1,9 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -15,10 +15,10 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { - CreateModuleSchematicsSchema + CreateModuleSchematicsSchema, } from './schema'; /** diff --git a/packages/@ama-terasu/schematics/src/create-module/schema.ts b/packages/@ama-terasu/schematics/src/create-module/schema.ts index b4128b37a0..708d22d126 100644 --- a/packages/@ama-terasu/schematics/src/create-module/schema.ts +++ b/packages/@ama-terasu/schematics/src/create-module/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface CreateModuleSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r-training/showcase-sdk/src/spec/api-mock.ts b/packages/@o3r-training/showcase-sdk/src/spec/api-mock.ts index 363e7a9ae5..79ab1fe3bb 100644 --- a/packages/@o3r-training/showcase-sdk/src/spec/api-mock.ts +++ b/packages/@o3r-training/showcase-sdk/src/spec/api-mock.ts @@ -1,10 +1,10 @@ import { ApiFetchClient, - BaseApiFetchClientConstructor + BaseApiFetchClientConstructor, } from '@ama-sdk/client-fetch'; import { ApiClient, - isApiClient + isApiClient, } from '@ama-sdk/core'; import * as api from '../api'; diff --git a/packages/@o3r-training/training-tools/cli/extract-folder-structure/extract-folder-structure.cts b/packages/@o3r-training/training-tools/cli/extract-folder-structure/extract-folder-structure.cts index b7a639a543..3f34d55cfe 100644 --- a/packages/@o3r-training/training-tools/cli/extract-folder-structure/extract-folder-structure.cts +++ b/packages/@o3r-training/training-tools/cli/extract-folder-structure/extract-folder-structure.cts @@ -2,18 +2,18 @@ import { lstat, readdir, readFile, - writeFile + writeFile, } from 'node:fs/promises'; import { join, - resolve + resolve, } from 'node:path'; import { - program + program, } from 'commander'; import { type FileSystem, - getFilesTree + getFilesTree, } from '../../src/public_api'; program diff --git a/packages/@o3r-training/training-tools/schematics/ng-add/index.ts b/packages/@o3r-training/training-tools/schematics/ng-add/index.ts index 465bc0dc33..912f6513c5 100644 --- a/packages/@o3r-training/training-tools/schematics/ng-add/index.ts +++ b/packages/@o3r-training/training-tools/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r-training/training-tools/schematics/ng-add/schema.ts b/packages/@o3r-training/training-tools/schematics/ng-add/schema.ts index e2c067effb..867dbc2184 100644 --- a/packages/@o3r-training/training-tools/schematics/ng-add/schema.ts +++ b/packages/@o3r-training/training-tools/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r-training/training-tools/src/utility/web-container.ts b/packages/@o3r-training/training-tools/src/utility/web-container.ts index 110f11b102..47d9c1b4d0 100644 --- a/packages/@o3r-training/training-tools/src/utility/web-container.ts +++ b/packages/@o3r-training/training-tools/src/utility/web-container.ts @@ -1,7 +1,7 @@ import type { BufferEncoding, DirEnt, - FileSystemTree + FileSystemTree, } from '@webcontainer/api'; /** diff --git a/packages/@o3r/amaterasu/amaterasu-api-spec/eslint.local.config.mjs b/packages/@o3r/amaterasu/amaterasu-api-spec/eslint.local.config.mjs index d92ac7bf87..83234e0513 100644 --- a/packages/@o3r/amaterasu/amaterasu-api-spec/eslint.local.config.mjs +++ b/packages/@o3r/amaterasu/amaterasu-api-spec/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/amaterasu/amaterasu-api-spec/src/create-extension.command.ts b/packages/@o3r/amaterasu/amaterasu-api-spec/src/create-extension.command.ts index 063a60f748..fefb016f9a 100644 --- a/packages/@o3r/amaterasu/amaterasu-api-spec/src/create-extension.command.ts +++ b/packages/@o3r/amaterasu/amaterasu-api-spec/src/create-extension.command.ts @@ -1,11 +1,11 @@ import { promises as fs, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { Context, - promiseSpawn + promiseSpawn, } from '@ama-terasu/core'; /** Option to create an application */ diff --git a/packages/@o3r/amaterasu/amaterasu-api-spec/src/index.ts b/packages/@o3r/amaterasu/amaterasu-api-spec/src/index.ts index 26812b510a..a0912ad6da 100644 --- a/packages/@o3r/amaterasu/amaterasu-api-spec/src/index.ts +++ b/packages/@o3r/amaterasu/amaterasu-api-spec/src/index.ts @@ -1,10 +1,10 @@ import { AmaCliModule, EXTRA_COMMON_OPTIONS, - MODULE_OPTIONS + MODULE_OPTIONS, } from '@ama-terasu/core'; import { - createExtension + createExtension, } from './create-extension.command'; const name = 'api-spec'; diff --git a/packages/@o3r/amaterasu/amaterasu-dodo/eslint.local.config.mjs b/packages/@o3r/amaterasu/amaterasu-dodo/eslint.local.config.mjs index 2558c4cf9c..39b1ff61ed 100644 --- a/packages/@o3r/amaterasu/amaterasu-dodo/eslint.local.config.mjs +++ b/packages/@o3r/amaterasu/amaterasu-dodo/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/amaterasu/amaterasu-dodo/src/index.ts b/packages/@o3r/amaterasu/amaterasu-dodo/src/index.ts index 99d58222ce..a0ed3575d5 100644 --- a/packages/@o3r/amaterasu/amaterasu-dodo/src/index.ts +++ b/packages/@o3r/amaterasu/amaterasu-dodo/src/index.ts @@ -1,32 +1,32 @@ #!/usr/bin/env node import { - spawn + spawn, } from 'node:child_process'; import { createWriteStream, existsSync, - promises as fs + promises as fs, } from 'node:fs'; import * as http from 'node:https'; import { - resolve + resolve, } from 'node:path'; import { - platform + platform, } from 'node:process'; import { - AmaCliModule + AmaCliModule, } from '@ama-terasu/core'; import { - extract + extract, } from 'tar'; const name = 'dodo'; const osMap: Record = { - 'darwin': 'osx-aarch_64', - 'win32': 'windows-x86_64', - 'linux': 'linux-x86_64' + darwin: 'osx-aarch_64', + win32: 'windows-x86_64', + linux: 'linux-x86_64' }; const destFolder = resolve(__dirname, '..', 'cli'); diff --git a/packages/@o3r/amaterasu/amaterasu-otter/eslint.local.config.mjs b/packages/@o3r/amaterasu/amaterasu-otter/eslint.local.config.mjs index f7b59ff45f..014d0c5cd7 100644 --- a/packages/@o3r/amaterasu/amaterasu-otter/eslint.local.config.mjs +++ b/packages/@o3r/amaterasu/amaterasu-otter/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/amaterasu/amaterasu-otter/src/create-application.command.ts b/packages/@o3r/amaterasu/amaterasu-otter/src/create-application.command.ts index 6b82fd6f0c..d440bad8f3 100644 --- a/packages/@o3r/amaterasu/amaterasu-otter/src/create-application.command.ts +++ b/packages/@o3r/amaterasu/amaterasu-otter/src/create-application.command.ts @@ -1,12 +1,12 @@ import { existsSync, promises as fs, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { Context, - promiseSpawn + promiseSpawn, } from '@ama-terasu/core'; const { peerDependencies } = JSON.parse(readFileSync(path.resolve(__dirname, '..', 'package.json'), { encoding: 'utf8' })); diff --git a/packages/@o3r/amaterasu/amaterasu-otter/src/create-custom-application.command.ts b/packages/@o3r/amaterasu/amaterasu-otter/src/create-custom-application.command.ts index 62855e2fdb..fce47a53ae 100644 --- a/packages/@o3r/amaterasu/amaterasu-otter/src/create-custom-application.command.ts +++ b/packages/@o3r/amaterasu/amaterasu-otter/src/create-custom-application.command.ts @@ -1,9 +1,9 @@ import { - resolve + resolve, } from 'node:path'; import { Context, - promiseSpawn + promiseSpawn, } from '@ama-terasu/core'; /** Option to create a Custom Application */ diff --git a/packages/@o3r/amaterasu/amaterasu-otter/src/index.ts b/packages/@o3r/amaterasu/amaterasu-otter/src/index.ts index eee1266d83..16d7e91ea3 100644 --- a/packages/@o3r/amaterasu/amaterasu-otter/src/index.ts +++ b/packages/@o3r/amaterasu/amaterasu-otter/src/index.ts @@ -1,13 +1,13 @@ import { AmaCliModule, EXTRA_COMMON_OPTIONS, - MODULE_OPTIONS + MODULE_OPTIONS, } from '@ama-terasu/core'; import { - createApplication + createApplication, } from './create-application.command'; import { - createCustomApplication + createCustomApplication, } from './create-custom-application.command'; const name = 'otter'; diff --git a/packages/@o3r/amaterasu/amaterasu-sdk/eslint.local.config.mjs b/packages/@o3r/amaterasu/amaterasu-sdk/eslint.local.config.mjs index 4cad66e620..bd71274714 100644 --- a/packages/@o3r/amaterasu/amaterasu-sdk/eslint.local.config.mjs +++ b/packages/@o3r/amaterasu/amaterasu-sdk/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/amaterasu/amaterasu-sdk/src/create-typescript.command.ts b/packages/@o3r/amaterasu/amaterasu-sdk/src/create-typescript.command.ts index e94ed893dc..32b6579e24 100644 --- a/packages/@o3r/amaterasu/amaterasu-sdk/src/create-typescript.command.ts +++ b/packages/@o3r/amaterasu/amaterasu-sdk/src/create-typescript.command.ts @@ -1,13 +1,13 @@ import { promises as fs, - readFileSync + readFileSync, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import { Context, - promiseSpawn + promiseSpawn, } from '@ama-terasu/core'; /** Option to create an application */ diff --git a/packages/@o3r/amaterasu/amaterasu-sdk/src/index.ts b/packages/@o3r/amaterasu/amaterasu-sdk/src/index.ts index 0dca10d6be..698a000f26 100644 --- a/packages/@o3r/amaterasu/amaterasu-sdk/src/index.ts +++ b/packages/@o3r/amaterasu/amaterasu-sdk/src/index.ts @@ -1,10 +1,10 @@ import { AmaCliModule, EXTRA_COMMON_OPTIONS, - MODULE_OPTIONS + MODULE_OPTIONS, } from '@ama-terasu/core'; import { - createTypescriptSdk + createTypescriptSdk, } from './create-typescript.command'; const name = 'sdk'; diff --git a/packages/@o3r/analytics/eslint.local.config.mjs b/packages/@o3r/analytics/eslint.local.config.mjs index 25e143a2d5..e799a53e7d 100644 --- a/packages/@o3r/analytics/eslint.local.config.mjs +++ b/packages/@o3r/analytics/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/analytics/plugins/webpack/build-metrics/build-stats.plugin.ts b/packages/@o3r/analytics/plugins/webpack/build-metrics/build-stats.plugin.ts index cd6e90e545..85d6fc29ea 100644 --- a/packages/@o3r/analytics/plugins/webpack/build-metrics/build-stats.plugin.ts +++ b/packages/@o3r/analytics/plugins/webpack/build-metrics/build-stats.plugin.ts @@ -1,5 +1,5 @@ import { - randomUUID + randomUUID, } from 'node:crypto'; import * as os from 'node:os'; import { @@ -8,12 +8,12 @@ import { JavascriptModulesPlugin, NormalModule, Parser, - WebpackPluginInstance + WebpackPluginInstance, } from 'webpack'; import type { ReportData, Reporter, - Timing + Timing, } from './reporters.interface'; /** @@ -235,7 +235,6 @@ export class BuildStatsPlugin implements WebpackPluginInstance { } } - // eslint-disable-next-line unicorn/consistent-function-scoping -- must keep function to have the correct context private readonly makeInterceptorFor = (_instance: string) => (hookName: string) => ({ register: (tapInfo: any) => { const { name, type, fn } = tapInfo; diff --git a/packages/@o3r/analytics/plugins/webpack/build-metrics/reporters.interface.ts b/packages/@o3r/analytics/plugins/webpack/build-metrics/reporters.interface.ts index 38603cc268..916c607b9b 100644 --- a/packages/@o3r/analytics/plugins/webpack/build-metrics/reporters.interface.ts +++ b/packages/@o3r/analytics/plugins/webpack/build-metrics/reporters.interface.ts @@ -1,8 +1,8 @@ import { - CpuInfo + CpuInfo, } from 'node:os'; import type { - Logger + Logger, } from '@o3r/core'; /** Map of timings */ diff --git a/packages/@o3r/analytics/schematics/analytics-to-component/index.spec.ts b/packages/@o3r/analytics/schematics/analytics-to-component/index.spec.ts index da794039ad..2349767ab2 100644 --- a/packages/@o3r/analytics/schematics/analytics-to-component/index.spec.ts +++ b/packages/@o3r/analytics/schematics/analytics-to-component/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddAnalyticsFn + ngAddAnalyticsFn, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/analytics/schematics/analytics-to-component/index.ts b/packages/@o3r/analytics/schematics/analytics-to-component/index.ts index 613123e008..bc9c01f983 100644 --- a/packages/@o3r/analytics/schematics/analytics-to-component/index.ts +++ b/packages/@o3r/analytics/schematics/analytics-to-component/index.ts @@ -1,7 +1,7 @@ import { basename, dirname, - posix + posix, } from 'node:path'; import { apply, @@ -16,7 +16,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addCommentsOnClassProperties, @@ -32,17 +32,17 @@ import { isO3rClassComponent, NoOtterComponent, O3rCliError, - sortClassElement + sortClassElement, } from '@o3r/schematics'; import { - addImportToModule + addImportToModule, } from '@schematics/angular/utility/ast-utils'; import { - applyToUpdateRecorder + applyToUpdateRecorder, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import type { - NgAddAnalyticsSchematicsSchema + NgAddAnalyticsSchematicsSchema, } from './schema'; const analyticsProperties = [ diff --git a/packages/@o3r/analytics/schematics/analytics-to-component/schema.ts b/packages/@o3r/analytics/schematics/analytics-to-component/schema.ts index ea540670c9..7900c1ff02 100644 --- a/packages/@o3r/analytics/schematics/analytics-to-component/schema.ts +++ b/packages/@o3r/analytics/schematics/analytics-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddAnalyticsSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/analytics/schematics/index.it.spec.ts b/packages/@o3r/analytics/schematics/index.it.spec.ts index fbe8df30fa..aba1a0a309 100644 --- a/packages/@o3r/analytics/schematics/index.it.spec.ts +++ b/packages/@o3r/analytics/schematics/index.it.spec.ts @@ -12,7 +12,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add analytics', () => { diff --git a/packages/@o3r/analytics/schematics/ng-add/index.ts b/packages/@o3r/analytics/schematics/ng-add/index.ts index 33422ff0c0..0b089ca2a5 100644 --- a/packages/@o3r/analytics/schematics/ng-add/index.ts +++ b/packages/@o3r/analytics/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/analytics/schematics/ng-add/schema.ts b/packages/@o3r/analytics/schematics/ng-add/schema.ts index d60692a91b..57eaf4bbb2 100644 --- a/packages/@o3r/analytics/schematics/ng-add/schema.ts +++ b/packages/@o3r/analytics/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/analytics/src/directives/track-events/base-track-events.ts b/packages/@o3r/analytics/src/directives/track-events/base-track-events.ts index 8075311ddc..016ff85297 100644 --- a/packages/@o3r/analytics/src/directives/track-events/base-track-events.ts +++ b/packages/@o3r/analytics/src/directives/track-events/base-track-events.ts @@ -2,20 +2,20 @@ import { Directive, ElementRef, OnDestroy, - Renderer2 + Renderer2, } from '@angular/core'; import { - Subscription + Subscription, } from 'rxjs'; import { AnalyticsEvent, ConstructorAnalyticsEvent, ConstructorAnalyticsEventParameters, EventContext, - TrackEventName + TrackEventName, } from '../../contracts'; import { - EventTrackService + EventTrackService, } from '../../services/event-track'; @Directive() diff --git a/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.directive.ts b/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.directive.ts index c7896896e5..9c774bddeb 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.directive.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.directive.ts @@ -3,19 +3,19 @@ import { ElementRef, Input, OnInit, - Renderer2 + Renderer2, } from '@angular/core'; import { AnalyticsEvent, ConstructorAnalyticsEvent, ConstructorAnalyticsEventParameters, - EventContext + EventContext, } from '../../../contracts/index'; import { - EventTrackService + EventTrackService, } from '../../../services/event-track/event-track.service'; import { - BaseTrackEvents + BaseTrackEvents, } from '../base-track-events'; /** diff --git a/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.spec.ts b/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.spec.ts index a88f6ac454..33a916ef60 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.spec.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-click/track-click.spec.ts @@ -1,30 +1,30 @@ import { Component, - DebugElement + DebugElement, } from '@angular/core'; import { ComponentFixture, getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { - By + By, } from '@angular/platform-browser'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - RouterTestingModule + RouterTestingModule, } from '@angular/router/testing'; import { - UiEventPayload + UiEventPayload, } from '../../../contracts'; import { - EventTrackService + EventTrackService, } from '../../../services/event-track'; import { - TrackEventsModule + TrackEventsModule, } from '../track-events.module'; const dummyEventContext = { eventInfo: { eventName: '', pageId: '', timeStamp: '' } }; diff --git a/packages/@o3r/analytics/src/directives/track-events/track-events.directive.ts b/packages/@o3r/analytics/src/directives/track-events/track-events.directive.ts index 93defef385..db556226b3 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-events.directive.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-events.directive.ts @@ -4,20 +4,20 @@ import { Input, OnChanges, Renderer2, - SimpleChanges + SimpleChanges, } from '@angular/core'; import { AnalyticsEvent, ConstructorAnalyticsEvent, ConstructorAnalyticsEventParameters, EventContext, - TrackEventName + TrackEventName, } from '../../contracts'; import { - EventTrackService + EventTrackService, } from '../../services/event-track/event-track.service'; import { - BaseTrackEvents + BaseTrackEvents, } from './base-track-events'; /** diff --git a/packages/@o3r/analytics/src/directives/track-events/track-events.module.ts b/packages/@o3r/analytics/src/directives/track-events/track-events.module.ts index 020accbf61..614fbb1cca 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-events.module.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-events.module.ts @@ -1,14 +1,14 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - TrackClickDirective + TrackClickDirective, } from './track-click/track-click.directive'; import { - TrackEventsDirective + TrackEventsDirective, } from './track-events.directive'; import { - TrackFocusDirective + TrackFocusDirective, } from './track-focus/track-focus.directive'; @NgModule({ diff --git a/packages/@o3r/analytics/src/directives/track-events/track-events.spec.ts b/packages/@o3r/analytics/src/directives/track-events/track-events.spec.ts index a24d9a75fe..eb5d4fc76f 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-events.spec.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-events.spec.ts @@ -1,30 +1,30 @@ import { Component, - DebugElement + DebugElement, } from '@angular/core'; import { ComponentFixture, getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { - By + By, } from '@angular/platform-browser'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - RouterTestingModule + RouterTestingModule, } from '@angular/router/testing'; import { - UiEventPayload + UiEventPayload, } from '../../contracts'; import { - EventTrackService + EventTrackService, } from '../../services/event-track'; import { - TrackEventsModule + TrackEventsModule, } from './track-events.module'; @Component({ diff --git a/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.directive.ts b/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.directive.ts index a0d2839f3f..3b3d7607e3 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.directive.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.directive.ts @@ -3,19 +3,19 @@ import { ElementRef, Input, OnInit, - Renderer2 + Renderer2, } from '@angular/core'; import { AnalyticsEvent, ConstructorAnalyticsEvent, ConstructorAnalyticsEventParameters, - EventContext + EventContext, } from '../../../contracts/index'; import { - EventTrackService + EventTrackService, } from '../../../services/event-track/event-track.service'; import { - BaseTrackEvents + BaseTrackEvents, } from '../base-track-events'; /** diff --git a/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.spec.ts b/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.spec.ts index 52909a6afd..f7c5debb21 100644 --- a/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.spec.ts +++ b/packages/@o3r/analytics/src/directives/track-events/track-focus/track-focus.spec.ts @@ -1,30 +1,30 @@ import { Component, - DebugElement + DebugElement, } from '@angular/core'; import { ComponentFixture, getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { - By + By, } from '@angular/platform-browser'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - RouterTestingModule + RouterTestingModule, } from '@angular/router/testing'; import { - UiEventPayload + UiEventPayload, } from '../../../contracts/index'; import { - EventTrackService + EventTrackService, } from '../../../services/event-track/index'; import { - TrackEventsModule + TrackEventsModule, } from '../track-events.module'; const dummyEventContext = { eventInfo: { eventName: '', pageId: '', timeStamp: '' } }; diff --git a/packages/@o3r/analytics/src/fixtures/jasmine/event-track.service.fixture.jasmine.ts b/packages/@o3r/analytics/src/fixtures/jasmine/event-track.service.fixture.jasmine.ts index dc6115ca4d..4cee06ecd4 100644 --- a/packages/@o3r/analytics/src/fixtures/jasmine/event-track.service.fixture.jasmine.ts +++ b/packages/@o3r/analytics/src/fixtures/jasmine/event-track.service.fixture.jasmine.ts @@ -1,5 +1,5 @@ import type { - EventTrackService + EventTrackService, } from '@o3r/analytics'; /** diff --git a/packages/@o3r/analytics/src/fixtures/jest/event-track.service.fixture.jest.ts b/packages/@o3r/analytics/src/fixtures/jest/event-track.service.fixture.jest.ts index d2bbdb9845..f61c9bce8c 100644 --- a/packages/@o3r/analytics/src/fixtures/jest/event-track.service.fixture.jest.ts +++ b/packages/@o3r/analytics/src/fixtures/jest/event-track.service.fixture.jest.ts @@ -1,5 +1,5 @@ import type { - EventTrackService + EventTrackService, } from '@o3r/analytics'; /** diff --git a/packages/@o3r/analytics/src/services/event-track/event-track.configuration.ts b/packages/@o3r/analytics/src/services/event-track/event-track.configuration.ts index 2b886fe9af..7315251845 100644 --- a/packages/@o3r/analytics/src/services/event-track/event-track.configuration.ts +++ b/packages/@o3r/analytics/src/services/event-track/event-track.configuration.ts @@ -1,5 +1,5 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; /** Controls the activation of mesurements and ui events tracking */ diff --git a/packages/@o3r/analytics/src/services/event-track/event-track.service.spec.ts b/packages/@o3r/analytics/src/services/event-track/event-track.service.spec.ts index 317ae56742..70527a3af3 100644 --- a/packages/@o3r/analytics/src/services/event-track/event-track.service.spec.ts +++ b/packages/@o3r/analytics/src/services/event-track/event-track.service.spec.ts @@ -1,36 +1,35 @@ import type { - Mark + Mark, } from '@ama-sdk/core'; import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { NavigationEnd, - Router + Router, } from '@angular/router'; import { firstValueFrom, - Observable + Observable, } from 'rxjs'; import { - skip + skip, } from 'rxjs/operators'; import { - EVENT_TRACK_SERVICE_CONFIGURATION + EVENT_TRACK_SERVICE_CONFIGURATION, } from './event-track.configuration'; import { - EventTrackService + EventTrackService, } from './event-track.service'; class MockRouter { public p1 = new NavigationEnd(0, '/page1', '/page1'); public p2 = new NavigationEnd(1, '/page2', '/page2'); - // eslint-disable-next-line unicorn/consistent-function-scoping -- keep for readability public events = new Observable((observer) => { observer.next(this.p1); setTimeout(() => { diff --git a/packages/@o3r/analytics/src/services/event-track/event-track.service.ts b/packages/@o3r/analytics/src/services/event-track/event-track.service.ts index dddc2c8419..83796d1ac5 100644 --- a/packages/@o3r/analytics/src/services/event-track/event-track.service.ts +++ b/packages/@o3r/analytics/src/services/event-track/event-track.service.ts @@ -1,23 +1,23 @@ /* eslint-disable @typescript-eslint/naming-convention -- naming convention for DOM, FP, and FMP imposed by Lighthouse */ import type { - Mark + Mark, } from '@ama-sdk/core'; import { Inject, Injectable, NgZone, - Optional + Optional, } from '@angular/core'; import { NavigationEnd, - Router + Router, } from '@angular/router'; import { BehaviorSubject, combineLatest, fromEvent, Observable, - ReplaySubject + ReplaySubject, } from 'rxjs'; import { delay, @@ -26,7 +26,7 @@ import { skipWhile, take, takeWhile, - withLatestFrom + withLatestFrom, } from 'rxjs/operators'; import { CustomEventMarks, @@ -35,12 +35,12 @@ import { FirstLoadDataPayload, PerfEventPayload, ServerCallMetric, - UiEventPayload + UiEventPayload, } from '../../contracts'; import { defaultEventTrackConfiguration, EVENT_TRACK_SERVICE_CONFIGURATION, - EventTrackConfiguration + EventTrackConfiguration, } from './event-track.configuration'; /** The initial value of the performance measurements */ diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.actions.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.actions.ts index d4b903a6b6..d806be031b 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.actions.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.actions.ts @@ -1,10 +1,10 @@ import { createAction, - props + props, } from '@ngrx/store'; import { EventTrackState, - RegisterHeroComponentPayload + RegisterHeroComponentPayload, } from './event-track.state'; /** StateActions */ diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.module.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.module.ts index ce0c96da35..248672c4ab 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.module.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - eventTrackReducer + eventTrackReducer, } from './event-track.reducer'; import { EVENT_TRACK_STORE_NAME, - EventTrackState + EventTrackState, } from './event-track.state'; /** Token of the EventTrack reducer */ diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.spec.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.spec.ts index 1ccbdc5e96..cde67b9b61 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.spec.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.spec.ts @@ -1,11 +1,11 @@ import * as actions from './event-track.actions'; import { eventTrackInitialState, - eventTrackReducer + eventTrackReducer, } from './event-track.reducer'; import { EventTrackState, - RegisterHeroComponentPayload + RegisterHeroComponentPayload, } from './event-track.state'; describe('EventTrack Store reducer', () => { diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.ts index d361fbcefe..dfd10b7d40 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.reducer.ts @@ -2,12 +2,12 @@ import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './event-track.actions'; import { EventTrackState, - HeroComponent + HeroComponent, } from './event-track.state'; /** The initial value of the Hero component */ diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.spec.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.spec.ts index bd70c75ce5..235d9d5e21 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.spec.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.spec.ts @@ -1,9 +1,9 @@ import { - eventTrackInitialState + eventTrackInitialState, } from './event-track.reducer'; import * as selectors from './event-track.selectors'; import { - EventTrackState + EventTrackState, } from './event-track.state'; describe('EventTrack Selectors tests', () => { diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.ts index 4ad050c260..d948fb3377 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.selectors.ts @@ -1,10 +1,10 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { EVENT_TRACK_STORE_NAME, - EventTrackState + EventTrackState, } from './event-track.state'; /** Select EventTrack State */ diff --git a/packages/@o3r/analytics/src/stores/event-track/event-track.sync.ts b/packages/@o3r/analytics/src/stores/event-track/event-track.sync.ts index 7ef2f1b04e..4a1fd0b479 100644 --- a/packages/@o3r/analytics/src/stores/event-track/event-track.sync.ts +++ b/packages/@o3r/analytics/src/stores/event-track/event-track.sync.ts @@ -1,11 +1,11 @@ import type { - Serializer + Serializer, } from '@o3r/core'; import { - eventTrackInitialState + eventTrackInitialState, } from './event-track.reducer'; import { - EventTrackState + EventTrackState, } from './event-track.state'; export const eventTrackStorageSync: Serializer = { diff --git a/packages/@o3r/apis-manager/eslint.local.config.mjs b/packages/@o3r/apis-manager/eslint.local.config.mjs index 70298c302a..3c02ea325e 100644 --- a/packages/@o3r/apis-manager/eslint.local.config.mjs +++ b/packages/@o3r/apis-manager/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/apis-manager/schematics/helpers/update-api-deps/index.ts b/packages/@o3r/apis-manager/schematics/helpers/update-api-deps/index.ts index 163156796c..ee0d925565 100644 --- a/packages/@o3r/apis-manager/schematics/helpers/update-api-deps/index.ts +++ b/packages/@o3r/apis-manager/schematics/helpers/update-api-deps/index.ts @@ -2,25 +2,25 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getAppModuleFilePath, getModuleIndex, getWorkspaceConfig, insertBeforeModule as o3rInsertBeforeModule, - insertImportToModuleFile as o3rInsertImportToModuleFile + insertImportToModuleFile as o3rInsertImportToModuleFile, } from '@o3r/schematics'; import { addRootImport, - addRootProvider + addRootProvider, } from '@schematics/angular/utility'; import { - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import * as ts from 'typescript'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../../ng-add/schema'; /** diff --git a/packages/@o3r/apis-manager/schematics/index.it.spec.ts b/packages/@o3r/apis-manager/schematics/index.it.spec.ts index 011b61d7b3..42129d8b57 100644 --- a/packages/@o3r/apis-manager/schematics/index.it.spec.ts +++ b/packages/@o3r/apis-manager/schematics/index.it.spec.ts @@ -11,7 +11,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('new otter application with apis-manager', () => { diff --git a/packages/@o3r/apis-manager/schematics/ng-add/index.ts b/packages/@o3r/apis-manager/schematics/ng-add/index.ts index 5304b4dd21..215754153a 100644 --- a/packages/@o3r/apis-manager/schematics/ng-add/index.ts +++ b/packages/@o3r/apis-manager/schematics/ng-add/index.ts @@ -2,10 +2,10 @@ import * as path from 'node:path'; import { chain, noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@o3r/apis-manager/schematics/ng-add/schema.ts b/packages/@o3r/apis-manager/schematics/ng-add/schema.ts index 1d6f9b0c54..c038ded228 100644 --- a/packages/@o3r/apis-manager/schematics/ng-add/schema.ts +++ b/packages/@o3r/apis-manager/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/apis-manager/src/apis-manager/api-factory.service.ts b/packages/@o3r/apis-manager/src/apis-manager/api-factory.service.ts index 8c4492a5e3..73b4f1a645 100644 --- a/packages/@o3r/apis-manager/src/apis-manager/api-factory.service.ts +++ b/packages/@o3r/apis-manager/src/apis-manager/api-factory.service.ts @@ -1,19 +1,19 @@ import type { Api, ApiClient, - ApiName + ApiName, } from '@ama-sdk/core'; import { Inject, Injectable, InjectionToken, - Optional + Optional, } from '@angular/core'; import { - ApiManager + ApiManager, } from './api-manager'; import { - API_TOKEN + API_TOKEN, } from './api-manager.token'; /** Type of the Class of an SDK Api */ diff --git a/packages/@o3r/apis-manager/src/apis-manager/api-manager.helpers.spec.ts b/packages/@o3r/apis-manager/src/apis-manager/api-manager.helpers.spec.ts index ff7784a906..81a1592a2c 100644 --- a/packages/@o3r/apis-manager/src/apis-manager/api-manager.helpers.spec.ts +++ b/packages/@o3r/apis-manager/src/apis-manager/api-manager.helpers.spec.ts @@ -1,5 +1,5 @@ import { - appendPreconnect + appendPreconnect, } from './api-manager.helpers'; describe('appendPreconnect', () => { diff --git a/packages/@o3r/apis-manager/src/apis-manager/api-manager.module.ts b/packages/@o3r/apis-manager/src/apis-manager/api-manager.module.ts index 5f28c23ccb..9b618ec451 100644 --- a/packages/@o3r/apis-manager/src/apis-manager/api-manager.module.ts +++ b/packages/@o3r/apis-manager/src/apis-manager/api-manager.module.ts @@ -1,15 +1,15 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - ApiFactoryService + ApiFactoryService, } from './api-factory.service'; import { - ApiManager + ApiManager, } from './api-manager'; import { - API_TOKEN + API_TOKEN, } from './api-manager.token'; // Module that needs to be imported by the application to instantiate an SDK configuration. diff --git a/packages/@o3r/apis-manager/src/apis-manager/api-manager.token.ts b/packages/@o3r/apis-manager/src/apis-manager/api-manager.token.ts index 279d4943c0..b650b7f9b8 100644 --- a/packages/@o3r/apis-manager/src/apis-manager/api-manager.token.ts +++ b/packages/@o3r/apis-manager/src/apis-manager/api-manager.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - ApiManager + ApiManager, } from './api-manager'; /** diff --git a/packages/@o3r/apis-manager/src/apis-manager/api-manager.ts b/packages/@o3r/apis-manager/src/apis-manager/api-manager.ts index 766eb75cca..c04a17205a 100644 --- a/packages/@o3r/apis-manager/src/apis-manager/api-manager.ts +++ b/packages/@o3r/apis-manager/src/apis-manager/api-manager.ts @@ -1,6 +1,6 @@ import type { Api, - ApiClient + ApiClient, } from '@ama-sdk/core'; /** diff --git a/packages/@o3r/application/eslint.local.config.mjs b/packages/@o3r/application/eslint.local.config.mjs index ac73581c7c..d78aac81ab 100644 --- a/packages/@o3r/application/eslint.local.config.mjs +++ b/packages/@o3r/application/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/application/schematics/index.it.spec.ts b/packages/@o3r/application/schematics/index.it.spec.ts index 74fe785049..25c72d03b4 100644 --- a/packages/@o3r/application/schematics/index.it.spec.ts +++ b/packages/@o3r/application/schematics/index.it.spec.ts @@ -10,7 +10,7 @@ import { getDefaultExecSyncOptions, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('new Angular application', () => { diff --git a/packages/@o3r/application/schematics/ng-add/helpers/devtools-registration.ts b/packages/@o3r/application/schematics/ng-add/helpers/devtools-registration.ts index 75f5aadac7..a5fbb93d83 100644 --- a/packages/@o3r/application/schematics/ng-add/helpers/devtools-registration.ts +++ b/packages/@o3r/application/schematics/ng-add/helpers/devtools-registration.ts @@ -1,13 +1,13 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../schema'; const DEVTOOL_MODULE_NAME = 'ApplicationDevtoolsModule'; diff --git a/packages/@o3r/application/schematics/ng-add/index.ts b/packages/@o3r/application/schematics/ng-add/index.ts index 088fc75765..575d681931 100644 --- a/packages/@o3r/application/schematics/ng-add/index.ts +++ b/packages/@o3r/application/schematics/ng-add/index.ts @@ -2,19 +2,19 @@ import * as path from 'node:path'; import type { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - chain + chain, } from '@angular-devkit/schematics'; import { - addRootImport + addRootImport, } from '@schematics/angular/utility'; import { - registerDevtools + registerDevtools, } from './helpers/devtools-registration'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@o3r/application/schematics/ng-add/schema.ts b/packages/@o3r/application/schematics/ng-add/schema.ts index d60692a91b..57eaf4bbb2 100644 --- a/packages/@o3r/application/schematics/ng-add/schema.ts +++ b/packages/@o3r/application/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/application/schematics/ng-update/index.ts b/packages/@o3r/application/schematics/ng-update/index.ts index 523801d9ee..59f3b8fac2 100644 --- a/packages/@o3r/application/schematics/ng-update/index.ts +++ b/packages/@o3r/application/schematics/ng-update/index.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateCmsJsonFile + updateCmsJsonFile, } from './v10.0/update-cms-config'; /** diff --git a/packages/@o3r/application/schematics/ng-update/v10.0/update-cms-config.ts b/packages/@o3r/application/schematics/ng-update/v10.0/update-cms-config.ts index 0813470d64..33a4076895 100644 --- a/packages/@o3r/application/schematics/ng-update/v10.0/update-cms-config.ts +++ b/packages/@o3r/application/schematics/ng-update/v10.0/update-cms-config.ts @@ -1,8 +1,8 @@ import { - basename + basename, } from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/application/src/devkit/application-devkit.interface.ts b/packages/@o3r/application/src/devkit/application-devkit.interface.ts index 4bc0f730cc..d8e3061341 100644 --- a/packages/@o3r/application/src/devkit/application-devkit.interface.ts +++ b/packages/@o3r/application/src/devkit/application-devkit.interface.ts @@ -3,7 +3,7 @@ import type { DevtoolsCommonOptions, MessageDataTypes, OtterMessageContent, - RequestMessagesContentMessage + RequestMessagesContentMessage, } from '@o3r/core'; export interface ApplicationDevtoolsServiceOptions extends DevtoolsCommonOptions { diff --git a/packages/@o3r/application/src/devkit/application-devtools.console.service.ts b/packages/@o3r/application/src/devkit/application-devtools.console.service.ts index cede68dc00..9e64ba9bc2 100644 --- a/packages/@o3r/application/src/devkit/application-devtools.console.service.ts +++ b/packages/@o3r/application/src/devkit/application-devtools.console.service.ts @@ -2,21 +2,21 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import type { DevtoolsServiceInterface, - WindowWithDevtools + WindowWithDevtools, } from '@o3r/core'; import { - ApplicationDevtoolsServiceOptions + ApplicationDevtoolsServiceOptions, } from './application-devkit.interface'; import { - OtterApplicationDevtools + OtterApplicationDevtools, } from './application-devtools.service'; import { OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_APPLICATION_DEVTOOLS_OPTIONS + OTTER_APPLICATION_DEVTOOLS_OPTIONS, } from './application-devtools.token'; @Injectable({ diff --git a/packages/@o3r/application/src/devkit/application-devtools.message.service.ts b/packages/@o3r/application/src/devkit/application-devtools.message.service.ts index c056932a96..f0d438a36a 100644 --- a/packages/@o3r/application/src/devkit/application-devtools.message.service.ts +++ b/packages/@o3r/application/src/devkit/application-devtools.message.service.ts @@ -1,43 +1,43 @@ import { - DOCUMENT + DOCUMENT, } from '@angular/common'; import { inject, Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { DevtoolsServiceInterface, filterMessageContent, - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { isVisualTestingEnabled, prepareVisualTesting, - toggleVisualTestingRender + toggleVisualTestingRender, } from '@o3r/testing/visual-test/utils'; import { fromEvent, - Subscription + Subscription, } from 'rxjs'; import { type ApplicationDevtoolsServiceOptions, type ApplicationMessageDataTypes, type AvailableApplicationMessageContents, isApplicationMessage, - type StateSelectionContentMessage + type StateSelectionContentMessage, } from './application-devkit.interface'; import { - OtterApplicationDevtools + OtterApplicationDevtools, } from './application-devtools.service'; import { OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_APPLICATION_DEVTOOLS_OPTIONS + OTTER_APPLICATION_DEVTOOLS_OPTIONS, } from './application-devtools.token'; const OTTER_STATE_RIBBON_ID = 'otter-devtools-state-ribbon'; diff --git a/packages/@o3r/application/src/devkit/application-devtools.module.ts b/packages/@o3r/application/src/devkit/application-devtools.module.ts index 7171c6042c..c51727fffc 100644 --- a/packages/@o3r/application/src/devkit/application-devtools.module.ts +++ b/packages/@o3r/application/src/devkit/application-devtools.module.ts @@ -1,22 +1,22 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import type { - ApplicationDevtoolsServiceOptions + ApplicationDevtoolsServiceOptions, } from './application-devkit.interface'; import { - ApplicationDevtoolsConsoleService + ApplicationDevtoolsConsoleService, } from './application-devtools.console.service'; import { - ApplicationDevtoolsMessageService + ApplicationDevtoolsMessageService, } from './application-devtools.message.service'; import { - OtterApplicationDevtools + OtterApplicationDevtools, } from './application-devtools.service'; import { OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_APPLICATION_DEVTOOLS_OPTIONS + OTTER_APPLICATION_DEVTOOLS_OPTIONS, } from './application-devtools.token'; @NgModule({ diff --git a/packages/@o3r/application/src/devkit/application-devtools.service.ts b/packages/@o3r/application/src/devkit/application-devtools.service.ts index dec8837943..bc63bbfe31 100644 --- a/packages/@o3r/application/src/devkit/application-devtools.service.ts +++ b/packages/@o3r/application/src/devkit/application-devtools.service.ts @@ -1,22 +1,22 @@ import { - DOCUMENT + DOCUMENT, } from '@angular/common'; import { inject, - Injectable + Injectable, } from '@angular/core'; import { type Dataset, - isProductionEnvironment + isProductionEnvironment, } from '@o3r/core'; import { - ENVIRONMENT_CONFIG_TOKEN + ENVIRONMENT_CONFIG_TOKEN, } from '@o3r/routing'; import type { - ApplicationInformation + ApplicationInformation, } from './application-devkit.interface'; import { - OTTER_APPLICATION_DEVTOOLS_OPTIONS + OTTER_APPLICATION_DEVTOOLS_OPTIONS, } from './application-devtools.token'; @Injectable({ providedIn: 'root' }) diff --git a/packages/@o3r/application/src/devkit/application-devtools.token.ts b/packages/@o3r/application/src/devkit/application-devtools.token.ts index 770f5fb0a3..5e4bd7150e 100644 --- a/packages/@o3r/application/src/devkit/application-devtools.token.ts +++ b/packages/@o3r/application/src/devkit/application-devtools.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - ApplicationDevtoolsServiceOptions + ApplicationDevtoolsServiceOptions, } from './application-devkit.interface'; export const OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS: ApplicationDevtoolsServiceOptions = { diff --git a/packages/@o3r/artifactory-tools/eslint.local.config.mjs b/packages/@o3r/artifactory-tools/eslint.local.config.mjs index 589d79da20..1b3b2d3f7f 100644 --- a/packages/@o3r/artifactory-tools/eslint.local.config.mjs +++ b/packages/@o3r/artifactory-tools/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/artifactory-tools/schematics/ng-add/index.ts b/packages/@o3r/artifactory-tools/schematics/ng-add/index.ts index f4be6ee3e0..08c2851974 100644 --- a/packages/@o3r/artifactory-tools/schematics/ng-add/index.ts +++ b/packages/@o3r/artifactory-tools/schematics/ng-add/index.ts @@ -1,8 +1,8 @@ import { - noop + noop, } from '@angular-devkit/schematics'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/artifactory-tools/src/cli/artifact-cleaner.ts b/packages/@o3r/artifactory-tools/src/cli/artifact-cleaner.ts index b6fec920a7..af135f0f65 100644 --- a/packages/@o3r/artifactory-tools/src/cli/artifact-cleaner.ts +++ b/packages/@o3r/artifactory-tools/src/cli/artifact-cleaner.ts @@ -1,10 +1,10 @@ #!/usr/bin/env node import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import { - program + program, } from 'commander'; import * as winston from 'winston'; diff --git a/packages/@o3r/artifactory-tools/src/cli/pr-artifact-cleaner.ts b/packages/@o3r/artifactory-tools/src/cli/pr-artifact-cleaner.ts index 734b743f1b..311dc96e51 100644 --- a/packages/@o3r/artifactory-tools/src/cli/pr-artifact-cleaner.ts +++ b/packages/@o3r/artifactory-tools/src/cli/pr-artifact-cleaner.ts @@ -1,10 +1,10 @@ #!/usr/bin/env node import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import { - program + program, } from 'commander'; import * as winston from 'winston'; diff --git a/packages/@o3r/azure-tools/eslint.local.config.mjs b/packages/@o3r/azure-tools/eslint.local.config.mjs index 8cff4e8304..a00097740c 100644 --- a/packages/@o3r/azure-tools/eslint.local.config.mjs +++ b/packages/@o3r/azure-tools/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/azure-tools/schematics/ng-add/index.ts b/packages/@o3r/azure-tools/schematics/ng-add/index.ts index 66e7b56d66..87d567fdcc 100644 --- a/packages/@o3r/azure-tools/schematics/ng-add/index.ts +++ b/packages/@o3r/azure-tools/schematics/ng-add/index.ts @@ -1,8 +1,8 @@ import { - noop + noop, } from '@angular-devkit/schematics'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/azure-tools/src/cli/comment-pr.ts b/packages/@o3r/azure-tools/src/cli/comment-pr.ts index 125788ce96..cc7ffa8ece 100644 --- a/packages/@o3r/azure-tools/src/cli/comment-pr.ts +++ b/packages/@o3r/azure-tools/src/cli/comment-pr.ts @@ -1,15 +1,15 @@ #!/usr/bin/env node import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import { Option, - program + program, } from 'commander'; import * as winston from 'winston'; import { - PullRequestService + PullRequestService, } from '../helpers/index'; let comment: string | undefined; diff --git a/packages/@o3r/azure-tools/src/helpers/azure/pull-requests.service.ts b/packages/@o3r/azure-tools/src/helpers/azure/pull-requests.service.ts index 6dd3d72d8d..f71466e9b1 100644 --- a/packages/@o3r/azure-tools/src/helpers/azure/pull-requests.service.ts +++ b/packages/@o3r/azure-tools/src/helpers/azure/pull-requests.service.ts @@ -1,14 +1,14 @@ import { getPersonalAccessTokenHandler, - WebApi + WebApi, } from 'azure-devops-node-api'; import { Comment, CommentThreadStatus, - GitPullRequestCommentThread + GitPullRequestCommentThread, } from 'azure-devops-node-api/interfaces/GitInterfaces'; import { - Logger + Logger, } from 'winston'; /** diff --git a/packages/@o3r/components/builders/component-extractor/helpers/component/component-class.extractor.ts b/packages/@o3r/components/builders/component-extractor/helpers/component/component-class.extractor.ts index 44be19d9be..120906c74f 100644 --- a/packages/@o3r/components/builders/component-extractor/helpers/component/component-class.extractor.ts +++ b/packages/@o3r/components/builders/component-extractor/helpers/component/component-class.extractor.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - logging + logging, } from '@angular-devkit/core'; import type { - ComponentStructure + ComponentStructure, } from '@o3r/components'; import { - getLocalizationFileFromAngularElement + getLocalizationFileFromAngularElement, } from '@o3r/extractors'; import { - isO3rClassComponent + isO3rClassComponent, } from '@o3r/schematics'; import * as ts from 'typescript'; diff --git a/packages/@o3r/components/builders/component-extractor/helpers/component/component-config.extractor.ts b/packages/@o3r/components/builders/component-extractor/helpers/component/component-config.extractor.ts index 2444ab8106..673cad93ea 100644 --- a/packages/@o3r/components/builders/component-extractor/helpers/component/component-config.extractor.ts +++ b/packages/@o3r/components/builders/component-extractor/helpers/component/component-config.extractor.ts @@ -1,24 +1,24 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - logging + logging, } from '@angular-devkit/core'; import type { ConfigProperty, ConfigPropertyTypes, ConfigType, - NestedConfiguration + NestedConfiguration, } from '@o3r/components'; import type { CategoryDescription, - ItemIdentifier + ItemIdentifier, } from '@o3r/core'; import { - ConfigDocParser + ConfigDocParser, } from '@o3r/extractors'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as ts from 'typescript'; diff --git a/packages/@o3r/components/builders/component-extractor/helpers/component/component.extractor.ts b/packages/@o3r/components/builders/component-extractor/helpers/component/component.extractor.ts index 2fac77266a..b814a2dea6 100644 --- a/packages/@o3r/components/builders/component-extractor/helpers/component/component.extractor.ts +++ b/packages/@o3r/components/builders/component-extractor/helpers/component/component.extractor.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - logging + logging, } from '@angular-devkit/core'; import type { ComponentClassOutput, @@ -9,27 +9,27 @@ import type { ComponentOutput, ComponentStructure, ConfigProperty, - PlaceholdersMetadata + PlaceholdersMetadata, } from '@o3r/components'; import { CmsMetadataData, - getLibraryCmsMetadata + getLibraryCmsMetadata, } from '@o3r/extractors'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import type { - ComponentExtractorBuilderSchema + ComponentExtractorBuilderSchema, } from '../../index'; import { - ComponentInformation + ComponentInformation, } from './component-class.extractor'; import { ConfigurationInformation, - ConfigurationInformationWrapper + ConfigurationInformationWrapper, } from './component-config.extractor'; import { - ParserOutput + ParserOutput, } from './component.parser'; /** diff --git a/packages/@o3r/components/builders/component-extractor/helpers/component/component.parser.ts b/packages/@o3r/components/builders/component-extractor/helpers/component/component.parser.ts index 319888bc81..83f1408431 100644 --- a/packages/@o3r/components/builders/component-extractor/helpers/component/component.parser.ts +++ b/packages/@o3r/components/builders/component-extractor/helpers/component/component.parser.ts @@ -1,22 +1,22 @@ import * as path from 'node:path'; import { - logging + logging, } from '@angular-devkit/core'; import type { - CategoryDescription + CategoryDescription, } from '@o3r/core'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import globby from 'globby'; import * as ts from 'typescript'; import { ComponentClassExtractor, - ComponentInformation + ComponentInformation, } from './component-class.extractor'; import { ComponentConfigExtractor, - ConfigurationInformationWrapper + ConfigurationInformationWrapper, } from './component-config.extractor'; /** Output of a file parsing */ diff --git a/packages/@o3r/components/builders/component-extractor/index.spec.ts b/packages/@o3r/components/builders/component-extractor/index.spec.ts index ad46827fdb..21b0a57673 100644 --- a/packages/@o3r/components/builders/component-extractor/index.spec.ts +++ b/packages/@o3r/components/builders/component-extractor/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - ComponentExtractorBuilderSchema + ComponentExtractorBuilderSchema, } from './schema'; describe('Component Extractor Builder', () => { diff --git a/packages/@o3r/components/builders/component-extractor/index.ts b/packages/@o3r/components/builders/component-extractor/index.ts index 4c8c02423e..367ad5b778 100644 --- a/packages/@o3r/components/builders/component-extractor/index.ts +++ b/packages/@o3r/components/builders/component-extractor/index.ts @@ -2,30 +2,30 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import type { - LoggerApi + LoggerApi, } from '@angular-devkit/core/src/logger'; import type { - ComponentConfigOutput + ComponentConfigOutput, } from '@o3r/components'; import { CmsMetadataData, createBuilderWithMetricsIfInstalled, getLibraryCmsMetadata, - validateJson + validateJson, } from '@o3r/extractors'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as chokidar from 'chokidar'; import { ComponentExtractor, - ComponentParser + ComponentParser, } from './helpers/component/index'; import { - ComponentExtractorBuilderSchema + ComponentExtractorBuilderSchema, } from './schema'; export * from './schema'; diff --git a/packages/@o3r/components/builders/component-extractor/schema.ts b/packages/@o3r/components/builders/component-extractor/schema.ts index f30392aa5d..2c976c87f1 100644 --- a/packages/@o3r/components/builders/component-extractor/schema.ts +++ b/packages/@o3r/components/builders/component-extractor/schema.ts @@ -1,8 +1,8 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import type { - CategoryDescription + CategoryDescription, } from '@o3r/core'; export interface ComponentExtractorBuilderSchema extends JsonObject { diff --git a/packages/@o3r/components/builders/metadata-check/helpers/config-metadata-comparison.helper.ts b/packages/@o3r/components/builders/metadata-check/helpers/config-metadata-comparison.helper.ts index 595cacf2a0..b46ce87359 100644 --- a/packages/@o3r/components/builders/metadata-check/helpers/config-metadata-comparison.helper.ts +++ b/packages/@o3r/components/builders/metadata-check/helpers/config-metadata-comparison.helper.ts @@ -1,8 +1,8 @@ import type { - ComponentConfigOutput + ComponentConfigOutput, } from '@o3r/components'; import type { - MetadataComparator + MetadataComparator, } from '@o3r/extractors'; /** diff --git a/packages/@o3r/components/builders/metadata-check/index.it.spec.ts b/packages/@o3r/components/builders/metadata-check/index.it.spec.ts index de601f22fc..214706f6cf 100644 --- a/packages/@o3r/components/builders/metadata-check/index.it.spec.ts +++ b/packages/@o3r/components/builders/metadata-check/index.it.spec.ts @@ -8,22 +8,22 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { existsSync, promises, - readFileSync + readFileSync, } from 'node:fs'; import { dirname, - join + join, } from 'node:path'; import type { ComponentConfigOutput, - ConfigProperty + ConfigProperty, } from '@o3r/components'; import type { - MigrationFile + MigrationFile, } from '@o3r/extractors'; import { getExternalDependenciesVersionRange, - getPackageManager + getPackageManager, } from '@o3r/schematics'; import { getDefaultExecSyncOptions, @@ -31,13 +31,13 @@ import { packageManagerAdd, packageManagerExec, packageManagerVersion, - publishToVerdaccio + publishToVerdaccio, } from '@o3r/test-helpers'; import { - inc + inc, } from 'semver'; import type { - MigrationConfigData + MigrationConfigData, } from './helpers/config-metadata-comparison.helper'; const baseVersion = '1.2.0'; @@ -49,112 +49,112 @@ const defaultMigrationData: MigrationFile = { version, changes: [ { // Rename property name - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib1', - 'configName': 'MyConfig1', - 'propertyName': 'prop1' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib1', + configName: 'MyConfig1', + propertyName: 'prop1' }, - 'after': { - 'libraryName': '@o3r/lib1', - 'configName': 'MyConfig1', - 'propertyName': 'newProp1Name' + after: { + libraryName: '@o3r/lib1', + configName: 'MyConfig1', + propertyName: 'newProp1Name' } }, { // Move property to a new config3 - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib2', - 'configName': 'MyConfig2', - 'propertyName': 'prop2' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib2', + configName: 'MyConfig2', + propertyName: 'prop2' }, - 'after': { - 'libraryName': '@o3r/lib2', - 'configName': 'NewConfig2', - 'propertyName': 'prop2' + after: { + libraryName: '@o3r/lib2', + configName: 'NewConfig2', + propertyName: 'prop2' } }, { // Move property to a new config and rename property name - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib3', - 'configName': 'MyConfig3', - 'propertyName': 'prop3' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib3', + configName: 'MyConfig3', + propertyName: 'prop3' }, - 'after': { - 'libraryName': '@o3r/lib3', - 'configName': 'NewConfig3', - 'propertyName': 'newProp3Name' + after: { + libraryName: '@o3r/lib3', + configName: 'NewConfig3', + propertyName: 'newProp3Name' } }, { // Move property to a new library - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib4', - 'configName': 'MyConfig4', - 'propertyName': 'prop4' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib4', + configName: 'MyConfig4', + propertyName: 'prop4' }, - 'after': { - 'libraryName': '@new/lib4', - 'configName': 'MyConfig4', - 'propertyName': 'prop4' + after: { + libraryName: '@new/lib4', + configName: 'MyConfig4', + propertyName: 'prop4' } }, { // Move property to a new library and rename property name - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib5', - 'configName': 'MyConfig5', - 'propertyName': 'prop5' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib5', + configName: 'MyConfig5', + propertyName: 'prop5' }, - 'after': { - 'libraryName': '@new/lib5', - 'configName': 'MyConfig5', - 'propertyName': 'newProp5Name' + after: { + libraryName: '@new/lib5', + configName: 'MyConfig5', + propertyName: 'newProp5Name' } }, { // Move property to a new library and to a new config and rename property name - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib6', - 'configName': 'MyConfig6', - 'propertyName': 'prop6' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib6', + configName: 'MyConfig6', + propertyName: 'prop6' }, - 'after': { - 'libraryName': '@new/lib6', - 'configName': 'NewConfig6', - 'propertyName': 'newProp6Name' + after: { + libraryName: '@new/lib6', + configName: 'NewConfig6', + propertyName: 'newProp6Name' } }, { // Rename configuration name for all properties - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib7', - 'configName': 'MyConfig7' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib7', + configName: 'MyConfig7' }, - 'after': { - 'libraryName': '@o3r/lib7', - 'configName': 'NewConfig7' + after: { + libraryName: '@o3r/lib7', + configName: 'NewConfig7' } }, { // Rename library name for all configurations - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib8' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib8' }, - 'after': { - 'libraryName': '@new/lib8' + after: { + libraryName: '@new/lib8' } }, { // Move configuration to a new library - 'contentType': 'CONFIG', - 'before': { - 'libraryName': '@o3r/lib9', - 'configName': 'MyConfig9' + contentType: 'CONFIG', + before: { + libraryName: '@o3r/lib9', + configName: 'MyConfig9' }, - 'after': { - 'libraryName': '@new/lib9', - 'configName': 'MyConfig9' + after: { + libraryName: '@new/lib9', + configName: 'MyConfig9' } } ] diff --git a/packages/@o3r/components/builders/metadata-check/index.ts b/packages/@o3r/components/builders/metadata-check/index.ts index d5d041835a..4e79ac13f5 100644 --- a/packages/@o3r/components/builders/metadata-check/index.ts +++ b/packages/@o3r/components/builders/metadata-check/index.ts @@ -1,16 +1,16 @@ import { type BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { checkMetadataBuilder, - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '@o3r/extractors'; import { - configMetadataComparator + configMetadataComparator, } from './helpers/config-metadata-comparison.helper'; import type { - ConfigMigrationMetadataCheckBuilderSchema + ConfigMigrationMetadataCheckBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled((options, context): Promise => { diff --git a/packages/@o3r/components/builders/metadata-check/schema.ts b/packages/@o3r/components/builders/metadata-check/schema.ts index abbd42a018..9a69e24e04 100644 --- a/packages/@o3r/components/builders/metadata-check/schema.ts +++ b/packages/@o3r/components/builders/metadata-check/schema.ts @@ -1,5 +1,5 @@ import type { - MigrationMetadataCheckBuilderOptions + MigrationMetadataCheckBuilderOptions, } from '@o3r/extractors'; /** Migration metadata check builder schema */ diff --git a/packages/@o3r/components/eslint.local.config.mjs b/packages/@o3r/components/eslint.local.config.mjs index 115a638815..3876db364e 100644 --- a/packages/@o3r/components/eslint.local.config.mjs +++ b/packages/@o3r/components/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/components/schematics/cms-adapter/index.ts b/packages/@o3r/components/schematics/cms-adapter/index.ts index c77cac662d..f96858a747 100644 --- a/packages/@o3r/components/schematics/cms-adapter/index.ts +++ b/packages/@o3r/components/schematics/cms-adapter/index.ts @@ -4,13 +4,13 @@ import { noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, getPackageManagerRunner, getWorkspaceConfig, - readPackageJson + readPackageJson, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/components/schematics/index.it.spec.ts b/packages/@o3r/components/schematics/index.it.spec.ts index a87254bbab..72f10d9b12 100644 --- a/packages/@o3r/components/schematics/index.it.spec.ts +++ b/packages/@o3r/components/schematics/index.it.spec.ts @@ -11,7 +11,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add components', () => { diff --git a/packages/@o3r/components/schematics/ng-add/helpers/devtools-registration.ts b/packages/@o3r/components/schematics/ng-add/helpers/devtools-registration.ts index b981f2bf33..afdc1cc743 100644 --- a/packages/@o3r/components/schematics/ng-add/helpers/devtools-registration.ts +++ b/packages/@o3r/components/schematics/ng-add/helpers/devtools-registration.ts @@ -1,12 +1,12 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../schema'; const DEVTOOL_MODULE_NAME = 'ComponentsDevtoolsModule'; diff --git a/packages/@o3r/components/schematics/ng-add/index.ts b/packages/@o3r/components/schematics/ng-add/index.ts index 6516050793..f1744e33cf 100644 --- a/packages/@o3r/components/schematics/ng-add/index.ts +++ b/packages/@o3r/components/schematics/ng-add/index.ts @@ -4,19 +4,19 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import type { - DependencyToAdd + DependencyToAdd, } from '@o3r/schematics'; import { - updateCmsAdapter + updateCmsAdapter, } from '../cms-adapter'; import { - registerDevtools + registerDevtools, } from './helpers/devtools-registration'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@o3r/components/schematics/ng-add/schema.ts b/packages/@o3r/components/schematics/ng-add/schema.ts index 9857bc4e1e..c0690f5b99 100644 --- a/packages/@o3r/components/schematics/ng-add/schema.ts +++ b/packages/@o3r/components/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/components/schematics/ng-update/v10-0/index.spec.ts b/packages/@o3r/components/schematics/ng-update/v10-0/index.spec.ts index 4bf697bbbf..1f5c95f027 100644 --- a/packages/@o3r/components/schematics/ng-update/v10-0/index.spec.ts +++ b/packages/@o3r/components/schematics/ng-update/v10-0/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const migrationPath = path.join(__dirname, '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/components/schematics/ng-update/v10-0/index.ts b/packages/@o3r/components/schematics/ng-update/v10-0/index.ts index b3c7c15aee..2b5f53d5a3 100644 --- a/packages/@o3r/components/schematics/ng-update/v10-0/index.ts +++ b/packages/@o3r/components/schematics/ng-update/v10-0/index.ts @@ -3,14 +3,14 @@ import { noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { addImportsRule, createSchematicWithMetricsIfInstalled, findFilesInTree, PipeReplacementInfo, - updatePipes + updatePipes, } from '@o3r/schematics'; const pipeReplacementInfo: PipeReplacementInfo = { diff --git a/packages/@o3r/components/src/core/component.output.ts b/packages/@o3r/components/src/core/component.output.ts index d3487c76de..a804368bde 100644 --- a/packages/@o3r/components/src/core/component.output.ts +++ b/packages/@o3r/components/src/core/component.output.ts @@ -2,7 +2,7 @@ import type { CategoryDescription, ConfigPropertyWidget, ItemIdentifier, - Output + Output, } from '@o3r/core'; /** Types of components config */ diff --git a/packages/@o3r/components/src/core/rendering/helpers.spec.ts b/packages/@o3r/components/src/core/rendering/helpers.spec.ts index f2b824458d..fd3b5e4f5b 100644 --- a/packages/@o3r/components/src/core/rendering/helpers.spec.ts +++ b/packages/@o3r/components/src/core/rendering/helpers.spec.ts @@ -1,8 +1,8 @@ import { - TestScheduler + TestScheduler, } from 'rxjs/testing'; import { - lazyArray + lazyArray, } from './helpers'; describe('Rendering helpers', () => { diff --git a/packages/@o3r/components/src/core/rendering/helpers.ts b/packages/@o3r/components/src/core/rendering/helpers.ts index 44335c90b0..c5f65a8938 100644 --- a/packages/@o3r/components/src/core/rendering/helpers.ts +++ b/packages/@o3r/components/src/core/rendering/helpers.ts @@ -3,7 +3,7 @@ import { from, Observable, observeOn, - of + of, } from 'rxjs'; import { bufferCount, @@ -11,7 +11,7 @@ import { delay, mergeMap, scan, - tap + tap, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/components/src/devkit/components-devkit.interface.ts b/packages/@o3r/components/src/devkit/components-devkit.interface.ts index 9658538bee..f0d7200658 100644 --- a/packages/@o3r/components/src/devkit/components-devkit.interface.ts +++ b/packages/@o3r/components/src/devkit/components-devkit.interface.ts @@ -3,13 +3,13 @@ import type { DevtoolsCommonOptions, MessageDataTypes, OtterMessageContent, - RequestMessagesContentMessage + RequestMessagesContentMessage, } from '@o3r/core'; import type { - PlaceholderMode + PlaceholderMode, } from '../stores'; import { - OtterLikeComponentInfo + OtterLikeComponentInfo, } from './inspector'; /** diff --git a/packages/@o3r/components/src/devkit/components-devtools.message.service.ts b/packages/@o3r/components/src/devkit/components-devtools.message.service.ts index f5698926a8..fbcf4ba672 100644 --- a/packages/@o3r/components/src/devkit/components-devtools.message.service.ts +++ b/packages/@o3r/components/src/devkit/components-devtools.message.service.ts @@ -2,44 +2,44 @@ import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import { DevtoolsServiceInterface, filterMessageContent, - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { firstValueFrom, fromEvent, - Subscription + Subscription, } from 'rxjs'; import { - filter + filter, } from 'rxjs/operators'; import { type PlaceholderTemplateState, - togglePlaceholderModeTemplate + togglePlaceholderModeTemplate, } from '../stores'; import { AvailableComponentsMessageContents, ComponentsDevtoolsServiceOptions, ComponentsMessageDataTypes, - isComponentsMessage + isComponentsMessage, } from './components-devkit.interface'; import { OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_COMPONENTS_DEVTOOLS_OPTIONS + OTTER_COMPONENTS_DEVTOOLS_OPTIONS, } from './components-devtools.token'; import { OtterInspectorService, - OtterLikeComponentInfo + OtterLikeComponentInfo, } from './inspector'; @Injectable({ diff --git a/packages/@o3r/components/src/devkit/components-devtools.module.ts b/packages/@o3r/components/src/devkit/components-devtools.module.ts index 17463015d4..54db62e76c 100644 --- a/packages/@o3r/components/src/devkit/components-devtools.module.ts +++ b/packages/@o3r/components/src/devkit/components-devtools.module.ts @@ -1,22 +1,22 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - PlaceholderTemplateStoreModule + PlaceholderTemplateStoreModule, } from '../stores/placeholder-template/placeholder-template.module'; import type { - ComponentsDevtoolsServiceOptions + ComponentsDevtoolsServiceOptions, } from './components-devkit.interface'; import { - ComponentsDevtoolsMessageService + ComponentsDevtoolsMessageService, } from './components-devtools.message.service'; import { OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_COMPONENTS_DEVTOOLS_OPTIONS + OTTER_COMPONENTS_DEVTOOLS_OPTIONS, } from './components-devtools.token'; @NgModule({ diff --git a/packages/@o3r/components/src/devkit/components-devtools.token.ts b/packages/@o3r/components/src/devkit/components-devtools.token.ts index 067eededf2..e32af65dfb 100644 --- a/packages/@o3r/components/src/devkit/components-devtools.token.ts +++ b/packages/@o3r/components/src/devkit/components-devtools.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - ComponentsDevtoolsServiceOptions + ComponentsDevtoolsServiceOptions, } from './components-devkit.interface'; export const OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS: ComponentsDevtoolsServiceOptions = { diff --git a/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.spec.ts b/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.spec.ts index d27386dff9..65ad0b7448 100644 --- a/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.spec.ts +++ b/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.spec.ts @@ -1,30 +1,30 @@ import { - Component + Component, } from '@angular/core'; import { ComponentFixture, - TestBed + TestBed, } from '@angular/core/testing'; import { - BrowserModule + BrowserModule, } from '@angular/platform-browser'; import type { AnalyticsEvent, AnalyticsEvents, - EventInfo + EventInfo, } from '@o3r/analytics'; import { - ConfigurationObserver + ConfigurationObserver, } from '@o3r/configuration'; import { - Translation + Translation, } from '@o3r/localization'; import { getAnalyticEvents, getConfigId, getOtterLikeComponentInfo, getTranslations, - isContainer + isContainer, } from './otter-inspector.helpers'; class MockEvent implements AnalyticsEvent { diff --git a/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.ts b/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.ts index dd98fec046..c07ada3b90 100644 --- a/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.ts +++ b/packages/@o3r/components/src/devkit/inspector/otter-inspector.helpers.ts @@ -1,5 +1,5 @@ import { - otterComponentInfoPropertyName + otterComponentInfoPropertyName, } from '@o3r/core'; export interface OtterLikeComponentInfo { diff --git a/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.spec.ts b/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.spec.ts index abd30b3fdb..d6f6a89292 100644 --- a/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.spec.ts +++ b/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.spec.ts @@ -1,16 +1,16 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - mockTranslationModules + mockTranslationModules, } from '@o3r/testing/localization'; import { - OtterInspectorService + OtterInspectorService, } from './otter-inspector.service'; const mockElement = { diff --git a/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.ts b/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.ts index 004323e13e..5b3b1bb844 100644 --- a/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.ts +++ b/packages/@o3r/components/src/devkit/inspector/otter-inspector.service.ts @@ -1,15 +1,15 @@ import { BehaviorSubject, - Observable + Observable, } from 'rxjs'; import { - Ng + Ng, } from './ng'; import { getOtterLikeComponentInfo, INSPECTOR_CLASS, isContainer, - OtterLikeComponentInfo + OtterLikeComponentInfo, } from './otter-inspector.helpers'; interface ComponentInfo extends OtterLikeComponentInfo { diff --git a/packages/@o3r/components/src/rules-engine/placeholder.action-handler.ts b/packages/@o3r/components/src/rules-engine/placeholder.action-handler.ts index 30ec159725..98ba832119 100644 --- a/packages/@o3r/components/src/rules-engine/placeholder.action-handler.ts +++ b/packages/@o3r/components/src/rules-engine/placeholder.action-handler.ts @@ -2,11 +2,11 @@ import { Injectable, Injector, OnDestroy, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { deletePlaceholderTemplateEntity, @@ -16,19 +16,19 @@ import { selectPlaceholderTemplateEntities, setPlaceholderRequestEntityFromUrl, setPlaceholderTemplateEntity, - updatePlaceholderRequestEntity + updatePlaceholderRequestEntity, } from '@o3r/components'; import type { - RulesEngineActionHandler + RulesEngineActionHandler, } from '@o3r/core'; import { - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { combineLatest, @@ -39,11 +39,11 @@ import { startWith, Subject, Subscription, - withLatestFrom + withLatestFrom, } from 'rxjs'; import { ActionUpdatePlaceholderBlock, - RULES_ENGINE_PLACEHOLDER_UPDATE_ACTION_TYPE + RULES_ENGINE_PLACEHOLDER_UPDATE_ACTION_TYPE, } from './placeholder.interfaces'; /** diff --git a/packages/@o3r/components/src/rules-engine/placeholder.interfaces.ts b/packages/@o3r/components/src/rules-engine/placeholder.interfaces.ts index f508b71984..c994a8b219 100644 --- a/packages/@o3r/components/src/rules-engine/placeholder.interfaces.ts +++ b/packages/@o3r/components/src/rules-engine/placeholder.interfaces.ts @@ -1,5 +1,5 @@ import type { - RulesEngineAction + RulesEngineAction, } from '@o3r/core'; /** ActionUpdatePlaceholderBlock */ diff --git a/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.spec.ts b/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.spec.ts index 6735b29903..d187ec9259 100644 --- a/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.spec.ts +++ b/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.spec.ts @@ -1,46 +1,46 @@ import { - TestBed + TestBed, } from '@angular/core/testing'; import { - provideMockActions + provideMockActions, } from '@ngrx/effects/testing'; import type { - Action + Action, } from '@ngrx/store'; import { - Store + Store, } from '@ngrx/store'; import type { PlaceholderRequestModel, - PlaceholderRequestReply + PlaceholderRequestReply, } from '@o3r/components'; import { - UpdateAsyncStoreItemEntityActionPayloadWithId + UpdateAsyncStoreItemEntityActionPayloadWithId, } from '@o3r/core'; import { - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from '@o3r/rules-engine'; import { firstValueFrom, of, ReplaySubject, Subject, - Subscription + Subscription, } from 'rxjs'; import { - shareReplay + shareReplay, } from 'rxjs/operators'; import { - setPlaceholderRequestEntityFromUrl + setPlaceholderRequestEntityFromUrl, } from '../stores'; import { - PlaceholderTemplateResponseEffect + PlaceholderTemplateResponseEffect, } from './placeholder.rules-engine.effect'; describe('Rules Engine Effects', () => { @@ -143,7 +143,7 @@ describe('Rules Engine Effects', () => { })); factsStream.myFact.next('ignored'); factsStream.parameter.next('success'); - factsStream.factInTemplate.next({ 'myKey': 'Outstanding fact' }); + factsStream.factInTemplate.next({ myKey: 'Outstanding fact' }); const result = (await firstValueFrom(setPlaceholderEffect$)) as UpdateAsyncStoreItemEntityActionPayloadWithId & Action<'[PlaceholderRequest] update entity'>; @@ -189,7 +189,7 @@ describe('Rules Engine Effects', () => { })); factsStream.myFact.next('ignored'); factsStream.parameter.next('User'); - factsStream.user.next({ 'phone': '1234', 'email': 'test@mail.com' }); + factsStream.user.next({ phone: '1234', email: 'test@mail.com' }); const result = (await firstValueFrom(setPlaceholderEffect$)) as UpdateAsyncStoreItemEntityActionPayloadWithId & Action<'[PlaceholderRequest] update entity'>; diff --git a/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.ts b/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.ts index a40c896bd5..ea9c264165 100644 --- a/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.ts +++ b/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.effect.ts @@ -1,14 +1,14 @@ import { Injectable, - Optional + Optional, } from '@angular/core'; import { Actions, createEffect, - ofType + ofType, } from '@ngrx/effects'; import { - Store + Store, } from '@ngrx/store'; import { cancelPlaceholderRequest, @@ -17,34 +17,34 @@ import { PlaceholderVariable, selectPlaceholderRequestEntityUsage, setPlaceholderRequestEntityFromUrl, - updatePlaceholderRequestEntity + updatePlaceholderRequestEntity, } from '@o3r/components'; import { - fromApiEffectSwitchMapById + fromApiEffectSwitchMapById, } from '@o3r/core'; import { - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { - LocalizationService + LocalizationService, } from '@o3r/localization'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from '@o3r/rules-engine'; import { - JSONPath + JSONPath, } from 'jsonpath-plus'; import { combineLatest, EMPTY, Observable, - of + of, } from 'rxjs'; import { distinctUntilChanged, map, switchMap, - take + take, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.module.ts b/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.module.ts index 6fe06d829c..cd7c0f90fc 100644 --- a/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.module.ts +++ b/packages/@o3r/components/src/rules-engine/placeholder.rules-engine.module.ts @@ -1,18 +1,18 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { PlaceholderRequestStoreModule, - PlaceholderTemplateStoreModule + PlaceholderTemplateStoreModule, } from '@o3r/components'; import { - PlaceholderRulesEngineActionHandler + PlaceholderRulesEngineActionHandler, } from './placeholder.action-handler'; import { - PlaceholderTemplateResponseEffect + PlaceholderTemplateResponseEffect, } from './placeholder.rules-engine.effect'; @NgModule({ diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.actions.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.actions.ts index cf5e91459d..2378bf48fc 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.actions.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.actions.ts @@ -1,6 +1,6 @@ import { createAction, - props + props, } from '@ngrx/store'; import { asyncProps, @@ -8,11 +8,11 @@ import { FailAsyncStoreItemEntitiesActionPayload, FromApiActionPayload, UpdateAsyncStoreItemEntityActionPayloadWithId, - UpdateEntityActionPayloadWithId + UpdateEntityActionPayloadWithId, } from '@o3r/core'; import { PlaceholderRequestModel, - PlaceholderRequestReply + PlaceholderRequestReply, } from './placeholder-request.state'; const ACTION_FAIL_ENTITIES = '[PlaceholderRequest] fail entities'; diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.module.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.module.ts index 0e88e549ca..36e06146fa 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.module.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - placeholderRequestReducer + placeholderRequestReducer, } from './placeholder-request.reducer'; import { PLACEHOLDER_REQUEST_STORE_NAME, - PlaceholderRequestState + PlaceholderRequestState, } from './placeholder-request.state'; /** Token of the PlaceholderRequest reducer */ diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.spec.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.spec.ts index ae0e7d9c22..fa000b4187 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.spec.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.spec.ts @@ -1,7 +1,7 @@ import * as actions from './placeholder-request.actions'; import { placeholderRequestInitialState, - placeholderRequestReducer + placeholderRequestReducer, } from './placeholder-request.reducer'; describe('PlaceholderRequest Store reducer', () => { @@ -16,7 +16,7 @@ describe('PlaceholderRequest Store reducer', () => { it('Cancel request should work properly', () => { const initialState = placeholderRequestReducer(placeholderRequestInitialState, actions.setPlaceholderRequestEntityFromUrl({ - call: Promise.resolve({ 'template': '
Template3
' }), + call: Promise.resolve({ template: '
Template3
' }), id: 'www.url3.com/[LANG]', resolvedUrl: 'www.url3.com/en', requestId: 'id1' @@ -34,7 +34,7 @@ describe('PlaceholderRequest Store reducer', () => { describe('Entity actions', () => { it('ACTION_UPDATE_ENTITY_SYNC action should not touch existing properties not provided in the payload', () => { const initialState = placeholderRequestReducer(placeholderRequestInitialState, actions.setPlaceholderRequestEntityFromUrl({ - call: Promise.resolve({ 'template': '
Template3
' }), + call: Promise.resolve({ template: '
Template3
' }), id: 'www.url3.com/[LANG]', resolvedUrl: 'www.url3.com/en', requestId: 'id1' @@ -54,7 +54,7 @@ describe('PlaceholderRequest Store reducer', () => { it('ACTION_UPDATE_ENTITY action should not touch existing properties not provided in the payload and update the pending status', () => { const initialState = placeholderRequestReducer(placeholderRequestInitialState, actions.setPlaceholderRequestEntityFromUrl({ - call: Promise.resolve({ 'template': '
Template3
' }), + call: Promise.resolve({ template: '
Template3
' }), id: 'www.url3.com/[LANG]', resolvedUrl: 'www.url3.com/en', requestId: 'id1' @@ -74,7 +74,7 @@ describe('PlaceholderRequest Store reducer', () => { it('FAIL_ENTITIES action should update the global isPending to false in case there are some newIds in the payload', () => { const initialState = placeholderRequestReducer(placeholderRequestInitialState, actions.setPlaceholderRequestEntityFromUrl({ - call: Promise.resolve({ 'template': '
Template3
' }), + call: Promise.resolve({ template: '
Template3
' }), id: 'www.url3.com/[LANG]', resolvedUrl: 'www.url3.com/en', requestId: 'id1' @@ -98,7 +98,7 @@ describe('PlaceholderRequest Store reducer', () => { describe('API call actions', () => { it('SET_ENTITY_FROM_URL action should clear current entities and set new ones', () => { const firstState = placeholderRequestReducer(placeholderRequestInitialState, actions.setPlaceholderRequestEntityFromUrl({ - call: Promise.resolve({ 'template': '
Template3
' }), + call: Promise.resolve({ template: '
Template3
' }), id: 'www.url3.com/[LANG]', resolvedUrl: 'www.url3.com/en', requestId: 'id1' diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.ts index 1ca16a215b..84a2191ff3 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.reducer.ts @@ -1,21 +1,21 @@ import { - createEntityAdapter + createEntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import { asyncStoreItemAdapter, - createEntityAsyncRequestAdapter + createEntityAsyncRequestAdapter, } from '@o3r/core'; import * as actions from './placeholder-request.actions'; import { PlaceholderRequestModel, PlaceholderRequestState, - PlaceholderRequestStateDetails + PlaceholderRequestStateDetails, } from './placeholder-request.state'; /** diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.spec.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.spec.ts index f695a30cbe..0c8a5459a3 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.spec.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.spec.ts @@ -1,6 +1,6 @@ import * as selectors from './placeholder-request.selectors'; import { - PlaceholderRequestState + PlaceholderRequestState, } from './placeholder-request.state'; const entity = { id: 'www.google.com', resolvedUrl: 'www.google.com', template: 'ok', requestIds: [] as any[], vars: {} }; diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.ts index b14d824f43..c3f7e95b0b 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.selectors.ts @@ -1,13 +1,13 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { - placeholderRequestAdapter + placeholderRequestAdapter, } from './placeholder-request.reducer'; import { PLACEHOLDER_REQUEST_STORE_NAME, - PlaceholderRequestState + PlaceholderRequestState, } from './placeholder-request.state'; export const selectPlaceholderRequestState = createFeatureSelector(PLACEHOLDER_REQUEST_STORE_NAME); diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.state.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.state.ts index 17c80c2e18..6bbb22f69f 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.state.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.state.ts @@ -1,8 +1,8 @@ import { - EntityState + EntityState, } from '@ngrx/entity'; import { - AsyncStoreItem + AsyncStoreItem, } from '@o3r/core'; /** diff --git a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.sync.ts b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.sync.ts index 1e19006504..744ca59de7 100644 --- a/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.sync.ts +++ b/packages/@o3r/components/src/stores/placeholder-request/placeholder-request.sync.ts @@ -1,14 +1,14 @@ import { asyncEntitySerializer, - Serializer + Serializer, } from '@o3r/core'; import { placeholderRequestAdapter, - placeholderRequestInitialState + placeholderRequestInitialState, } from './placeholder-request.reducer'; import { PlaceholderRequestModel, - PlaceholderRequestState + PlaceholderRequestState, } from './placeholder-request.state'; export const placeholderRequestStorageSerializer = asyncEntitySerializer; diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.actions.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.actions.ts index 55514b3987..faf82f35dc 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.actions.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.actions.ts @@ -1,13 +1,13 @@ import { createAction, - props + props, } from '@ngrx/store'; import { - SetEntityActionPayload + SetEntityActionPayload, } from '@o3r/core'; import { type PlaceholderMode, - PlaceholderTemplateModel + PlaceholderTemplateModel, } from './placeholder-template.state'; const ACTION_DELETE_ENTITY = '[PlaceholderTemplate] delete entity'; diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.module.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.module.ts index b2f281a853..37b2648ae0 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.module.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - placeholderTemplateReducer + placeholderTemplateReducer, } from './placeholder-template.reducer'; import { PLACEHOLDER_TEMPLATE_STORE_NAME, - PlaceholderTemplateState + PlaceholderTemplateState, } from './placeholder-template.state'; /** Token of the PlaceholderTemplate reducer */ diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.spec.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.spec.ts index adf53108af..8cae6b7435 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.spec.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.spec.ts @@ -1,7 +1,7 @@ import * as actions from './placeholder-template.actions'; import { placeholderTemplateInitialState, - placeholderTemplateReducer + placeholderTemplateReducer, } from './placeholder-template.reducer'; describe('PlaceholderTemplate Store reducer', () => { diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.ts index fd5017eeb3..9325fe9be2 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.reducer.ts @@ -1,16 +1,16 @@ import { - createEntityAdapter + createEntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './placeholder-template.actions'; import { PlaceholderTemplateModel, - PlaceholderTemplateState + PlaceholderTemplateState, } from './placeholder-template.state'; /** diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.spec.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.spec.ts index cf41cceabb..0c3e5a8c50 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.spec.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.spec.ts @@ -1,9 +1,9 @@ import { - PlaceholderRequestState + PlaceholderRequestState, } from '@o3r/components'; import * as selectors from './placeholder-template.selectors'; import { - PlaceholderTemplateState + PlaceholderTemplateState, } from './placeholder-template.state'; let placeholderRequestState: PlaceholderRequestState; diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.ts index e48064de71..e6adf9fee3 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.selectors.ts @@ -1,16 +1,16 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { - selectPlaceholderRequestState + selectPlaceholderRequestState, } from '../placeholder-request'; import { - placeholderTemplateAdapter + placeholderTemplateAdapter, } from './placeholder-template.reducer'; import { PLACEHOLDER_TEMPLATE_STORE_NAME, - PlaceholderTemplateState + PlaceholderTemplateState, } from './placeholder-template.state'; const { selectEntities } = placeholderTemplateAdapter.getSelectors(); diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.state.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.state.ts index 1f1503e890..b4885fb4bb 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.state.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.state.ts @@ -1,5 +1,5 @@ import { - EntityState + EntityState, } from '@ngrx/entity'; /** diff --git a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.sync.ts b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.sync.ts index 8b83ea3570..38df7bf8fe 100644 --- a/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.sync.ts +++ b/packages/@o3r/components/src/stores/placeholder-template/placeholder-template.sync.ts @@ -1,13 +1,13 @@ import { - Serializer + Serializer, } from '@o3r/core'; import { placeholderTemplateAdapter, - placeholderTemplateInitialState + placeholderTemplateInitialState, } from './placeholder-template.reducer'; import { PlaceholderTemplateModel, - PlaceholderTemplateState + PlaceholderTemplateState, } from './placeholder-template.state'; export const placeholderTemplateStorageDeserializer = (rawObject: any) => { diff --git a/packages/@o3r/components/src/tools/component-replacement/c11n.directive.ts b/packages/@o3r/components/src/tools/component-replacement/c11n.directive.ts index 79a7ed6f35..8406847446 100644 --- a/packages/@o3r/components/src/tools/component-replacement/c11n.directive.ts +++ b/packages/@o3r/components/src/tools/component-replacement/c11n.directive.ts @@ -12,7 +12,7 @@ import { SimpleChange, SimpleChanges, Type, - ViewContainerRef + ViewContainerRef, } from '@angular/core'; import { AbstractControl, @@ -20,17 +20,17 @@ import { FormControl, NG_VALIDATORS, NG_VALUE_ACCESSOR, - NgControl + NgControl, } from '@angular/forms'; import type { BaseContextOutput, Configuration, Context, ContextInput, - Functionify + Functionify, } from '@o3r/core'; import { - Subscription + Subscription, } from 'rxjs'; @Directive({ diff --git a/packages/@o3r/components/src/tools/component-replacement/c11n.helpers.ts b/packages/@o3r/components/src/tools/component-replacement/c11n.helpers.ts index 60f50776b9..ebb196d040 100644 --- a/packages/@o3r/components/src/tools/component-replacement/c11n.helpers.ts +++ b/packages/@o3r/components/src/tools/component-replacement/c11n.helpers.ts @@ -1,8 +1,8 @@ import type { - Type + Type, } from '@angular/core'; import type { - Context + Context, } from '@o3r/core'; /** Interface for grouping the arrays needed for custom component registration */ diff --git a/packages/@o3r/components/src/tools/component-replacement/c11n.mock.module.ts b/packages/@o3r/components/src/tools/component-replacement/c11n.mock.module.ts index 08ad0bbb65..30cb6c3198 100644 --- a/packages/@o3r/components/src/tools/component-replacement/c11n.mock.module.ts +++ b/packages/@o3r/components/src/tools/component-replacement/c11n.mock.module.ts @@ -1,16 +1,16 @@ import { Directive, Injectable, - NgModule + NgModule, } from '@angular/core'; import { - Observable + Observable, } from 'rxjs'; import { - mapTo + mapTo, } from 'rxjs/operators'; import { - C11nService + C11nService, } from './c11n.service'; /** C11n directive mock */ diff --git a/packages/@o3r/components/src/tools/component-replacement/c11n.module.ts b/packages/@o3r/components/src/tools/component-replacement/c11n.module.ts index 8cdbd02365..3476954a1a 100644 --- a/packages/@o3r/components/src/tools/component-replacement/c11n.module.ts +++ b/packages/@o3r/components/src/tools/component-replacement/c11n.module.ts @@ -1,15 +1,15 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - C11nDirective + C11nDirective, } from './c11n.directive'; import { - C11nService + C11nService, } from './c11n.service'; import { - C11N_REGISTER_FUNC_TOKEN + C11N_REGISTER_FUNC_TOKEN, } from './c11n.token'; /** diff --git a/packages/@o3r/components/src/tools/component-replacement/c11n.service.ts b/packages/@o3r/components/src/tools/component-replacement/c11n.service.ts index a4efd586fa..3ce3d7855a 100644 --- a/packages/@o3r/components/src/tools/component-replacement/c11n.service.ts +++ b/packages/@o3r/components/src/tools/component-replacement/c11n.service.ts @@ -1,21 +1,21 @@ import { Inject, Injectable, - Type + Type, } from '@angular/core'; import type { Configuration, - Context + Context, } from '@o3r/core'; import { - Observable + Observable, } from 'rxjs'; import { distinctUntilChanged, - map + map, } from 'rxjs/operators'; import { - C11N_PRESENTERS_MAP_TOKEN + C11N_PRESENTERS_MAP_TOKEN, } from './c11n.token'; @Injectable() diff --git a/packages/@o3r/components/src/tools/component-replacement/c11n.token.ts b/packages/@o3r/components/src/tools/component-replacement/c11n.token.ts index 3b5677a301..5e053f835c 100644 --- a/packages/@o3r/components/src/tools/component-replacement/c11n.token.ts +++ b/packages/@o3r/components/src/tools/component-replacement/c11n.token.ts @@ -1,5 +1,5 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; /** The C11n injection token */ diff --git a/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.module.ts b/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.module.ts index 622e4d2f73..d3ece0ac95 100644 --- a/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.module.ts +++ b/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.module.ts @@ -1,8 +1,8 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - CapitalizePipe + CapitalizePipe, } from './capitalize.pipe'; /** diff --git a/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.spec.ts b/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.spec.ts index 2544856792..4b1ef318ba 100644 --- a/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.spec.ts +++ b/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.spec.ts @@ -1,6 +1,6 @@ import { CapitalizePipe, - O3rCapitalizePipe + O3rCapitalizePipe, } from './capitalize.pipe'; describe('CapitalizePipe', () => { diff --git a/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.ts b/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.ts index 603be62862..0fa7ee7d35 100644 --- a/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.ts +++ b/packages/@o3r/components/src/tools/pipes/capitalize/capitalize.pipe.ts @@ -1,6 +1,6 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; @Pipe({ name: 'o3rCapitalize', standalone: true }) diff --git a/packages/@o3r/components/src/tools/pipes/duration/duration.module.ts b/packages/@o3r/components/src/tools/pipes/duration/duration.module.ts index 697d4e5111..4e55c092c5 100644 --- a/packages/@o3r/components/src/tools/pipes/duration/duration.module.ts +++ b/packages/@o3r/components/src/tools/pipes/duration/duration.module.ts @@ -1,8 +1,8 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - DurationPipe + DurationPipe, } from './duration.pipe'; /** diff --git a/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.spec.ts b/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.spec.ts index 78c0c58103..f4c2fe15ae 100644 --- a/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.spec.ts +++ b/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.spec.ts @@ -1,6 +1,6 @@ import { DurationPipe, - O3rDurationPipe + O3rDurationPipe, } from './duration.pipe'; describe('DurationPipe', () => { diff --git a/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.ts b/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.ts index 3cae0793ec..2b73516987 100644 --- a/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.ts +++ b/packages/@o3r/components/src/tools/pipes/duration/duration.pipe.ts @@ -1,10 +1,10 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { defaultTimeUnits, - TimeUnit + TimeUnit, } from './duration.model'; /** diff --git a/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.module.ts b/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.module.ts index 9aaef9f785..a2b370f43f 100644 --- a/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.module.ts +++ b/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.module.ts @@ -1,8 +1,8 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - KeepWhiteSpacePipe + KeepWhiteSpacePipe, } from './keep-white-space.pipe'; /** diff --git a/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.spec.ts b/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.spec.ts index e7cfb29aa9..7138b582dd 100644 --- a/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.spec.ts +++ b/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.spec.ts @@ -1,6 +1,6 @@ import { KeepWhiteSpacePipe, - O3rKeepWhiteSpacePipe + O3rKeepWhiteSpacePipe, } from './keep-white-space.pipe'; describe('Keep white space pipe', () => { diff --git a/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.ts b/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.ts index 407eb907a5..6de7d556f3 100644 --- a/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.ts +++ b/packages/@o3r/components/src/tools/pipes/keep-white-space/keep-white-space.pipe.ts @@ -1,6 +1,6 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; @Pipe({ diff --git a/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.module.ts b/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.module.ts index 450d8563d5..3b56fc8cd9 100644 --- a/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.module.ts +++ b/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.module.ts @@ -1,8 +1,8 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - ReplaceWithBoldPipe + ReplaceWithBoldPipe, } from './replace-with-bold.pipe'; /** diff --git a/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.spec.ts b/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.spec.ts index e2868d0d56..e1df14b1d2 100644 --- a/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.spec.ts +++ b/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.spec.ts @@ -1,6 +1,6 @@ import { O3rReplaceWithBoldPipe, - ReplaceWithBoldPipe + ReplaceWithBoldPipe, } from './replace-with-bold.pipe'; describe('Replace with bold pipe', () => { diff --git a/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.ts b/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.ts index 14f5eb1cc4..a7d7596628 100644 --- a/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.ts +++ b/packages/@o3r/components/src/tools/pipes/replace-with-bold/replace-with-bold.pipe.ts @@ -1,6 +1,6 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; const escapeRegExp = (str: string) => str.replace(/[$()*+./?[\\\]^{|}-]/g, '\\$&'); diff --git a/packages/@o3r/components/src/tools/placeholder/placeholder.component.ts b/packages/@o3r/components/src/tools/placeholder/placeholder.component.ts index 03804fabc9..5b63f6f20e 100644 --- a/packages/@o3r/components/src/tools/placeholder/placeholder.component.ts +++ b/packages/@o3r/components/src/tools/placeholder/placeholder.component.ts @@ -7,36 +7,36 @@ import { OnDestroy, OnInit, type Signal, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import { - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { BehaviorSubject, ReplaySubject, sample, Subject, - Subscription + Subscription, } from 'rxjs'; import { distinctUntilChanged, filter, map, - switchMap + switchMap, } from 'rxjs/operators'; import { type PlaceholderMode, PlaceholderTemplateStore, selectPlaceholderTemplateMode, - selectSortedTemplates + selectSortedTemplates, } from '../../stores/placeholder-template'; import { PlaceholderLoadingStatus, - PlaceholderLoadingStatusMessage + PlaceholderLoadingStatusMessage, } from './placeholder.interface'; /** diff --git a/packages/@o3r/components/src/tools/placeholder/placeholder.interface.ts b/packages/@o3r/components/src/tools/placeholder/placeholder.interface.ts index a57e8b3f2f..a18f2881df 100644 --- a/packages/@o3r/components/src/tools/placeholder/placeholder.interface.ts +++ b/packages/@o3r/components/src/tools/placeholder/placeholder.interface.ts @@ -1,5 +1,5 @@ import type { - OtterMessageContent + OtterMessageContent, } from '@o3r/core'; /** diff --git a/packages/@o3r/components/src/tools/placeholder/placeholder.module.ts b/packages/@o3r/components/src/tools/placeholder/placeholder.module.ts index badf42c084..511823b432 100644 --- a/packages/@o3r/components/src/tools/placeholder/placeholder.module.ts +++ b/packages/@o3r/components/src/tools/placeholder/placeholder.module.ts @@ -1,20 +1,20 @@ import { - CommonModule + CommonModule, } from '@angular/common'; import { - NgModule + NgModule, } from '@angular/core'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - PlaceholderRequestStoreModule + PlaceholderRequestStoreModule, } from '../../stores/placeholder-request/index'; import { - PlaceholderTemplateStoreModule + PlaceholderTemplateStoreModule, } from '../../stores/placeholder-template/index'; import { - PlaceholderComponent + PlaceholderComponent, } from './placeholder.component'; @NgModule({ diff --git a/packages/@o3r/components/src/tools/placeholder/placeholder.spec.ts b/packages/@o3r/components/src/tools/placeholder/placeholder.spec.ts index 76cfbbb39a..f9fbdcee69 100644 --- a/packages/@o3r/components/src/tools/placeholder/placeholder.spec.ts +++ b/packages/@o3r/components/src/tools/placeholder/placeholder.spec.ts @@ -1,30 +1,30 @@ import { - CommonModule + CommonModule, } from '@angular/common'; import { - Component + Component, } from '@angular/core'; import { ComponentFixture, getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { - By + By, } from '@angular/platform-browser'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - Store + Store, } from '@ngrx/store'; import { ReplaySubject, - Subject + Subject, } from 'rxjs'; import { - PlaceholderComponent + PlaceholderComponent, } from './placeholder.component'; /** diff --git a/packages/@o3r/configuration/eslint.local.config.mjs b/packages/@o3r/configuration/eslint.local.config.mjs index 1ac8f4c05a..d5bd096d98 100644 --- a/packages/@o3r/configuration/eslint.local.config.mjs +++ b/packages/@o3r/configuration/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/configuration/schematics/configuration-to-component/index.spec.ts b/packages/@o3r/configuration/schematics/configuration-to-component/index.spec.ts index df637207bf..7e6bdc44d8 100644 --- a/packages/@o3r/configuration/schematics/configuration-to-component/index.spec.ts +++ b/packages/@o3r/configuration/schematics/configuration-to-component/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddConfigFn + ngAddConfigFn, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/configuration/schematics/configuration-to-component/index.ts b/packages/@o3r/configuration/schematics/configuration-to-component/index.ts index 56d5dc8eb8..8b7eb06ef7 100644 --- a/packages/@o3r/configuration/schematics/configuration-to-component/index.ts +++ b/packages/@o3r/configuration/schematics/configuration-to-component/index.ts @@ -1,7 +1,7 @@ import { basename, dirname, - posix + posix, } from 'node:path'; import { apply, @@ -17,7 +17,7 @@ import { strings, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addCommentsOnClassProperties, @@ -35,11 +35,11 @@ import { isO3rClassDecorator, NoOtterComponent, O3rCliError, - sortClassElement + sortClassElement, } from '@o3r/schematics'; import * as ts from 'typescript'; import type { - NgAddConfigSchematicsSchema + NgAddConfigSchematicsSchema, } from './schema'; const configProperties = [ diff --git a/packages/@o3r/configuration/schematics/configuration-to-component/schema.ts b/packages/@o3r/configuration/schematics/configuration-to-component/schema.ts index e55b355c25..2851fbcfe9 100644 --- a/packages/@o3r/configuration/schematics/configuration-to-component/schema.ts +++ b/packages/@o3r/configuration/schematics/configuration-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddConfigSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/configuration/schematics/index.it.spec.ts b/packages/@o3r/configuration/schematics/index.it.spec.ts index d9c0239283..9916152068 100644 --- a/packages/@o3r/configuration/schematics/index.it.spec.ts +++ b/packages/@o3r/configuration/schematics/index.it.spec.ts @@ -12,7 +12,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('new otter application with configuration', () => { diff --git a/packages/@o3r/configuration/schematics/ng-add/helpers/devtools-registration.ts b/packages/@o3r/configuration/schematics/ng-add/helpers/devtools-registration.ts index 33e46cd691..d117144888 100644 --- a/packages/@o3r/configuration/schematics/ng-add/helpers/devtools-registration.ts +++ b/packages/@o3r/configuration/schematics/ng-add/helpers/devtools-registration.ts @@ -1,13 +1,13 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../schema'; const DEVTOOL_MODULE_NAME = 'ConfigurationDevtoolsModule'; diff --git a/packages/@o3r/configuration/schematics/ng-add/index.ts b/packages/@o3r/configuration/schematics/ng-add/index.ts index b03a21c1c3..bfa652ce05 100644 --- a/packages/@o3r/configuration/schematics/ng-add/index.ts +++ b/packages/@o3r/configuration/schematics/ng-add/index.ts @@ -4,13 +4,13 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - registerDevtools + registerDevtools, } from './helpers/devtools-registration'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@o3r/configuration/schematics/ng-add/schema.ts b/packages/@o3r/configuration/schematics/ng-add/schema.ts index d60692a91b..57eaf4bbb2 100644 --- a/packages/@o3r/configuration/schematics/ng-add/schema.ts +++ b/packages/@o3r/configuration/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/configuration/schematics/ng-update/v10-3/index.spec.ts b/packages/@o3r/configuration/schematics/ng-update/v10-3/index.spec.ts index adc9fec328..45b17ece55 100644 --- a/packages/@o3r/configuration/schematics/ng-update/v10-3/index.spec.ts +++ b/packages/@o3r/configuration/schematics/ng-update/v10-3/index.spec.ts @@ -1,11 +1,11 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - type UnitTestTree + type UnitTestTree, } from '@angular-devkit/schematics/testing'; const migrationPath = path.join(__dirname, '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/configuration/schematics/ng-update/v10-3/index.ts b/packages/@o3r/configuration/schematics/ng-update/v10-3/index.ts index 7dedf91bc0..6d7a52b8f5 100644 --- a/packages/@o3r/configuration/schematics/ng-update/v10-3/index.ts +++ b/packages/@o3r/configuration/schematics/ng-update/v10-3/index.ts @@ -1,10 +1,10 @@ import type { Rule, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, - findFilesInTree + findFilesInTree, } from '@o3r/schematics'; const configObserverRegExp = /\bConfigObserver\b/g; diff --git a/packages/@o3r/configuration/schematics/use-config-signal/index.spec.ts b/packages/@o3r/configuration/schematics/use-config-signal/index.spec.ts index 0b304fda00..51b65f6d96 100644 --- a/packages/@o3r/configuration/schematics/use-config-signal/index.spec.ts +++ b/packages/@o3r/configuration/schematics/use-config-signal/index.spec.ts @@ -1,11 +1,11 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - type UnitTestTree + type UnitTestTree, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/configuration/schematics/use-config-signal/index.ts b/packages/@o3r/configuration/schematics/use-config-signal/index.ts index 1a227a995a..ed9e20975a 100644 --- a/packages/@o3r/configuration/schematics/use-config-signal/index.ts +++ b/packages/@o3r/configuration/schematics/use-config-signal/index.ts @@ -2,7 +2,7 @@ import { chain, noop, type Rule, - type Tree + type Tree, } from '@angular-devkit/schematics'; import { addCommentsOnClassProperties, @@ -12,11 +12,11 @@ import { createSchematicWithMetricsIfInstalled, generateClassElementsFromString, isO3rClassComponent, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as ts from 'typescript'; import type { - NgUseConfigSignalSchematicsSchema + NgUseConfigSignalSchematicsSchema, } from './schema'; const configObserverRegexp = /.*new ConfigurationObserver<(?\w+)>\(\s*(?\w+),\s*(?\w+)(,\s*\w+)?\s*\);/; diff --git a/packages/@o3r/configuration/schematics/use-config-signal/schema.ts b/packages/@o3r/configuration/schematics/use-config-signal/schema.ts index 494a1d664e..3bd2399e09 100644 --- a/packages/@o3r/configuration/schematics/use-config-signal/schema.ts +++ b/packages/@o3r/configuration/schematics/use-config-signal/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgUseConfigSignalSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/configuration/src/core/configuration.spec.ts b/packages/@o3r/configuration/src/core/configuration.spec.ts index c060acdb41..f41298280d 100644 --- a/packages/@o3r/configuration/src/core/configuration.spec.ts +++ b/packages/@o3r/configuration/src/core/configuration.spec.ts @@ -1,16 +1,16 @@ import type { - Configuration + Configuration, } from '@o3r/core'; import { BehaviorSubject, firstValueFrom, - Subject + Subject, } from 'rxjs'; import { - take + take, } from 'rxjs/operators'; import { - getConfiguration + getConfiguration, } from './configuration'; describe('Configuration operators getConfiguration', () => { diff --git a/packages/@o3r/configuration/src/core/configuration.ts b/packages/@o3r/configuration/src/core/configuration.ts index 9ac281858d..a9a135f5c8 100644 --- a/packages/@o3r/configuration/src/core/configuration.ts +++ b/packages/@o3r/configuration/src/core/configuration.ts @@ -1,14 +1,14 @@ import { computeItemIdentifier, - deepFill + deepFill, } from '@o3r/core'; import { - Observable + Observable, } from 'rxjs'; import { distinctUntilChanged, map, - shareReplay + shareReplay, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.console.service.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.console.service.ts index 05cca5620b..03d097aea9 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.console.service.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.console.service.ts @@ -2,28 +2,28 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import type { Configuration, ContextualizationDataset, CustomConfig, DevtoolsServiceInterface, - WindowWithDevtools + WindowWithDevtools, } from '@o3r/core'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { ConfigurationContextualizationDevtools, - ConfigurationDevtoolsServiceOptions + ConfigurationDevtoolsServiceOptions, } from './configuration-devtools.interface'; import { - OtterConfigurationDevtools + OtterConfigurationDevtools, } from './configuration-devtools.service'; import { OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from './configuration-devtools.token'; @Injectable({ diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.console.spec.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.console.spec.ts index 22b25cccba..b6fcc1f2f4 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.console.spec.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.console.spec.ts @@ -1,24 +1,24 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { MockStore, - provideMockStore + provideMockStore, } from '@ngrx/store/testing'; import { - ConfigurationState + ConfigurationState, } from '../stores'; import { - ConfigurationDevtoolsConsoleService + ConfigurationDevtoolsConsoleService, } from './configuration-devtools.console.service'; import { OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from './configuration-devtools.token'; describe('Configuration DevTools console', () => { diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.interface.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.interface.ts index 97f04c94c8..6a3ed69278 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.interface.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.interface.ts @@ -1,5 +1,5 @@ import type { - Dictionary + Dictionary, } from '@ngrx/entity'; import type { Configuration, @@ -9,10 +9,10 @@ import type { DevtoolsCommonOptions, MessageDataTypes, OtterMessageContent, - RequestMessagesContentMessage + RequestMessagesContentMessage, } from '@o3r/core'; import type { - ConfigurationModel + ConfigurationModel, } from '../stores/index'; /** Option for Configuration devtools service */ diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.message.service.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.message.service.ts index e58eb1111e..1034146971 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.message.service.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.message.service.ts @@ -2,41 +2,41 @@ import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { DevtoolsServiceInterface, filterMessageContent, - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { firstValueFrom, fromEvent, - Subscription + Subscription, } from 'rxjs'; import { ConfigurationStore, - selectConfigurationEntities + selectConfigurationEntities, } from '../stores'; import { AvailableConfigurationMessageContents, ConfigurationDevtoolsServiceOptions, ConfigurationMessageDataTypes, - isConfigurationMessage + isConfigurationMessage, } from './configuration-devtools.interface'; import { - OtterConfigurationDevtools + OtterConfigurationDevtools, } from './configuration-devtools.service'; import { OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from './configuration-devtools.token'; @Injectable({ diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.message.spec.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.message.spec.ts index bc2cf92f8d..8233ab6e3d 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.message.spec.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.message.spec.ts @@ -1,30 +1,30 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - provideMockStore + provideMockStore, } from '@ngrx/store/testing'; import { applicationMessageTarget, ConnectContentMessage, OtterMessage, - otterMessageType + otterMessageType, } from '@o3r/core'; import { LoggerModule, - noopLogger + noopLogger, } from '@o3r/logger'; import { - ConfigurationDevtoolsMessageService + ConfigurationDevtoolsMessageService, } from './configuration-devtools.message.service'; import { OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from './configuration-devtools.token'; const connectMessage: OtterMessage = { diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.module.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.module.ts index c7b2128348..2b0fa3f40a 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.module.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.module.ts @@ -1,28 +1,28 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - ConfigurationStoreModule + ConfigurationStoreModule, } from '../stores/index'; import { - ConfigurationDevtoolsConsoleService + ConfigurationDevtoolsConsoleService, } from './configuration-devtools.console.service'; import type { - ConfigurationDevtoolsServiceOptions + ConfigurationDevtoolsServiceOptions, } from './configuration-devtools.interface'; import { - ConfigurationDevtoolsMessageService + ConfigurationDevtoolsMessageService, } from './configuration-devtools.message.service'; import { - OtterConfigurationDevtools + OtterConfigurationDevtools, } from './configuration-devtools.service'; import { OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from './configuration-devtools.token'; @NgModule({ diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.service.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.service.ts index 70d432d645..6b0c770bef 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.service.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.service.ts @@ -2,28 +2,28 @@ import { ApplicationRef, Inject, Injectable, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { Configuration, - CustomConfig + CustomConfig, } from '@o3r/core'; import { firstValueFrom, - Observable + Observable, } from 'rxjs'; import { filter, map, - shareReplay + shareReplay, } from 'rxjs/operators'; import { computeConfigurationName, - parseConfigurationName + parseConfigurationName, } from '../core'; import { computeConfiguration, @@ -32,14 +32,14 @@ import { selectConfigurationEntities, selectConfigurationIds, upsertConfigurationEntities, - upsertConfigurationEntity + upsertConfigurationEntity, } from '../stores'; import { - ConfigurationDevtoolsServiceOptions + ConfigurationDevtoolsServiceOptions, } from './configuration-devtools.interface'; import { OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_CONFIGURATION_DEVTOOLS_OPTIONS + OTTER_CONFIGURATION_DEVTOOLS_OPTIONS, } from './configuration-devtools.token'; @Injectable({ providedIn: 'root' }) diff --git a/packages/@o3r/configuration/src/devkit/configuration-devtools.token.ts b/packages/@o3r/configuration/src/devkit/configuration-devtools.token.ts index 2b0da6ca41..a3ffc14c79 100644 --- a/packages/@o3r/configuration/src/devkit/configuration-devtools.token.ts +++ b/packages/@o3r/configuration/src/devkit/configuration-devtools.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - ConfigurationDevtoolsServiceOptions + ConfigurationDevtoolsServiceOptions, } from './configuration-devtools.interface'; export const OTTER_CONFIGURATION_DEVTOOLS_DEFAULT_OPTIONS: ConfigurationDevtoolsServiceOptions = { diff --git a/packages/@o3r/configuration/src/fixtures/jasmine/configuration.base.service.fixture.jasmine.ts b/packages/@o3r/configuration/src/fixtures/jasmine/configuration.base.service.fixture.jasmine.ts index d63cc0b893..7a322f5fef 100644 --- a/packages/@o3r/configuration/src/fixtures/jasmine/configuration.base.service.fixture.jasmine.ts +++ b/packages/@o3r/configuration/src/fixtures/jasmine/configuration.base.service.fixture.jasmine.ts @@ -1,5 +1,5 @@ import type { - ConfigurationBaseService + ConfigurationBaseService, } from '@o3r/configuration'; /** diff --git a/packages/@o3r/configuration/src/fixtures/jest/configuration.base.service.fixture.jest.ts b/packages/@o3r/configuration/src/fixtures/jest/configuration.base.service.fixture.jest.ts index 42fe4cd1a3..2cdc7df980 100644 --- a/packages/@o3r/configuration/src/fixtures/jest/configuration.base.service.fixture.jest.ts +++ b/packages/@o3r/configuration/src/fixtures/jest/configuration.base.service.fixture.jest.ts @@ -1,5 +1,5 @@ import type { - ConfigurationBaseService + ConfigurationBaseService, } from '@o3r/configuration'; /** diff --git a/packages/@o3r/configuration/src/rules-engine/configuration.handler-action.ts b/packages/@o3r/configuration/src/rules-engine/configuration.handler-action.ts index b8b417aad5..250dd2b33c 100644 --- a/packages/@o3r/configuration/src/rules-engine/configuration.handler-action.ts +++ b/packages/@o3r/configuration/src/rules-engine/configuration.handler-action.ts @@ -1,23 +1,23 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import { ConfigurationStore, PropertyOverride, - setConfigOverride + setConfigOverride, } from '@o3r/configuration'; import type { - RulesEngineActionHandler + RulesEngineActionHandler, } from '@o3r/core'; import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import { ActionUpdateConfigBlock, - RULES_ENGINE_CONFIGURATION_UPDATE_ACTION_TYPE + RULES_ENGINE_CONFIGURATION_UPDATE_ACTION_TYPE, } from './configuration.interfaces'; /** diff --git a/packages/@o3r/configuration/src/rules-engine/configuration.interfaces.ts b/packages/@o3r/configuration/src/rules-engine/configuration.interfaces.ts index 606e0e68b2..c3ecfdcdf1 100644 --- a/packages/@o3r/configuration/src/rules-engine/configuration.interfaces.ts +++ b/packages/@o3r/configuration/src/rules-engine/configuration.interfaces.ts @@ -1,5 +1,5 @@ import type { - RulesEngineAction + RulesEngineAction, } from '@o3r/core'; /** ActionUpdateConfigurationBlock */ diff --git a/packages/@o3r/configuration/src/rules-engine/configuration.rules-engine.module.ts b/packages/@o3r/configuration/src/rules-engine/configuration.rules-engine.module.ts index 4bee003250..4c3dc1e9b8 100644 --- a/packages/@o3r/configuration/src/rules-engine/configuration.rules-engine.module.ts +++ b/packages/@o3r/configuration/src/rules-engine/configuration.rules-engine.module.ts @@ -1,11 +1,11 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - ConfigurationStoreModule + ConfigurationStoreModule, } from '@o3r/configuration'; import { - ConfigurationRulesEngineActionHandler + ConfigurationRulesEngineActionHandler, } from './configuration.handler-action'; @NgModule({ diff --git a/packages/@o3r/configuration/src/services/configuration/configuration.base.module.ts b/packages/@o3r/configuration/src/services/configuration/configuration.base.module.ts index 340f919a73..ef1621c0dd 100644 --- a/packages/@o3r/configuration/src/services/configuration/configuration.base.module.ts +++ b/packages/@o3r/configuration/src/services/configuration/configuration.base.module.ts @@ -1,11 +1,11 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - LoggerModule + LoggerModule, } from '@o3r/logger'; import { - ConfigurationStoreModule + ConfigurationStoreModule, } from '../../stores/index'; @NgModule({ diff --git a/packages/@o3r/configuration/src/services/configuration/configuration.base.service.spec.ts b/packages/@o3r/configuration/src/services/configuration/configuration.base.service.spec.ts index af0ccbca79..35399a0f07 100644 --- a/packages/@o3r/configuration/src/services/configuration/configuration.base.service.spec.ts +++ b/packages/@o3r/configuration/src/services/configuration/configuration.base.service.spec.ts @@ -1,21 +1,21 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { MockStore, - provideMockStore + provideMockStore, } from '@ngrx/store/testing'; import { Configuration, - CustomConfig + CustomConfig, } from '@o3r/core'; import { - Subscription + Subscription, } from 'rxjs'; import { ConfigurationStore, @@ -23,10 +23,10 @@ import { selectConfigOverride, selectConfigurationEntities, upsertConfigurationEntities, - upsertConfigurationEntity + upsertConfigurationEntity, } from '../../stores/index'; import { - ConfigurationBaseService + ConfigurationBaseService, } from './configuration.base.service'; interface MyConfigToTest extends Configuration { diff --git a/packages/@o3r/configuration/src/services/configuration/configuration.base.service.ts b/packages/@o3r/configuration/src/services/configuration/configuration.base.service.ts index e4e725e47e..4188c1c5af 100644 --- a/packages/@o3r/configuration/src/services/configuration/configuration.base.service.ts +++ b/packages/@o3r/configuration/src/services/configuration/configuration.base.service.ts @@ -1,29 +1,29 @@ import { - Injectable + Injectable, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { Configuration, CustomConfig, - deepFill + deepFill, } from '@o3r/core'; import { combineLatest, Observable, - of + of, } from 'rxjs'; import { distinctUntilChanged, map, switchMap, - take + take, } from 'rxjs/operators'; import { ConfigOverrideStore, - selectComponentOverrideConfig + selectComponentOverrideConfig, } from '../../stores/config-override/index'; import { computeConfiguration, @@ -34,10 +34,10 @@ import { selectGlobalConfiguration, updateConfigurationEntity, upsertConfigurationEntities, - upsertConfigurationEntity + upsertConfigurationEntity, } from '../../stores/index'; import { - ConfigurationBaseServiceModule + ConfigurationBaseServiceModule, } from './configuration.base.module'; const jsonStringifyDiff = (obj1: any, obj2: any) => JSON.stringify(obj1) === JSON.stringify(obj2); diff --git a/packages/@o3r/configuration/src/stores/config-override/config-override.actions.ts b/packages/@o3r/configuration/src/stores/config-override/config-override.actions.ts index f5ab910f1d..9e7c54e859 100644 --- a/packages/@o3r/configuration/src/stores/config-override/config-override.actions.ts +++ b/packages/@o3r/configuration/src/stores/config-override/config-override.actions.ts @@ -1,12 +1,12 @@ import { createAction, - props + props, } from '@ngrx/store'; import { - SetStateActionPayload + SetStateActionPayload, } from '@o3r/core'; import { - ConfigOverrideState + ConfigOverrideState, } from './config-override.state'; /** Actions */ diff --git a/packages/@o3r/configuration/src/stores/config-override/config-override.module.ts b/packages/@o3r/configuration/src/stores/config-override/config-override.module.ts index 0b326d6795..3e581ce0db 100644 --- a/packages/@o3r/configuration/src/stores/config-override/config-override.module.ts +++ b/packages/@o3r/configuration/src/stores/config-override/config-override.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - configOverrideReducer + configOverrideReducer, } from './config-override.reducer'; import { CONFIG_OVERRIDE_STORE_NAME, - ConfigOverrideState + ConfigOverrideState, } from './config-override.state'; /** Token of the ConfigOverride reducer */ diff --git a/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.spec.ts b/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.spec.ts index 280c2ab232..b295468792 100644 --- a/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.spec.ts +++ b/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.spec.ts @@ -1,10 +1,10 @@ import * as actions from './config-override.actions'; import { configOverrideInitialState, - configOverrideReducer + configOverrideReducer, } from './config-override.reducer'; import { - ConfigOverrideState + ConfigOverrideState, } from './config-override.state'; describe('ConfigOverride Store reducer', () => { diff --git a/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.ts b/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.ts index 2a3e5d3af6..9065d28a4e 100644 --- a/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.ts +++ b/packages/@o3r/configuration/src/stores/config-override/config-override.reducer.ts @@ -2,11 +2,11 @@ import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './config-override.actions'; import { - ConfigOverrideState + ConfigOverrideState, } from './config-override.state'; /** diff --git a/packages/@o3r/configuration/src/stores/config-override/config-override.selectors.ts b/packages/@o3r/configuration/src/stores/config-override/config-override.selectors.ts index 9a0a2293a3..7a1918fe84 100644 --- a/packages/@o3r/configuration/src/stores/config-override/config-override.selectors.ts +++ b/packages/@o3r/configuration/src/stores/config-override/config-override.selectors.ts @@ -1,10 +1,10 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { CONFIG_OVERRIDE_STORE_NAME, - ConfigOverrideState + ConfigOverrideState, } from './config-override.state'; /** Select ConfigOverride State */ diff --git a/packages/@o3r/configuration/src/stores/config-override/config-override.sync.ts b/packages/@o3r/configuration/src/stores/config-override/config-override.sync.ts index 331aa4575a..e447205c12 100644 --- a/packages/@o3r/configuration/src/stores/config-override/config-override.sync.ts +++ b/packages/@o3r/configuration/src/stores/config-override/config-override.sync.ts @@ -1,11 +1,11 @@ import { - Serializer + Serializer, } from '@o3r/core'; import { - configOverrideInitialState + configOverrideInitialState, } from './config-override.reducer'; import { - ConfigOverrideState + ConfigOverrideState, } from './config-override.state'; /** diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.actions.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.actions.ts index 9c0acc5d20..e13bc39a84 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.actions.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.actions.ts @@ -1,9 +1,9 @@ import { createAction, - props + props, } from '@ngrx/store'; import { - Configuration + Configuration, } from '@o3r/core'; export interface SetConfigurationEntitiesPayload { diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.helpers.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.helpers.ts index e2bfe04236..7b7c5c0f2f 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.helpers.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.helpers.ts @@ -1,12 +1,12 @@ import type { Configuration, - CustomConfig + CustomConfig, } from '@o3r/core'; import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import { - SetConfigurationEntitiesPayload + SetConfigurationEntitiesPayload, } from './configuration.actions'; /** diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.module.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.module.ts index 9f74ae7284..092cd1b11a 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.module.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - configurationReducer + configurationReducer, } from './configuration.reducer'; import { CONFIGURATION_STORE_NAME, - ConfigurationState + ConfigurationState, } from './configuration.state'; /** Token of the Configuration reducer */ diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.spec.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.spec.ts index 479d4c823b..9a58e1a5b8 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.spec.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.spec.ts @@ -1,31 +1,31 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - Dictionary + Dictionary, } from '@ngrx/entity'; import type { - Configuration + Configuration, } from '@o3r/core'; import { clearConfigurationEntities, updateConfigurationEntities, updateConfigurationEntity, upsertConfigurationEntities, - upsertConfigurationEntity + upsertConfigurationEntity, } from './configuration.actions'; import { configurationAdapter, configurationInitialState, - configurationReducer + configurationReducer, } from './configuration.reducer'; import type { - ConfigurationModel + ConfigurationModel, } from './configuration.state'; interface MyConfigToTest extends Configuration { diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.ts index f317eacb46..1ff316756b 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.reducer.ts @@ -1,17 +1,17 @@ import { createEntityAdapter, - EntityAdapter + EntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './configuration.actions'; import { ConfigurationModel, - ConfigurationState + ConfigurationState, } from './configuration.state'; /** diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.selectors.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.selectors.ts index c9d0d3d137..b84e8c914b 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.selectors.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.selectors.ts @@ -1,16 +1,16 @@ import { - createSelector + createSelector, } from '@ngrx/store'; import { - Configuration + Configuration, } from '@o3r/core'; import { - configurationAdapter + configurationAdapter, } from './configuration.reducer'; import { CONFIGURATION_STORE_NAME, ConfigurationState, - globalConfigurationId + globalConfigurationId, } from './configuration.state'; const { selectIds, selectEntities, selectAll, selectTotal } = configurationAdapter.getSelectors(); diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.state.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.state.ts index 93458f430c..63878e8050 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.state.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.state.ts @@ -1,8 +1,8 @@ import type { - EntityState + EntityState, } from '@ngrx/entity'; import type { - Configuration + Configuration, } from '@o3r/core'; /** diff --git a/packages/@o3r/configuration/src/stores/configuration/configuration.sync.ts b/packages/@o3r/configuration/src/stores/configuration/configuration.sync.ts index 5e3003c842..452e110924 100644 --- a/packages/@o3r/configuration/src/stores/configuration/configuration.sync.ts +++ b/packages/@o3r/configuration/src/stores/configuration/configuration.sync.ts @@ -1,9 +1,9 @@ import { configurationAdapter, - configurationInitialState + configurationInitialState, } from './configuration.reducer'; import { - ConfigurationState + ConfigurationState, } from './configuration.state'; export const configurationStorageSync = { diff --git a/packages/@o3r/configuration/src/tools/configuration.decorators.ts b/packages/@o3r/configuration/src/tools/configuration.decorators.ts index 3552cda470..4389a7d4bc 100644 --- a/packages/@o3r/configuration/src/tools/configuration.decorators.ts +++ b/packages/@o3r/configuration/src/tools/configuration.decorators.ts @@ -1,12 +1,12 @@ import { Configuration, - otterComponentInfoPropertyName + otterComponentInfoPropertyName, } from '@o3r/core'; import { - ConfigurationObserver + ConfigurationObserver, } from './configuration.observer'; import type { - ConfigurationSignal + ConfigurationSignal, } from './configuration.signal'; const decorator = (target: any, key: string) => { diff --git a/packages/@o3r/configuration/src/tools/configuration.observer.ts b/packages/@o3r/configuration/src/tools/configuration.observer.ts index b795411b79..ebc607ff6a 100644 --- a/packages/@o3r/configuration/src/tools/configuration.observer.ts +++ b/packages/@o3r/configuration/src/tools/configuration.observer.ts @@ -1,20 +1,20 @@ import type { - Configuration + Configuration, } from '@o3r/core'; import { BehaviorSubject, type Observable, type Observer, - type Subject + type Subject, } from 'rxjs'; import { - shareReplay + shareReplay, } from 'rxjs/operators'; import { - getConfiguration + getConfiguration, } from '../core'; import { - ConfigurationBaseService + ConfigurationBaseService, } from '../services/configuration/configuration.base.service'; export class ConfigurationObserver implements Observer | undefined>, Pick, 'asObservable'> { diff --git a/packages/@o3r/configuration/src/tools/configuration.signal.ts b/packages/@o3r/configuration/src/tools/configuration.signal.ts index 85e7bcbd7e..8e4e3bd086 100644 --- a/packages/@o3r/configuration/src/tools/configuration.signal.ts +++ b/packages/@o3r/configuration/src/tools/configuration.signal.ts @@ -1,23 +1,23 @@ import { inject, type InputSignal, - type Signal + type Signal, } from '@angular/core'; import { toObservable, - toSignal + toSignal, } from '@angular/core/rxjs-interop'; import type { - Configuration + Configuration, } from '@o3r/core'; import { - shareReplay + shareReplay, } from 'rxjs'; import { - getConfiguration + getConfiguration, } from '../core'; import { - ConfigurationBaseService + ConfigurationBaseService, } from '../services'; /** Configuration signal */ diff --git a/packages/@o3r/core/builders/app-version/index.spec.ts b/packages/@o3r/core/builders/app-version/index.spec.ts index 5843df971a..608d73f99e 100644 --- a/packages/@o3r/core/builders/app-version/index.spec.ts +++ b/packages/@o3r/core/builders/app-version/index.spec.ts @@ -2,20 +2,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { Architect, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - AppVersionBuilderSchema + AppVersionBuilderSchema, } from './schema'; describe('App version Builder', () => { diff --git a/packages/@o3r/core/builders/app-version/index.ts b/packages/@o3r/core/builders/app-version/index.ts index 87e84172ca..80fa7debdb 100644 --- a/packages/@o3r/core/builders/app-version/index.ts +++ b/packages/@o3r/core/builders/app-version/index.ts @@ -2,13 +2,13 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '../utils'; import { - AppVersionBuilderSchema + AppVersionBuilderSchema, } from './schema'; export * from './schema'; diff --git a/packages/@o3r/core/builders/app-version/schema.ts b/packages/@o3r/core/builders/app-version/schema.ts index 8b1e43797a..f7c376b01d 100644 --- a/packages/@o3r/core/builders/app-version/schema.ts +++ b/packages/@o3r/core/builders/app-version/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; /** Set the app version */ diff --git a/packages/@o3r/core/builders/lib-build/index.ts b/packages/@o3r/core/builders/lib-build/index.ts index 20450a6096..922b533eb1 100644 --- a/packages/@o3r/core/builders/lib-build/index.ts +++ b/packages/@o3r/core/builders/lib-build/index.ts @@ -1,20 +1,20 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import * as ts from 'typescript'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '../utils'; import { - LibraryBuilderSchema + LibraryBuilderSchema, } from './schema'; /** List of option dedicated to this build which should not be propagated to target build */ diff --git a/packages/@o3r/core/builders/lib-build/schema.ts b/packages/@o3r/core/builders/lib-build/schema.ts index cc0cdc0e5f..8b8b98147b 100644 --- a/packages/@o3r/core/builders/lib-build/schema.ts +++ b/packages/@o3r/core/builders/lib-build/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; /** Library builder */ diff --git a/packages/@o3r/core/builders/multi-watcher/index.ts b/packages/@o3r/core/builders/multi-watcher/index.ts index c11331c657..fe99114b31 100644 --- a/packages/@o3r/core/builders/multi-watcher/index.ts +++ b/packages/@o3r/core/builders/multi-watcher/index.ts @@ -1,13 +1,13 @@ import { BuilderOutput, createBuilder, - Target + Target, } from '@angular-devkit/architect'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '../utils'; import { - MultiWatcherBuilderSchema + MultiWatcherBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled(async (options, context): Promise => { diff --git a/packages/@o3r/core/builders/multi-watcher/schema.ts b/packages/@o3r/core/builders/multi-watcher/schema.ts index 5d3a15c912..009471d1d3 100644 --- a/packages/@o3r/core/builders/multi-watcher/schema.ts +++ b/packages/@o3r/core/builders/multi-watcher/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; export interface MultiWatcherBuilderSchema extends JsonObject { diff --git a/packages/@o3r/core/builders/ngc/index.ts b/packages/@o3r/core/builders/ngc/index.ts index 986ac5a709..2dce2ce656 100644 --- a/packages/@o3r/core/builders/ngc/index.ts +++ b/packages/@o3r/core/builders/ngc/index.ts @@ -1,23 +1,23 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - main + main, } from '@angular/compiler-cli/src/main'; import { NodeJSFileSystem, - setFileSystem + setFileSystem, } from '@angular/compiler-cli/src/ngtsc/file_system'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import * as chokidar from 'chokidar'; import * as ts from 'typescript'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '../utils'; import { - NgcBuilderSchema + NgcBuilderSchema, } from './schema'; export * from './schema'; diff --git a/packages/@o3r/core/builders/ngc/schema.ts b/packages/@o3r/core/builders/ngc/schema.ts index 450b75fc5f..b189a4a22c 100644 --- a/packages/@o3r/core/builders/ngc/schema.ts +++ b/packages/@o3r/core/builders/ngc/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; /** Library builder */ diff --git a/packages/@o3r/core/builders/pattern-replacement/index.spec.ts b/packages/@o3r/core/builders/pattern-replacement/index.spec.ts index 2e2da1fec7..737ae33be1 100644 --- a/packages/@o3r/core/builders/pattern-replacement/index.spec.ts +++ b/packages/@o3r/core/builders/pattern-replacement/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - PatternReplacementBuilderSchema + PatternReplacementBuilderSchema, } from './schema'; describe('Pattern replacement Builder', () => { diff --git a/packages/@o3r/core/builders/pattern-replacement/index.ts b/packages/@o3r/core/builders/pattern-replacement/index.ts index 7c12a01d7d..53730d7ffc 100644 --- a/packages/@o3r/core/builders/pattern-replacement/index.ts +++ b/packages/@o3r/core/builders/pattern-replacement/index.ts @@ -2,13 +2,13 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '../utils'; import { - PatternReplacementBuilderSchema + PatternReplacementBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled(async (options, context): Promise => { diff --git a/packages/@o3r/core/builders/pattern-replacement/schema.ts b/packages/@o3r/core/builders/pattern-replacement/schema.ts index 567bf8a753..43036ef25c 100644 --- a/packages/@o3r/core/builders/pattern-replacement/schema.ts +++ b/packages/@o3r/core/builders/pattern-replacement/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; /** Replace a given pattern in a list of files */ diff --git a/packages/@o3r/core/builders/run-script/index.ts b/packages/@o3r/core/builders/run-script/index.ts index 94b59f4314..b20869c195 100644 --- a/packages/@o3r/core/builders/run-script/index.ts +++ b/packages/@o3r/core/builders/run-script/index.ts @@ -1,23 +1,23 @@ import { - execSync + execSync, } from 'node:child_process'; import * as fs from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - getPackageManagerRunner + getPackageManagerRunner, } from '@o3r/schematics'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '../utils'; import type { - RunScriptBuilderSchema + RunScriptBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled(async (options, context): Promise => { diff --git a/packages/@o3r/core/builders/utils.ts b/packages/@o3r/core/builders/utils.ts index 5b07fef664..b915557a4b 100644 --- a/packages/@o3r/core/builders/utils.ts +++ b/packages/@o3r/core/builders/utils.ts @@ -1,5 +1,5 @@ import type { - BuilderWrapper + BuilderWrapper, } from '@o3r/telemetry'; const noopBuilderWrapper: BuilderWrapper = (fn) => fn; diff --git a/packages/@o3r/core/eslint.local.config.mjs b/packages/@o3r/core/eslint.local.config.mjs index a8dccc3808..41519501a8 100644 --- a/packages/@o3r/core/eslint.local.config.mjs +++ b/packages/@o3r/core/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/core/schematics/add-modules/index.ts b/packages/@o3r/core/schematics/add-modules/index.ts index 8822f6377f..9a135d511f 100644 --- a/packages/@o3r/core/schematics/add-modules/index.ts +++ b/packages/@o3r/core/schematics/add-modules/index.ts @@ -1,26 +1,26 @@ import { askConfirmation, - askQuestion + askQuestion, } from '@angular/cli/src/utilities/prompt'; import { chain, externalSchematic, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, getAvailableModulesWithLatestPackage, getWorkspaceConfig, OTTER_MODULE_KEYWORD, - OTTER_MODULE_SUPPORTED_SCOPES + OTTER_MODULE_SUPPORTED_SCOPES, } from '@o3r/schematics'; import { getExternalPreset, - presets + presets, } from '../shared/presets'; import type { - NgAddModulesSchematicsSchema + NgAddModulesSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/add-modules/schema.ts b/packages/@o3r/core/schematics/add-modules/schema.ts index 5fc7de380a..c571f8f2e7 100644 --- a/packages/@o3r/core/schematics/add-modules/schema.ts +++ b/packages/@o3r/core/schematics/add-modules/schema.ts @@ -1,8 +1,8 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; import type { - PresetNames + PresetNames, } from '../ng-add/schema'; export interface NgAddModulesSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/component/container/index.spec.ts b/packages/@o3r/core/schematics/component/container/index.spec.ts index 90c726841a..96a2710aa3 100644 --- a/packages/@o3r/core/schematics/component/container/index.spec.ts +++ b/packages/@o3r/core/schematics/component/container/index.spec.ts @@ -1,23 +1,23 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { getComponentSelectorWithoutSuffix, - TYPES_DEFAULT_FOLDER + TYPES_DEFAULT_FOLDER, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - CONTAINER_FOLDER + CONTAINER_FOLDER, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/component/container/index.ts b/packages/@o3r/core/schematics/component/container/index.ts index ab1f513003..5bb9e1359c 100644 --- a/packages/@o3r/core/schematics/component/container/index.ts +++ b/packages/@o3r/core/schematics/component/container/index.ts @@ -13,7 +13,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addImportsAndCodeBlockStatementAtSpecInitializationTransformerFactory, @@ -28,37 +28,37 @@ import { getComponentSelectorWithoutSuffix, getDestinationPath, getInputComponentName, - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; import { addImportToModule, - insertImport + insertImport, } from '@schematics/angular/utility/ast-utils'; import { applyToUpdateRecorder, - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import { - getAddConfigurationRules + getAddConfigurationRules, } from '../../rule-factories/component/configuration'; import { - getAddContextRules + getAddContextRules, } from '../../rule-factories/component/context'; import { - getAddFixtureRules + getAddFixtureRules, } from '../../rule-factories/component/fixture'; import { - getAddRulesEngineRules + getAddRulesEngineRules, } from '../../rule-factories/component/rules-engine'; import { - PRESENTER_FOLDER + PRESENTER_FOLDER, } from '../presenter'; import { - ComponentStructureDef + ComponentStructureDef, } from '../structures.types'; import { - NgGenerateComponentContainerSchematicsSchema + NgGenerateComponentContainerSchematicsSchema, } from './schema'; export const CONTAINER_FOLDER = 'container'; diff --git a/packages/@o3r/core/schematics/component/container/schema.ts b/packages/@o3r/core/schematics/component/container/schema.ts index 2bdcd22ecc..767ddb27cc 100644 --- a/packages/@o3r/core/schematics/component/container/schema.ts +++ b/packages/@o3r/core/schematics/component/container/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateComponentContainerSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/component/index.ts b/packages/@o3r/core/schematics/component/index.ts index f46ca223a2..6653014659 100644 --- a/packages/@o3r/core/schematics/component/index.ts +++ b/packages/@o3r/core/schematics/component/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -14,7 +14,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, @@ -23,10 +23,10 @@ import { getDestinationPath, getInputComponentName, moduleHasSubEntryPoints, - writeSubEntryPointPackageJson + writeSubEntryPointPackageJson, } from '@o3r/schematics'; import { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/component/presenter/index.spec.ts b/packages/@o3r/core/schematics/component/presenter/index.spec.ts index 583420aab8..bec756e5ef 100644 --- a/packages/@o3r/core/schematics/component/presenter/index.spec.ts +++ b/packages/@o3r/core/schematics/component/presenter/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { getComponentSelectorWithoutSuffix, - TYPES_DEFAULT_FOLDER + TYPES_DEFAULT_FOLDER, } from '@o3r/schematics'; import { - PRESENTER_FOLDER + PRESENTER_FOLDER, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/component/presenter/index.ts b/packages/@o3r/core/schematics/component/presenter/index.ts index dbb0e0287f..956a5be58b 100644 --- a/packages/@o3r/core/schematics/component/presenter/index.ts +++ b/packages/@o3r/core/schematics/component/presenter/index.ts @@ -13,7 +13,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, @@ -25,34 +25,34 @@ import { getDestinationPath, getInputComponentName, getLibraryNameFromPath, - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; import { - getAddAnalyticsRules + getAddAnalyticsRules, } from '../../rule-factories/component/analytics'; import { - getAddConfigurationRules + getAddConfigurationRules, } from '../../rule-factories/component/configuration'; import { - getAddContextRules + getAddContextRules, } from '../../rule-factories/component/context'; import { - getAddDesignTokenRules + getAddDesignTokenRules, } from '../../rule-factories/component/design-token'; import { - getAddFixtureRules + getAddFixtureRules, } from '../../rule-factories/component/fixture'; import { - getAddLocalizationRules + getAddLocalizationRules, } from '../../rule-factories/component/localization'; import { - getAddThemingRules + getAddThemingRules, } from '../../rule-factories/component/theming'; import { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../schema'; import { - ComponentStructureDef + ComponentStructureDef, } from '../structures.types'; export const PRESENTER_FOLDER = 'presenter'; diff --git a/packages/@o3r/core/schematics/component/presenter/schema.ts b/packages/@o3r/core/schematics/component/presenter/schema.ts index 462ebb695d..4828cd108e 100644 --- a/packages/@o3r/core/schematics/component/presenter/schema.ts +++ b/packages/@o3r/core/schematics/component/presenter/schema.ts @@ -1,8 +1,8 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; import type { - ComponentStructure + ComponentStructure, } from '../structures.types'; export interface NgGenerateComponentPresenterSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/component/schema.ts b/packages/@o3r/core/schematics/component/schema.ts index ec8ba9f5b3..8d800d32db 100644 --- a/packages/@o3r/core/schematics/component/schema.ts +++ b/packages/@o3r/core/schematics/component/schema.ts @@ -1,8 +1,8 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; import type { - ComponentStructure + ComponentStructure, } from './structures.types'; export interface NgGenerateComponentSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/component/structures.types.ts b/packages/@o3r/core/schematics/component/structures.types.ts index 90acc196dc..4664fdda02 100644 --- a/packages/@o3r/core/schematics/component/structures.types.ts +++ b/packages/@o3r/core/schematics/component/structures.types.ts @@ -1,8 +1,8 @@ export type ComponentStructure = 'full' | 'container' | 'presenter' | 'simple'; export enum ComponentStructureDef { /* eslint-disable @typescript-eslint/naming-convention -- cannot be changed without introducing breaking changes */ - 'Cont' = 'Cont', - 'Pres' = 'Pres', - 'Simple' = 'Simple' + Cont = 'Cont', + Pres = 'Pres', + Simple = 'Simple' /* eslint-enable @typescript-eslint/naming-convention */ } diff --git a/packages/@o3r/core/schematics/context-to-component/index.spec.ts b/packages/@o3r/core/schematics/context-to-component/index.spec.ts index 230d733386..c6e88e2164 100644 --- a/packages/@o3r/core/schematics/context-to-component/index.spec.ts +++ b/packages/@o3r/core/schematics/context-to-component/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddContextFn + ngAddContextFn, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/context-to-component/index.ts b/packages/@o3r/core/schematics/context-to-component/index.ts index b2f8552498..6a1aebc941 100644 --- a/packages/@o3r/core/schematics/context-to-component/index.ts +++ b/packages/@o3r/core/schematics/context-to-component/index.ts @@ -1,7 +1,7 @@ import { basename, dirname, - posix + posix, } from 'node:path'; import { apply, @@ -16,7 +16,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addImportsRule, @@ -27,11 +27,11 @@ import { getO3rComponentInfoOrThrowIfNotFound, isO3rClassComponent, NoOtterComponent, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as ts from 'typescript'; import type { - NgAddConfigSchematicsSchema + NgAddConfigSchematicsSchema, } from './schema'; const checkContext = (componentPath: string, tree: Tree) => { diff --git a/packages/@o3r/core/schematics/context-to-component/schema.ts b/packages/@o3r/core/schematics/context-to-component/schema.ts index 517fa80faf..cb977e91fe 100644 --- a/packages/@o3r/core/schematics/context-to-component/schema.ts +++ b/packages/@o3r/core/schematics/context-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddConfigSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/convert-component/index.spec.ts b/packages/@o3r/core/schematics/convert-component/index.spec.ts index 889b36b782..32d2bc5630 100644 --- a/packages/@o3r/core/schematics/convert-component/index.spec.ts +++ b/packages/@o3r/core/schematics/convert-component/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/convert-component/index.ts b/packages/@o3r/core/schematics/convert-component/index.ts index c86af10695..21c58e076b 100644 --- a/packages/@o3r/core/schematics/convert-component/index.ts +++ b/packages/@o3r/core/schematics/convert-component/index.ts @@ -2,25 +2,25 @@ import { chain, noop, Rule, - Tree + Tree, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, isNgClassComponent, isO3rClassComponent, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { - insertImport + insertImport, } from '@schematics/angular/utility/ast-utils'; import { applyToUpdateRecorder, - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import { - ConvertToO3rComponentSchematicsSchema + ConvertToO3rComponentSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/convert-component/schema.ts b/packages/@o3r/core/schematics/convert-component/schema.ts index 3f0873f068..356f5fb366 100644 --- a/packages/@o3r/core/schematics/convert-component/schema.ts +++ b/packages/@o3r/core/schematics/convert-component/schema.ts @@ -1,8 +1,8 @@ import type { - ComponentType + ComponentType, } from '@o3r/core'; import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface ConvertToO3rComponentSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/index.it.spec.ts b/packages/@o3r/core/schematics/index.it.spec.ts index dc53c92929..2b92fbd5e6 100644 --- a/packages/@o3r/core/schematics/index.it.spec.ts +++ b/packages/@o3r/core/schematics/index.it.spec.ts @@ -7,7 +7,7 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { execSync, - spawn + spawn, } from 'node:child_process'; import * as path from 'node:path'; import { @@ -17,7 +17,7 @@ import { packageManagerExec, packageManagerExecOnProject, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; import getPidFromPort from 'pid-from-port'; diff --git a/packages/@o3r/core/schematics/ng-add-create/index.ts b/packages/@o3r/core/schematics/ng-add-create/index.ts index 51bf78f558..de5f535a8c 100644 --- a/packages/@o3r/core/schematics/ng-add-create/index.ts +++ b/packages/@o3r/core/schematics/ng-add-create/index.ts @@ -11,18 +11,18 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, findConfigFileRelativePath, - getPackageManagerRunner + getPackageManagerRunner, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - NgGenerateUpdateSchematicsSchema + NgGenerateUpdateSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/ng-add-create/schema.ts b/packages/@o3r/core/schematics/ng-add-create/schema.ts index 45d04baaae..ba20f845ce 100644 --- a/packages/@o3r/core/schematics/ng-add-create/schema.ts +++ b/packages/@o3r/core/schematics/ng-add-create/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateUpdateSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/ng-add/component-decorator/index.spec.ts b/packages/@o3r/core/schematics/ng-add/component-decorator/index.spec.ts index 9c2a0f6533..e05c936835 100644 --- a/packages/@o3r/core/schematics/ng-add/component-decorator/index.spec.ts +++ b/packages/@o3r/core/schematics/ng-add/component-decorator/index.spec.ts @@ -1,18 +1,18 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - join + join, } from 'node:path'; import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - updateComponentDecorators + updateComponentDecorators, } from './index'; describe('Update component decorators', () => { diff --git a/packages/@o3r/core/schematics/ng-add/component-decorator/index.ts b/packages/@o3r/core/schematics/ng-add/component-decorator/index.ts index 785982657d..182983e3d9 100644 --- a/packages/@o3r/core/schematics/ng-add/component-decorator/index.ts +++ b/packages/@o3r/core/schematics/ng-add/component-decorator/index.ts @@ -1,12 +1,12 @@ import { Rule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - insertImport + insertImport, } from '@schematics/angular/utility/ast-utils'; import { - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; diff --git a/packages/@o3r/core/schematics/ng-add/index.ts b/packages/@o3r/core/schematics/ng-add/index.ts index 65145c430a..3b3008977b 100644 --- a/packages/@o3r/core/schematics/ng-add/index.ts +++ b/packages/@o3r/core/schematics/ng-add/index.ts @@ -1,39 +1,39 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - askConfirmation + askConfirmation, } from '@angular/cli/src/utilities/prompt'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, displayModuleListRule, registerPackageCollectionSchematics, - setupSchematicsParamsForProject + setupSchematicsParamsForProject, } from '@o3r/schematics'; import { type DependencyToAdd, setupDependencies, - type SetupDependenciesOptions + type SetupDependenciesOptions, } from '@o3r/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { getExternalPreset, - presets + presets, } from '../shared/presets'; import { - prepareProject + prepareProject, } from './project-setup/index'; import { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const workspacePackageName = '@o3r/workspace'; diff --git a/packages/@o3r/core/schematics/ng-add/project-setup/index.ts b/packages/@o3r/core/schematics/ng-add/project-setup/index.ts index ea82ede9f5..c95287c7ee 100644 --- a/packages/@o3r/core/schematics/ng-add/project-setup/index.ts +++ b/packages/@o3r/core/schematics/ng-add/project-setup/index.ts @@ -3,7 +3,7 @@ import * as path from 'node:path'; import { chain, noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { applyEsLintFix, @@ -11,30 +11,30 @@ import { getProjectNewDependenciesTypes, getWorkspaceConfig, removePackages, - type SetupDependenciesOptions + type SetupDependenciesOptions, } from '@o3r/schematics'; import { o3rBasicUpdates, updateAdditionalModules, updateCustomizationEnvironment, updateOtterEnvironmentAdapter, - updateStore + updateStore, } from '../../rule-factories/index'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../schema'; import { - updateBuildersNames + updateBuildersNames, } from '../updates-for-v8/cms-adapters/update-builders-names'; import { - updateOtterGeneratorsNames + updateOtterGeneratorsNames, } from '../updates-for-v8/generators/update-generators-names'; import { - packagesToRemove + packagesToRemove, } from '../updates-for-v8/replaced-packages'; import { isUsingFlatConfig, - shouldOtterLinterBeInstalled + shouldOtterLinterBeInstalled, } from '../utils/index'; /** diff --git a/packages/@o3r/core/schematics/ng-add/schema.ts b/packages/@o3r/core/schematics/ng-add/schema.ts index 80403346f1..c77ba6e122 100644 --- a/packages/@o3r/core/schematics/ng-add/schema.ts +++ b/packages/@o3r/core/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export type PresetNames = 'basic' | 'cms' | 'all'; diff --git a/packages/@o3r/core/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.ts b/packages/@o3r/core/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.ts index 436d55fa80..6ad49dfeac 100644 --- a/packages/@o3r/core/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.ts +++ b/packages/@o3r/core/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; /** * Change otter builders names into angular.json diff --git a/packages/@o3r/core/schematics/ng-add/updates-for-v8/generators/update-generators-names.ts b/packages/@o3r/core/schematics/ng-add/updates-for-v8/generators/update-generators-names.ts index cef19c78e1..2e307b062e 100644 --- a/packages/@o3r/core/schematics/ng-add/updates-for-v8/generators/update-generators-names.ts +++ b/packages/@o3r/core/schematics/ng-add/updates-for-v8/generators/update-generators-names.ts @@ -1,10 +1,10 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { getWorkspaceConfig, - WorkspaceSchematics + WorkspaceSchematics, } from '@o3r/schematics'; const generatorsMappingFromV7 = { diff --git a/packages/@o3r/core/schematics/ng-add/utils/linter/index.ts b/packages/@o3r/core/schematics/ng-add/utils/linter/index.ts index 20c27c1198..9f0ea0333c 100644 --- a/packages/@o3r/core/schematics/ng-add/utils/linter/index.ts +++ b/packages/@o3r/core/schematics/ng-add/utils/linter/index.ts @@ -1,9 +1,9 @@ import { - askConfirmation + askConfirmation, } from '@angular/cli/src/utilities/prompt'; import { SchematicContext, - type Tree + type Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/core/schematics/ng-update/index.ts b/packages/@o3r/core/schematics/ng-update/index.ts index d49bbe9ce9..0a41e595bf 100644 --- a/packages/@o3r/core/schematics/ng-update/index.ts +++ b/packages/@o3r/core/schematics/ng-update/index.ts @@ -2,17 +2,17 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, - updateImports + updateImports, } from '@o3r/schematics'; import { - updateConfiguration + updateConfiguration, } from './v10.0/configuration'; import { - mapImportAsyncStore + mapImportAsyncStore, } from './v8.2/import-map'; /** diff --git a/packages/@o3r/core/schematics/ng-update/v10.0/configuration.ts b/packages/@o3r/core/schematics/ng-update/v10.0/configuration.ts index 67b9b5daa9..d63f9ab881 100644 --- a/packages/@o3r/core/schematics/ng-update/v10.0/configuration.ts +++ b/packages/@o3r/core/schematics/ng-update/v10.0/configuration.ts @@ -1,9 +1,9 @@ import type { Rule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - getFilesWithExtensionFromTree + getFilesWithExtensionFromTree, } from '@o3r/schematics'; const matchingRegex = /(Configuration)<\s*["'](?:strict|legacy)["']\s*>/g; diff --git a/packages/@o3r/core/schematics/ng-update/v8.2/import-map.ts b/packages/@o3r/core/schematics/ng-update/v8.2/import-map.ts index 80f1cb0fa8..3a3bc7b667 100644 --- a/packages/@o3r/core/schematics/ng-update/v8.2/import-map.ts +++ b/packages/@o3r/core/schematics/ng-update/v8.2/import-map.ts @@ -1,5 +1,5 @@ import type { - ImportsMapping + ImportsMapping, } from '@o3r/schematics'; /** Map containing the import changes in otter packages for the exported elements */ diff --git a/packages/@o3r/core/schematics/page/index.spec.ts b/packages/@o3r/core/schematics/page/index.spec.ts index fdd089eb2c..d6ca322a2b 100644 --- a/packages/@o3r/core/schematics/page/index.spec.ts +++ b/packages/@o3r/core/schematics/page/index.spec.ts @@ -1,11 +1,11 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; const mockGetAppModuleFilePath = jest.fn(); diff --git a/packages/@o3r/core/schematics/page/index.ts b/packages/@o3r/core/schematics/page/index.ts index 32d39c10e6..9d1808a9f9 100644 --- a/packages/@o3r/core/schematics/page/index.ts +++ b/packages/@o3r/core/schematics/page/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -16,7 +16,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addImportToModuleFile, @@ -28,23 +28,23 @@ import { getWorkspaceConfig, insertRoute, O3rCliError, - Route + Route, } from '@o3r/schematics'; import * as ts from 'typescript'; import { - getAddConfigurationRules + getAddConfigurationRules, } from '../rule-factories/component/configuration'; import { - getAddFixtureRules + getAddFixtureRules, } from '../rule-factories/component/fixture'; import { - getAddLocalizationRules + getAddLocalizationRules, } from '../rule-factories/component/localization'; import { - getAddThemingRules + getAddThemingRules, } from '../rule-factories/component/theming'; import { - NgGeneratePageSchematicsSchema + NgGeneratePageSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/page/schema.ts b/packages/@o3r/core/schematics/page/schema.ts index 1d0fa7f76d..4a2a87e620 100644 --- a/packages/@o3r/core/schematics/page/schema.ts +++ b/packages/@o3r/core/schematics/page/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGeneratePageSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/renovate/index.spec.ts b/packages/@o3r/core/schematics/renovate/index.spec.ts index 7290816ab9..1609d19e5b 100644 --- a/packages/@o3r/core/schematics/renovate/index.spec.ts +++ b/packages/@o3r/core/schematics/renovate/index.spec.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/renovate/index.ts b/packages/@o3r/core/schematics/renovate/index.ts index a82353840f..cc09689d34 100644 --- a/packages/@o3r/core/schematics/renovate/index.ts +++ b/packages/@o3r/core/schematics/renovate/index.ts @@ -1,5 +1,5 @@ import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -10,13 +10,13 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { - NgGenerateRenovateBotSchematicsSchema + NgGenerateRenovateBotSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/renovate/schema.ts b/packages/@o3r/core/schematics/renovate/schema.ts index ffa104551a..ceca510285 100644 --- a/packages/@o3r/core/schematics/renovate/schema.ts +++ b/packages/@o3r/core/schematics/renovate/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateRenovateBotSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/rule-factories/additional-modules/index.ts b/packages/@o3r/core/schematics/rule-factories/additional-modules/index.ts index 62b379bb10..9891ca91ca 100644 --- a/packages/@o3r/core/schematics/rule-factories/additional-modules/index.ts +++ b/packages/@o3r/core/schematics/rule-factories/additional-modules/index.ts @@ -4,29 +4,29 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getAppModuleFilePath, getProjectNewDependenciesTypes, getWorkspaceConfig, - type SetupDependenciesOptions + type SetupDependenciesOptions, } from '@o3r/schematics'; import { - addRootImport + addRootImport, } from '@schematics/angular/utility'; import { insertImport, - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import { - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; import * as ts from 'typescript'; diff --git a/packages/@o3r/core/schematics/rule-factories/component/analytics.ts b/packages/@o3r/core/schematics/rule-factories/component/analytics.ts index bce43622d7..1a7055136b 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/analytics.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/analytics.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddAnalyticsRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/common.ts b/packages/@o3r/core/schematics/rule-factories/component/common.ts index a456836d76..e8dd5ea003 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/common.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/common.ts @@ -1,6 +1,6 @@ import { askConfirmation, - askQuestion + askQuestion, } from '@angular/cli/src/utilities/prompt'; import { chain, @@ -9,15 +9,15 @@ import { Rule, schematic, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { O3rCliError, SchematicOptionObject, - setupSchematicsParamsForProject + setupSchematicsParamsForProject, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/core/schematics/rule-factories/component/configuration.ts b/packages/@o3r/core/schematics/rule-factories/component/configuration.ts index 406c31471c..6fbab71c2d 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/configuration.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/configuration.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddConfigurationRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/context.ts b/packages/@o3r/core/schematics/rule-factories/component/context.ts index 7d8aa9c3f8..e06c01ee9d 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/context.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/context.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddContextRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/design-token.ts b/packages/@o3r/core/schematics/rule-factories/component/design-token.ts index 4038b1d977..ef5fa90143 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/design-token.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/design-token.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddDesignTokenRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/fixture.ts b/packages/@o3r/core/schematics/rule-factories/component/fixture.ts index 55ec1b7cb7..07eba94841 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/fixture.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/fixture.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddFixtureRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/localization.ts b/packages/@o3r/core/schematics/rule-factories/component/localization.ts index 1154f4c50d..03c2d07781 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/localization.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/localization.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddLocalizationRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/rules-engine.ts b/packages/@o3r/core/schematics/rule-factories/component/rules-engine.ts index a696054eaf..8278f257ca 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/rules-engine.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/rules-engine.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddRulesEngineRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/component/theming.ts b/packages/@o3r/core/schematics/rule-factories/component/theming.ts index 984c8e4c52..4e03f6ed0d 100644 --- a/packages/@o3r/core/schematics/rule-factories/component/theming.ts +++ b/packages/@o3r/core/schematics/rule-factories/component/theming.ts @@ -1,11 +1,11 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateComponentSchematicsSchema + NgGenerateComponentSchematicsSchema, } from '../../component/schema'; import { - askQuestionsToGetRulesOrThrowIfPackageNotAvailable + askQuestionsToGetRulesOrThrowIfPackageNotAvailable, } from './common'; export const getAddThemingRules = ( diff --git a/packages/@o3r/core/schematics/rule-factories/customization-environment/index.ts b/packages/@o3r/core/schematics/rule-factories/customization-environment/index.ts index a17e07c751..6f6265af8b 100644 --- a/packages/@o3r/core/schematics/rule-factories/customization-environment/index.ts +++ b/packages/@o3r/core/schematics/rule-factories/customization-environment/index.ts @@ -1,5 +1,5 @@ import { - posix + posix, } from 'node:path'; import { apply, @@ -13,7 +13,7 @@ import { template, Tree, UpdateRecorder, - url + url, } from '@angular-devkit/schematics'; import { getFileInfo, @@ -21,17 +21,17 @@ import { getWorkspaceConfig, ngAddPackages, insertBeforeModule as o3rInsertBeforeModule, - insertImportToModuleFile as o3rInsertImportToModuleFile + insertImportToModuleFile as o3rInsertImportToModuleFile, } from '@o3r/schematics'; import { addRootImport, - addRootProvider + addRootProvider, } from '@schematics/angular/utility'; import { - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; /** diff --git a/packages/@o3r/core/schematics/rule-factories/o3r-basic-updates/index.ts b/packages/@o3r/core/schematics/rule-factories/o3r-basic-updates/index.ts index 41c9e0bd06..aba528527b 100644 --- a/packages/@o3r/core/schematics/rule-factories/o3r-basic-updates/index.ts +++ b/packages/@o3r/core/schematics/rule-factories/o3r-basic-updates/index.ts @@ -1,15 +1,15 @@ import { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getWorkspaceConfig, readPackageJson, - WorkspaceProject + WorkspaceProject, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; const ngUpdateScript = (tree: Tree, packageJsonObj: PackageJson, packageJsonPath = '/package.json') => { diff --git a/packages/@o3r/core/schematics/rule-factories/otter-environment/index.ts b/packages/@o3r/core/schematics/rule-factories/otter-environment/index.ts index 96db36f9f6..a671abd7c5 100644 --- a/packages/@o3r/core/schematics/rule-factories/otter-environment/index.ts +++ b/packages/@o3r/core/schematics/rule-factories/otter-environment/index.ts @@ -1,22 +1,22 @@ import { join, - posix + posix, } from 'node:path'; import type { - PackageManager + PackageManager, } from '@angular/cli/lib/config/workspace-schema'; import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getPackageManager, getWorkspaceConfig, OTTER_ITEM_TYPES, registerCollectionSchematics, - TYPES_DEFAULT_FOLDER + TYPES_DEFAULT_FOLDER, } from '@o3r/schematics'; import generateEnvironments from '@schematics/angular/environments/index'; import * as ts from 'typescript'; diff --git a/packages/@o3r/core/schematics/rule-factories/store/index.ts b/packages/@o3r/core/schematics/rule-factories/store/index.ts index 7f7c02dfb4..260418a85f 100644 --- a/packages/@o3r/core/schematics/rule-factories/store/index.ts +++ b/packages/@o3r/core/schematics/rule-factories/store/index.ts @@ -4,7 +4,7 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getAppModuleFilePath, @@ -15,16 +15,16 @@ import { isApplicationThatUsesRouterModule, insertBeforeModule as o3rInsertBeforeModule, insertImportToModuleFile as o3rInsertImportToModuleFile, - type SetupDependenciesOptions + type SetupDependenciesOptions, } from '@o3r/schematics'; import { - WorkspaceProject + WorkspaceProject, } from '@o3r/schematics'; import { - addRootImport + addRootImport, } from '@schematics/angular/utility'; import { - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import * as ts from 'typescript'; diff --git a/packages/@o3r/core/schematics/schematics-update/index.ts b/packages/@o3r/core/schematics/schematics-update/index.ts index 893aa16745..367e8c7b0a 100644 --- a/packages/@o3r/core/schematics/schematics-update/index.ts +++ b/packages/@o3r/core/schematics/schematics-update/index.ts @@ -1,5 +1,5 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -7,18 +7,18 @@ import { noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, - getDestinationPath + getDestinationPath, } from '@o3r/schematics'; import { - updateOtterEnvironmentAdapter + updateOtterEnvironmentAdapter, } from '../rule-factories/otter-environment'; import { - NgGenerateUpdateSchematicsSchema + NgGenerateUpdateSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/schematics-update/schema.ts b/packages/@o3r/core/schematics/schematics-update/schema.ts index c75636a9c3..04ca4b7cd6 100644 --- a/packages/@o3r/core/schematics/schematics-update/schema.ts +++ b/packages/@o3r/core/schematics/schematics-update/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateUpdateSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/service/index.spec.ts b/packages/@o3r/core/schematics/service/index.spec.ts index 97bf85e470..3862805a37 100644 --- a/packages/@o3r/core/schematics/service/index.spec.ts +++ b/packages/@o3r/core/schematics/service/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/service/index.ts b/packages/@o3r/core/schematics/service/index.ts index 929e12952c..40129c4122 100644 --- a/packages/@o3r/core/schematics/service/index.ts +++ b/packages/@o3r/core/schematics/service/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -14,7 +14,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, @@ -24,10 +24,10 @@ import { getWorkspaceConfig, moduleHasSubEntryPoints, O3rCliError, - writeSubEntryPointPackageJson + writeSubEntryPointPackageJson, } from '@o3r/schematics'; import { - NgGenerateServiceSchematicsSchema + NgGenerateServiceSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/service/schema.ts b/packages/@o3r/core/schematics/service/schema.ts index 3bba9abdd6..062c68c7a6 100644 --- a/packages/@o3r/core/schematics/service/schema.ts +++ b/packages/@o3r/core/schematics/service/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateServiceSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/shared/presets/all.preset.ts b/packages/@o3r/core/schematics/shared/presets/all.preset.ts index 44c9d975a2..51d3e70215 100644 --- a/packages/@o3r/core/schematics/shared/presets/all.preset.ts +++ b/packages/@o3r/core/schematics/shared/presets/all.preset.ts @@ -1,15 +1,15 @@ import { - chain + chain, } from '@angular-devkit/schematics'; import { setupSchematicsParamsForProject, - WorkspaceSchematics + WorkspaceSchematics, } from '@o3r/schematics'; import { - defaultPresetRuleFactory + defaultPresetRuleFactory, } from './helpers'; import type { - PresetOptions + PresetOptions, } from './preset.interface'; /** diff --git a/packages/@o3r/core/schematics/shared/presets/basic.preset.ts b/packages/@o3r/core/schematics/shared/presets/basic.preset.ts index 80ddba091f..69fe365838 100644 --- a/packages/@o3r/core/schematics/shared/presets/basic.preset.ts +++ b/packages/@o3r/core/schematics/shared/presets/basic.preset.ts @@ -1,5 +1,5 @@ import { - defaultPresetRuleFactory + defaultPresetRuleFactory, } from './helpers'; /** diff --git a/packages/@o3r/core/schematics/shared/presets/cms.preset.ts b/packages/@o3r/core/schematics/shared/presets/cms.preset.ts index eb49600b9c..ff53648d79 100644 --- a/packages/@o3r/core/schematics/shared/presets/cms.preset.ts +++ b/packages/@o3r/core/schematics/shared/presets/cms.preset.ts @@ -1,15 +1,15 @@ import { - chain + chain, } from '@angular-devkit/schematics'; import { setupSchematicsParamsForProject, - WorkspaceSchematics + WorkspaceSchematics, } from '@o3r/schematics'; import { - defaultPresetRuleFactory + defaultPresetRuleFactory, } from './helpers'; import type { - PresetOptions + PresetOptions, } from './preset.interface'; /** diff --git a/packages/@o3r/core/schematics/shared/presets/external.preset.ts b/packages/@o3r/core/schematics/shared/presets/external.preset.ts index 248b6b7c4c..96dd7bdb1d 100644 --- a/packages/@o3r/core/schematics/shared/presets/external.preset.ts +++ b/packages/@o3r/core/schematics/shared/presets/external.preset.ts @@ -1,18 +1,18 @@ import { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getAvailableModules, getWorkspaceConfig, OTTER_MODULE_PRESET_PREFIX, - OTTER_MODULE_SUPPORTED_SCOPES + OTTER_MODULE_SUPPORTED_SCOPES, } from '@o3r/schematics'; import { - defaultPresetRuleFactory + defaultPresetRuleFactory, } from './helpers'; import type { - PresetFactory + PresetFactory, } from './preset.interface'; /** diff --git a/packages/@o3r/core/schematics/shared/presets/helpers.ts b/packages/@o3r/core/schematics/shared/presets/helpers.ts index cf370c4735..634c446426 100644 --- a/packages/@o3r/core/schematics/shared/presets/helpers.ts +++ b/packages/@o3r/core/schematics/shared/presets/helpers.ts @@ -2,19 +2,19 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { type DependencyToAdd, getProjectNewDependenciesTypes, getWorkspaceConfig, - setupDependencies + setupDependencies, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - PresetOptions + PresetOptions, } from './preset.interface'; /** diff --git a/packages/@o3r/core/schematics/shared/presets/index.ts b/packages/@o3r/core/schematics/shared/presets/index.ts index 6402736c39..1b2c3c7c49 100644 --- a/packages/@o3r/core/schematics/shared/presets/index.ts +++ b/packages/@o3r/core/schematics/shared/presets/index.ts @@ -1,14 +1,14 @@ import { - allPreset + allPreset, } from './all.preset'; import { - basicPreset + basicPreset, } from './basic.preset'; import { - cmsPreset + cmsPreset, } from './cms.preset'; import type { - Presets + Presets, } from './preset.interface'; export * from './external.preset'; diff --git a/packages/@o3r/core/schematics/shared/presets/preset.interface.ts b/packages/@o3r/core/schematics/shared/presets/preset.interface.ts index bebb8c94bb..a1e552458f 100644 --- a/packages/@o3r/core/schematics/shared/presets/preset.interface.ts +++ b/packages/@o3r/core/schematics/shared/presets/preset.interface.ts @@ -1,12 +1,12 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { SchematicOptionObject, - SetupDependenciesOptions + SetupDependenciesOptions, } from '@o3r/schematics'; import type { - PresetNames + PresetNames, } from '../../ng-add/schema'; /** Options of the preset runner */ diff --git a/packages/@o3r/core/schematics/show-modules/index.ts b/packages/@o3r/core/schematics/show-modules/index.ts index c1943942bf..bc38a8a442 100644 --- a/packages/@o3r/core/schematics/show-modules/index.ts +++ b/packages/@o3r/core/schematics/show-modules/index.ts @@ -1,14 +1,14 @@ import { - Rule + Rule, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, displayModuleListRule, OTTER_MODULE_KEYWORD, - OTTER_MODULE_SUPPORTED_SCOPES + OTTER_MODULE_SUPPORTED_SCOPES, } from '@o3r/schematics'; import { - NgShowModulesSchematicsSchema + NgShowModulesSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/show-modules/schema.ts b/packages/@o3r/core/schematics/show-modules/schema.ts index f456be8c49..0f0188a5d0 100644 --- a/packages/@o3r/core/schematics/show-modules/schema.ts +++ b/packages/@o3r/core/schematics/show-modules/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgShowModulesSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/store-action/index.spec.ts b/packages/@o3r/core/schematics/store-action/index.spec.ts index 6487e4b915..fe7c111287 100644 --- a/packages/@o3r/core/schematics/store-action/index.spec.ts +++ b/packages/@o3r/core/schematics/store-action/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/store-action/index.ts b/packages/@o3r/core/schematics/store-action/index.ts index 6042e0ba6c..6a8d2ae2d9 100644 --- a/packages/@o3r/core/schematics/store-action/index.ts +++ b/packages/@o3r/core/schematics/store-action/index.ts @@ -1,23 +1,23 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { chain, noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, findLastNodeOfKind, - getDestinationPath + getDestinationPath, } from '@o3r/schematics'; import * as ts from 'typescript'; import { - NgGenerateStoreActionSchematicsSchema + NgGenerateStoreActionSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/store-action/schema.ts b/packages/@o3r/core/schematics/store-action/schema.ts index 1a0075fde8..02df632b0e 100644 --- a/packages/@o3r/core/schematics/store-action/schema.ts +++ b/packages/@o3r/core/schematics/store-action/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateStoreActionSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/core/schematics/store/common/schema.ts b/packages/@o3r/core/schematics/store/common/schema.ts index 706d8a6013..d427872134 100644 --- a/packages/@o3r/core/schematics/store/common/schema.ts +++ b/packages/@o3r/core/schematics/store/common/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/core/schematics/store/entity-async/index.spec.ts b/packages/@o3r/core/schematics/store/entity-async/index.spec.ts index 8acfefc453..8006c28ac7 100644 --- a/packages/@o3r/core/schematics/store/entity-async/index.spec.ts +++ b/packages/@o3r/core/schematics/store/entity-async/index.spec.ts @@ -1,43 +1,43 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - commonModuleContent + commonModuleContent, } from '../common/mocks/example-module'; import { - commonIndexContent + commonIndexContent, } from '../common/mocks/index'; import { - asyncEntityActionsContent + asyncEntityActionsContent, } from './mocks/example-actions'; import { - asyncEntityEffectContent + asyncEntityEffectContent, } from './mocks/example-effect'; import { - asyncEntityEffectSpecContent + asyncEntityEffectSpecContent, } from './mocks/example-effect-spec'; import { - asyncEntityReducerContent + asyncEntityReducerContent, } from './mocks/example-reducer'; import { - asyncEntityReducerSpecContent + asyncEntityReducerSpecContent, } from './mocks/example-reducer-spec'; import { - asyncEntitySelectorsContent + asyncEntitySelectorsContent, } from './mocks/example-selectors'; import { - asyncEntitySelectorsSpecContent + asyncEntitySelectorsSpecContent, } from './mocks/example-selectors-spec'; import { - asyncEntityStateContent + asyncEntityStateContent, } from './mocks/example-state'; import { - asyncEntitySyncContent + asyncEntitySyncContent, } from './mocks/example-sync'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/store/entity-async/index.ts b/packages/@o3r/core/schematics/store/entity-async/index.ts index 8b164053ce..0ff5ffdd4b 100644 --- a/packages/@o3r/core/schematics/store/entity-async/index.ts +++ b/packages/@o3r/core/schematics/store/entity-async/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -14,20 +14,20 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, getDestinationPath, moduleHasSubEntryPoints, - writeSubEntryPointPackageJson + writeSubEntryPointPackageJson, } from '@o3r/schematics'; import { - ExtraFormattedProperties + ExtraFormattedProperties, } from '../common/helpers'; import { - NgGenerateEntityAsyncStoreSchematicsSchema + NgGenerateEntityAsyncStoreSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/store/entity-async/schema.ts b/packages/@o3r/core/schematics/store/entity-async/schema.ts index 12b7e36eee..345b3ad41c 100644 --- a/packages/@o3r/core/schematics/store/entity-async/schema.ts +++ b/packages/@o3r/core/schematics/store/entity-async/schema.ts @@ -1,5 +1,5 @@ import { - NgGenerateCommonStoreSchematicsSchema + NgGenerateCommonStoreSchematicsSchema, } from '../common/schema'; /** diff --git a/packages/@o3r/core/schematics/store/entity-sync/index.spec.ts b/packages/@o3r/core/schematics/store/entity-sync/index.spec.ts index 1b7dd7dc4d..d436852d30 100644 --- a/packages/@o3r/core/schematics/store/entity-sync/index.spec.ts +++ b/packages/@o3r/core/schematics/store/entity-sync/index.spec.ts @@ -1,28 +1,28 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - syncEntityActionsContent + syncEntityActionsContent, } from './mocks/example-actions'; import { - syncEntityReducerContent + syncEntityReducerContent, } from './mocks/example-reducer'; import { - syncEntityReducerSpecContent + syncEntityReducerSpecContent, } from './mocks/example-reducer-spec'; import { - syncEntitySelectorsContent + syncEntitySelectorsContent, } from './mocks/example-selectors'; import { - syncEntitySelectorsSpecContent + syncEntitySelectorsSpecContent, } from './mocks/example-selectors-spec'; import { - syncEntityStateContent + syncEntityStateContent, } from './mocks/example-state'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/store/entity-sync/index.ts b/packages/@o3r/core/schematics/store/entity-sync/index.ts index 3b5d2a921b..357e71bfdc 100644 --- a/packages/@o3r/core/schematics/store/entity-sync/index.ts +++ b/packages/@o3r/core/schematics/store/entity-sync/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -13,20 +13,20 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, getDestinationPath, moduleHasSubEntryPoints, - writeSubEntryPointPackageJson + writeSubEntryPointPackageJson, } from '@o3r/schematics'; import { - ExtraFormattedProperties + ExtraFormattedProperties, } from '../common/helpers'; import { - NgGenerateEntitySyncStoreSchematicsSchema + NgGenerateEntitySyncStoreSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/store/entity-sync/schema.ts b/packages/@o3r/core/schematics/store/entity-sync/schema.ts index 4b3b7f8845..ac38d3c271 100644 --- a/packages/@o3r/core/schematics/store/entity-sync/schema.ts +++ b/packages/@o3r/core/schematics/store/entity-sync/schema.ts @@ -1,5 +1,5 @@ import { - NgGenerateCommonStoreSchematicsSchema + NgGenerateCommonStoreSchematicsSchema, } from '../common/schema'; /** diff --git a/packages/@o3r/core/schematics/store/index.ts b/packages/@o3r/core/schematics/store/index.ts index 2689dc7402..2f47d81fc2 100644 --- a/packages/@o3r/core/schematics/store/index.ts +++ b/packages/@o3r/core/schematics/store/index.ts @@ -1,12 +1,12 @@ import { Rule, - schematic + schematic, } from '@angular-devkit/schematics'; import { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { - NgGenerateStoreSchematicsSchema + NgGenerateStoreSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/store/schema.ts b/packages/@o3r/core/schematics/store/schema.ts index 5a23cedc42..cd8b79c8b6 100644 --- a/packages/@o3r/core/schematics/store/schema.ts +++ b/packages/@o3r/core/schematics/store/schema.ts @@ -1,17 +1,17 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; import { - NgGenerateEntityAsyncStoreSchematicsSchema + NgGenerateEntityAsyncStoreSchematicsSchema, } from './entity-async/schema'; import { - NgGenerateEntitySyncStoreSchematicsSchema + NgGenerateEntitySyncStoreSchematicsSchema, } from './entity-sync/schema'; import { - NgGenerateSimpleAsyncStoreSchematicsSchema + NgGenerateSimpleAsyncStoreSchematicsSchema, } from './simple-async/schema'; import { - NgGenerateSimpleSyncStoreSchematicsSchema + NgGenerateSimpleSyncStoreSchematicsSchema, } from './simple-sync/schema'; /** diff --git a/packages/@o3r/core/schematics/store/simple-async/index.spec.ts b/packages/@o3r/core/schematics/store/simple-async/index.spec.ts index 299b134822..0ab95ddc21 100644 --- a/packages/@o3r/core/schematics/store/simple-async/index.spec.ts +++ b/packages/@o3r/core/schematics/store/simple-async/index.spec.ts @@ -1,31 +1,31 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - asyncSimpleActionsContent + asyncSimpleActionsContent, } from './mocks/example-actions'; import { - asyncSimpleEffectContent + asyncSimpleEffectContent, } from './mocks/example-effect'; import { - asyncSimpleEffectSpecContent + asyncSimpleEffectSpecContent, } from './mocks/example-effect-spec'; import { - asyncSimpleReducerContent + asyncSimpleReducerContent, } from './mocks/example-reducer'; import { - asyncSimpleReducerSpecContent + asyncSimpleReducerSpecContent, } from './mocks/example-reducer-spec'; import { - asyncSimpleStateContent + asyncSimpleStateContent, } from './mocks/example-state'; import { - asyncSimpleSyncContent + asyncSimpleSyncContent, } from './mocks/example-sync'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/store/simple-async/index.ts b/packages/@o3r/core/schematics/store/simple-async/index.ts index 4bad0e52a3..a8d4a6654b 100644 --- a/packages/@o3r/core/schematics/store/simple-async/index.ts +++ b/packages/@o3r/core/schematics/store/simple-async/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -14,20 +14,20 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, getDestinationPath, moduleHasSubEntryPoints, - writeSubEntryPointPackageJson + writeSubEntryPointPackageJson, } from '@o3r/schematics'; import { - ExtraFormattedProperties + ExtraFormattedProperties, } from '../common/helpers'; import { - NgGenerateSimpleAsyncStoreSchematicsSchema + NgGenerateSimpleAsyncStoreSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/store/simple-async/schema.ts b/packages/@o3r/core/schematics/store/simple-async/schema.ts index 71ae4a901e..741ca647c5 100644 --- a/packages/@o3r/core/schematics/store/simple-async/schema.ts +++ b/packages/@o3r/core/schematics/store/simple-async/schema.ts @@ -1,5 +1,5 @@ import { - NgGenerateCommonStoreSchematicsSchema + NgGenerateCommonStoreSchematicsSchema, } from '../common/schema'; /** diff --git a/packages/@o3r/core/schematics/store/simple-sync/index.spec.ts b/packages/@o3r/core/schematics/store/simple-sync/index.spec.ts index 5b2eb1da13..01452ca6bd 100644 --- a/packages/@o3r/core/schematics/store/simple-sync/index.spec.ts +++ b/packages/@o3r/core/schematics/store/simple-sync/index.spec.ts @@ -1,22 +1,22 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - syncSimpleActionsContent + syncSimpleActionsContent, } from './mocks/example-actions'; import { - syncSimpleReducerContent + syncSimpleReducerContent, } from './mocks/example-reducer'; import { - syncSimpleReducerSpecContent + syncSimpleReducerSpecContent, } from './mocks/example-reducer-spec'; import { - syncSimpleStateContent + syncSimpleStateContent, } from './mocks/example-state'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/core/schematics/store/simple-sync/index.ts b/packages/@o3r/core/schematics/store/simple-sync/index.ts index 48a530846d..09cedc23eb 100644 --- a/packages/@o3r/core/schematics/store/simple-sync/index.ts +++ b/packages/@o3r/core/schematics/store/simple-sync/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -13,20 +13,20 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, getDestinationPath, moduleHasSubEntryPoints, - writeSubEntryPointPackageJson + writeSubEntryPointPackageJson, } from '@o3r/schematics'; import { - ExtraFormattedProperties + ExtraFormattedProperties, } from '../common/helpers'; import { - NgGenerateSimpleSyncStoreSchematicsSchema + NgGenerateSimpleSyncStoreSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/core/schematics/store/simple-sync/schema.ts b/packages/@o3r/core/schematics/store/simple-sync/schema.ts index eefa37b719..2cddda7b6b 100644 --- a/packages/@o3r/core/schematics/store/simple-sync/schema.ts +++ b/packages/@o3r/core/schematics/store/simple-sync/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/core/src/core/application/runtime.ts b/packages/@o3r/core/src/core/application/runtime.ts index 22f8e4e10c..5ac0e5ef7d 100644 --- a/packages/@o3r/core/src/core/application/runtime.ts +++ b/packages/@o3r/core/src/core/application/runtime.ts @@ -1,5 +1,5 @@ import { - Configuration + Configuration, } from '../interfaces/configuration'; /** * Application config diff --git a/packages/@o3r/core/src/core/interfaces/configuration.ts b/packages/@o3r/core/src/core/interfaces/configuration.ts index bc749f22f8..87d17353cf 100644 --- a/packages/@o3r/core/src/core/interfaces/configuration.ts +++ b/packages/@o3r/core/src/core/interfaces/configuration.ts @@ -1,9 +1,9 @@ import type { InputSignal, - Signal + Signal, } from '@angular/core'; import type { - Observable + Observable, } from 'rxjs'; /** diff --git a/packages/@o3r/core/src/core/interfaces/context.ts b/packages/@o3r/core/src/core/interfaces/context.ts index b68a19d78f..278404a323 100644 --- a/packages/@o3r/core/src/core/interfaces/context.ts +++ b/packages/@o3r/core/src/core/interfaces/context.ts @@ -1,11 +1,11 @@ import type { - EventEmitter + EventEmitter, } from '@angular/core'; import type { - FormControl + FormControl, } from '@angular/forms'; import type { - Translation + Translation, } from './translation'; /** diff --git a/packages/@o3r/core/src/core/metadata/component.decorator.ts b/packages/@o3r/core/src/core/metadata/component.decorator.ts index 09c586a767..526a2f91bf 100644 --- a/packages/@o3r/core/src/core/metadata/component.decorator.ts +++ b/packages/@o3r/core/src/core/metadata/component.decorator.ts @@ -1,5 +1,5 @@ import type { - Translation + Translation, } from '../interfaces'; /** Type of component */ diff --git a/packages/@o3r/core/src/messages/common-message.interface.ts b/packages/@o3r/core/src/messages/common-message.interface.ts index 687b358032..b2a4846b68 100644 --- a/packages/@o3r/core/src/messages/common-message.interface.ts +++ b/packages/@o3r/core/src/messages/common-message.interface.ts @@ -1,5 +1,5 @@ import type { - OtterMessageContent + OtterMessageContent, } from './message.interfaces'; /** Extension connection notification message content */ diff --git a/packages/@o3r/core/src/messages/message.helpers.ts b/packages/@o3r/core/src/messages/message.helpers.ts index 139fd0f8fb..982fc4ea42 100644 --- a/packages/@o3r/core/src/messages/message.helpers.ts +++ b/packages/@o3r/core/src/messages/message.helpers.ts @@ -1,7 +1,7 @@ import { filter, map, - Observable + Observable, } from 'rxjs'; import { applicationMessageTarget, @@ -9,7 +9,7 @@ import { FilterMessageToApplication, OtterMessage, OtterMessageContent, - otterMessageType + otterMessageType, } from './message.interfaces'; /** diff --git a/packages/@o3r/core/src/store/async/async-entity.adapter.spec.ts b/packages/@o3r/core/src/store/async/async-entity.adapter.spec.ts index 53df9ab69b..0ad4dcfc77 100644 --- a/packages/@o3r/core/src/store/async/async-entity.adapter.spec.ts +++ b/packages/@o3r/core/src/store/async/async-entity.adapter.spec.ts @@ -1,12 +1,12 @@ import { createEntityAdapter, - EntityState + EntityState, } from '@ngrx/entity'; import { - createEntityAsyncRequestAdapter + createEntityAsyncRequestAdapter, } from './async-entity.adapter'; import { - AsyncStoreItem + AsyncStoreItem, } from './async.interfaces'; describe('createEntityAsyncRequestAdapter tests', () => { diff --git a/packages/@o3r/core/src/store/async/async-entity.adapter.ts b/packages/@o3r/core/src/store/async/async-entity.adapter.ts index bd034e901d..ad60ce1bdb 100644 --- a/packages/@o3r/core/src/store/async/async-entity.adapter.ts +++ b/packages/@o3r/core/src/store/async/async-entity.adapter.ts @@ -1,14 +1,14 @@ import type { EntityAdapter, EntityState, - Update + Update, } from '@ngrx/entity'; import { - asyncStoreItemAdapter + asyncStoreItemAdapter, } from './async.adapter'; import { AsyncStoreItem, - EntityWithoutAsyncStoreItem + EntityWithoutAsyncStoreItem, } from './async.interfaces'; /** Adapter for Asynchronous Entity Store */ diff --git a/packages/@o3r/core/src/store/async/async.adapter.spec.ts b/packages/@o3r/core/src/store/async/async.adapter.spec.ts index db710ec221..27dd0c2c37 100644 --- a/packages/@o3r/core/src/store/async/async.adapter.spec.ts +++ b/packages/@o3r/core/src/store/async/async.adapter.spec.ts @@ -1,9 +1,9 @@ import { - asyncStoreItemAdapter + asyncStoreItemAdapter, } from './async.adapter'; import { AsyncStoreItem, - EntityStatus + EntityStatus, } from './async.interfaces'; describe('AsyncStoreItemAdapter tests', () => { diff --git a/packages/@o3r/core/src/store/async/async.adapter.ts b/packages/@o3r/core/src/store/async/async.adapter.ts index 9d67d79109..199d004539 100644 --- a/packages/@o3r/core/src/store/async/async.adapter.ts +++ b/packages/@o3r/core/src/store/async/async.adapter.ts @@ -1,6 +1,6 @@ import { AsyncStoreItem, - EntityStatus + EntityStatus, } from './async.interfaces'; /** diff --git a/packages/@o3r/core/src/store/async/async.helpers.ts b/packages/@o3r/core/src/store/async/async.helpers.ts index 861a45bbd8..97fd2a3b3c 100644 --- a/packages/@o3r/core/src/store/async/async.helpers.ts +++ b/packages/@o3r/core/src/store/async/async.helpers.ts @@ -1,6 +1,6 @@ import { AsyncRequest, - FromApiActionPayload + FromApiActionPayload, } from './async.interfaces'; /** diff --git a/packages/@o3r/core/src/store/async/async.interfaces.ts b/packages/@o3r/core/src/store/async/async.interfaces.ts index 320e30ba64..17fd0a53d9 100644 --- a/packages/@o3r/core/src/store/async/async.interfaces.ts +++ b/packages/@o3r/core/src/store/async/async.interfaces.ts @@ -7,7 +7,7 @@ import { UpdateEntitiesActionPayload, UpdateEntitiesActionPayloadWithId, UpdateEntityActionPayload, - UpdateEntityActionPayloadWithId + UpdateEntityActionPayloadWithId, } from '../types'; export type RequestId = string; diff --git a/packages/@o3r/core/src/store/async/async.operator.spec.ts b/packages/@o3r/core/src/store/async/async.operator.spec.ts index 8eb3bbb415..8a67adeb91 100644 --- a/packages/@o3r/core/src/store/async/async.operator.spec.ts +++ b/packages/@o3r/core/src/store/async/async.operator.spec.ts @@ -1,13 +1,13 @@ import { firstValueFrom, of, - Subject + Subject, } from 'rxjs'; import { - bufferCount + bufferCount, } from 'rxjs/operators'; import { - fromApiEffectSwitchMapById + fromApiEffectSwitchMapById, } from './async.operators'; function later(delay: number) { diff --git a/packages/@o3r/core/src/store/async/async.operators.ts b/packages/@o3r/core/src/store/async/async.operators.ts index c28001a0a3..03cd21c9f6 100644 --- a/packages/@o3r/core/src/store/async/async.operators.ts +++ b/packages/@o3r/core/src/store/async/async.operators.ts @@ -1,5 +1,5 @@ import { - Action + Action, } from '@ngrx/store'; import { BehaviorSubject, @@ -11,7 +11,7 @@ import { Observable, of, OperatorFunction, - Subject + Subject, } from 'rxjs'; import { catchError, @@ -21,15 +21,15 @@ import { pairwise, startWith, switchMap, - tap + tap, } from 'rxjs/operators'; import { - isIdentifiedCallAction + isIdentifiedCallAction, } from './async.helpers'; import { AsyncRequest, ExtractFromApiActionPayloadType, - FromApiActionPayload + FromApiActionPayload, } from './async.interfaces'; /** diff --git a/packages/@o3r/core/src/store/async/async.props.ts b/packages/@o3r/core/src/store/async/async.props.ts index 3edace4482..5bb75af2fa 100644 --- a/packages/@o3r/core/src/store/async/async.props.ts +++ b/packages/@o3r/core/src/store/async/async.props.ts @@ -1,11 +1,11 @@ import { - v4 + v4, } from 'uuid'; import { - isAsyncRequest + isAsyncRequest, } from './async.helpers'; import { - AsyncRequest + AsyncRequest, } from './async.interfaces'; /** diff --git a/packages/@o3r/core/src/store/async/async.serializer.ts b/packages/@o3r/core/src/store/async/async.serializer.ts index c764d4c18c..c41cd9fb6e 100644 --- a/packages/@o3r/core/src/store/async/async.serializer.ts +++ b/packages/@o3r/core/src/store/async/async.serializer.ts @@ -1,12 +1,12 @@ import type { - EntityState + EntityState, } from '@ngrx/entity'; import { - asyncStoreItemAdapter + asyncStoreItemAdapter, } from './async.adapter'; import { AsyncStoreItem, - EntityStatus + EntityStatus, } from './async.interfaces'; /** diff --git a/packages/@o3r/core/src/utils/debug/debug.helper.spec.ts b/packages/@o3r/core/src/utils/debug/debug.helper.spec.ts index 427bf84e39..8afd8798e8 100644 --- a/packages/@o3r/core/src/utils/debug/debug.helper.spec.ts +++ b/packages/@o3r/core/src/utils/debug/debug.helper.spec.ts @@ -1,6 +1,6 @@ import { isProductionEnvironment, - padNumber + padNumber, } from './debug.helper'; describe('debug helper', () => { diff --git a/packages/@o3r/core/src/utils/debug/debug.helper.ts b/packages/@o3r/core/src/utils/debug/debug.helper.ts index 539c96dbeb..d0924e6ee6 100644 --- a/packages/@o3r/core/src/utils/debug/debug.helper.ts +++ b/packages/@o3r/core/src/utils/debug/debug.helper.ts @@ -1,6 +1,6 @@ import type { BootstrapConfig, - Dataset + Dataset, } from '../../core/application/dgp.interfaces'; /** diff --git a/packages/@o3r/core/src/utils/deep-fill/deep-fill.spec.ts b/packages/@o3r/core/src/utils/deep-fill/deep-fill.spec.ts index 790f5d9f4a..c8e77953e5 100644 --- a/packages/@o3r/core/src/utils/deep-fill/deep-fill.spec.ts +++ b/packages/@o3r/core/src/utils/deep-fill/deep-fill.spec.ts @@ -1,7 +1,7 @@ import { deepFill, immutablePrimitive, - isObject + isObject, } from './deep-fill'; describe('Deep fill function', () => { diff --git a/packages/@o3r/core/src/utils/rendering/helpers.spec.ts b/packages/@o3r/core/src/utils/rendering/helpers.spec.ts index 8476eaaece..f0c240501a 100644 --- a/packages/@o3r/core/src/utils/rendering/helpers.spec.ts +++ b/packages/@o3r/core/src/utils/rendering/helpers.spec.ts @@ -1,8 +1,8 @@ import { - TestScheduler + TestScheduler, } from 'rxjs/testing'; import { - lazyArray + lazyArray, } from './rendering.helpers'; describe('Rendering helpers', () => { diff --git a/packages/@o3r/core/src/utils/rendering/rendering.helpers.ts b/packages/@o3r/core/src/utils/rendering/rendering.helpers.ts index 44335c90b0..c5f65a8938 100644 --- a/packages/@o3r/core/src/utils/rendering/rendering.helpers.ts +++ b/packages/@o3r/core/src/utils/rendering/rendering.helpers.ts @@ -3,7 +3,7 @@ import { from, Observable, observeOn, - of + of, } from 'rxjs'; import { bufferCount, @@ -11,7 +11,7 @@ import { delay, mergeMap, scan, - tap + tap, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/core/testing/mocks/app.routing.module.mocks.ts b/packages/@o3r/core/testing/mocks/app.routing.module.mocks.ts index fd94e725b7..38a36c6f46 100644 --- a/packages/@o3r/core/testing/mocks/app.routing.module.mocks.ts +++ b/packages/@o3r/core/testing/mocks/app.routing.module.mocks.ts @@ -1,9 +1,9 @@ import { - NgModule + NgModule, } from '@angular/core'; import { RouterModule, - Routes + Routes, } from '@angular/router'; const appRoutes: Routes = [ diff --git a/packages/@o3r/create/eslint.local.config.mjs b/packages/@o3r/create/eslint.local.config.mjs index 8f930f753e..e0d4d79883 100644 --- a/packages/@o3r/create/eslint.local.config.mjs +++ b/packages/@o3r/create/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/create/src/index.it.spec.ts b/packages/@o3r/create/src/index.it.spec.ts index 6016b870ed..3cb34d2e73 100644 --- a/packages/@o3r/create/src/index.it.spec.ts +++ b/packages/@o3r/create/src/index.it.spec.ts @@ -8,7 +8,7 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { existsSync, - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { @@ -18,7 +18,7 @@ import { packageManagerExec, packageManagerInstall, packageManagerRunOnProject, - setPackagerManagerConfig + setPackagerManagerConfig, } from '@o3r/test-helpers'; const defaultExecOptions = getDefaultExecSyncOptions(); diff --git a/packages/@o3r/create/src/index.ts b/packages/@o3r/create/src/index.ts index 008366d5ac..ffd0bcf0d9 100644 --- a/packages/@o3r/create/src/index.ts +++ b/packages/@o3r/create/src/index.ts @@ -2,25 +2,25 @@ import { spawnSync, - type SpawnSyncOptionsWithBufferEncoding + type SpawnSyncOptionsWithBufferEncoding, } from 'node:child_process'; import { readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; import { - quote + quote, } from 'shell-quote'; import type { - PackageJson + PackageJson, } from 'type-fest'; const { properties } = JSON.parse( diff --git a/packages/@o3r/design/builders/generate-css/index.ts b/packages/@o3r/design/builders/generate-css/index.ts index 1903828ca0..3e90d13c48 100644 --- a/packages/@o3r/design/builders/generate-css/index.ts +++ b/packages/@o3r/design/builders/generate-css/index.ts @@ -1,25 +1,25 @@ import { - existsSync + existsSync, } from 'node:fs'; import { readFile, - writeFile + writeFile, } from 'node:fs/promises'; import { - EOL + EOL, } from 'node:os'; import { - resolve + resolve, } from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import type { - BuilderWrapper + BuilderWrapper, } from '@o3r/telemetry'; import { - sync + sync, } from 'globby'; import { getCssTokenDefinitionRenderer, @@ -30,17 +30,17 @@ import { mergeDesignTokenTemplates, parseDesignTokenFile, renderDesignTokens, - tokenVariableNameSassRenderer + tokenVariableNameSassRenderer, } from '../../src/public_api'; import type { DesignTokenGroupTemplate, DesignTokenRendererOptions, DesignTokenVariableSet, DesignTokenVariableStructure, - TokenKeyRenderer + TokenKeyRenderer, } from '../../src/public_api'; import type { - GenerateCssSchematicsSchema + GenerateCssSchematicsSchema, } from './schema'; const noopBuilder: BuilderWrapper = (fn) => fn; diff --git a/packages/@o3r/design/builders/generate-css/schema.ts b/packages/@o3r/design/builders/generate-css/schema.ts index cb0858b41a..cddf3f72f2 100644 --- a/packages/@o3r/design/builders/generate-css/schema.ts +++ b/packages/@o3r/design/builders/generate-css/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface GenerateCssSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/design/builders/generate-jsonschema/index.ts b/packages/@o3r/design/builders/generate-jsonschema/index.ts index 8471b498b5..b364880ea2 100644 --- a/packages/@o3r/design/builders/generate-jsonschema/index.ts +++ b/packages/@o3r/design/builders/generate-jsonschema/index.ts @@ -1,26 +1,26 @@ import { - resolve + resolve, } from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import type { - BuilderWrapper + BuilderWrapper, } from '@o3r/telemetry'; import * as globby from 'globby'; import type { DesignTokenVariableSet, - DesignTokenVariableStructure + DesignTokenVariableStructure, } from '../../src/public_api'; import { getJsonSchemaStyleContentUpdater, getJsonSchemaTokenDefinitionRenderer, parseDesignTokenFile, - renderDesignTokens + renderDesignTokens, } from '../../src/public_api'; import type { - GenerateJsonSchemaSchematicsSchema + GenerateJsonSchemaSchematicsSchema, } from './schema'; const noopBuilder: BuilderWrapper = (fn) => fn; diff --git a/packages/@o3r/design/builders/generate-jsonschema/schema.ts b/packages/@o3r/design/builders/generate-jsonschema/schema.ts index c011a94892..005c1af992 100644 --- a/packages/@o3r/design/builders/generate-jsonschema/schema.ts +++ b/packages/@o3r/design/builders/generate-jsonschema/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface GenerateJsonSchemaSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/design/builders/generate-style/helpers/metadata-renderer-options.ts b/packages/@o3r/design/builders/generate-style/helpers/metadata-renderer-options.ts index 21335f3de6..cbfa10fd12 100644 --- a/packages/@o3r/design/builders/generate-style/helpers/metadata-renderer-options.ts +++ b/packages/@o3r/design/builders/generate-style/helpers/metadata-renderer-options.ts @@ -1,17 +1,17 @@ import { - resolve + resolve, } from 'node:path'; import type { - BuilderContext + BuilderContext, } from '@angular-devkit/architect'; import { type DesignTokenRendererOptions, getMetadataStyleContentUpdater, getMetadataTokenDefinitionRenderer, - type TokenKeyRenderer + type TokenKeyRenderer, } from '../../../src/public_api'; import type { - GenerateStyleSchematicsSchema + GenerateStyleSchematicsSchema, } from '../schema'; export const getMetadataRenderDesignTokenOptions = ( diff --git a/packages/@o3r/design/builders/generate-style/helpers/style-renderer-options.ts b/packages/@o3r/design/builders/generate-style/helpers/style-renderer-options.ts index a6bdd54839..9c99bb07a7 100644 --- a/packages/@o3r/design/builders/generate-style/helpers/style-renderer-options.ts +++ b/packages/@o3r/design/builders/generate-style/helpers/style-renderer-options.ts @@ -1,11 +1,11 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - BuilderContext + BuilderContext, } from '@angular-devkit/architect'; import { type CssTokenDefinitionRendererOptions, @@ -25,10 +25,10 @@ import { type SassTokenDefinitionRendererOptions, type SassTokenValueRendererOptions, type TokenKeyRenderer, - tokenVariableNameSassRenderer + tokenVariableNameSassRenderer, } from '../../../src/public_api'; import type { - GenerateStyleSchematicsSchema + GenerateStyleSchematicsSchema, } from '../schema'; export const getStyleRendererOptions = (tokenVariableNameRenderer: TokenKeyRenderer | undefined, options: GenerateStyleSchematicsSchema, context: BuilderContext): DesignTokenRendererOptions => { diff --git a/packages/@o3r/design/builders/generate-style/helpers/token-template.ts b/packages/@o3r/design/builders/generate-style/helpers/token-template.ts index 4f68d95bc7..7a0b3de54f 100644 --- a/packages/@o3r/design/builders/generate-style/helpers/token-template.ts +++ b/packages/@o3r/design/builders/generate-style/helpers/token-template.ts @@ -1,18 +1,18 @@ import { - existsSync + existsSync, } from 'node:fs'; import { - readFile + readFile, } from 'node:fs/promises'; import { - resolve + resolve, } from 'node:path'; import type { - BuilderContext + BuilderContext, } from '@angular-devkit/architect'; import { type DesignTokenGroupTemplate, - mergeDesignTokenTemplates + mergeDesignTokenTemplates, } from '../../../src/public_api'; /** diff --git a/packages/@o3r/design/builders/generate-style/index.ts b/packages/@o3r/design/builders/generate-style/index.ts index bb5c537706..f41c0cbc48 100644 --- a/packages/@o3r/design/builders/generate-style/index.ts +++ b/packages/@o3r/design/builders/generate-style/index.ts @@ -1,40 +1,40 @@ import { - EOL + EOL, } from 'node:os'; import { - resolve + resolve, } from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import type { - BuilderWrapper + BuilderWrapper, } from '@o3r/telemetry'; import { - sync + sync, } from 'globby'; import type { DesignTokenRendererOptions, DesignTokenVariableSet, DesignTokenVariableStructure, - TokenKeyRenderer + TokenKeyRenderer, } from '../../src/public_api'; import { parseDesignTokenFile, - renderDesignTokens + renderDesignTokens, } from '../../src/public_api'; import { - getMetadataRenderDesignTokenOptions + getMetadataRenderDesignTokenOptions, } from './helpers/metadata-renderer-options'; import { - getStyleRendererOptions + getStyleRendererOptions, } from './helpers/style-renderer-options'; import { - generateTemplate + generateTemplate, } from './helpers/token-template'; import type { - GenerateStyleSchematicsSchema + GenerateStyleSchematicsSchema, } from './schema'; const noop: BuilderWrapper = (fn) => fn; diff --git a/packages/@o3r/design/builders/generate-style/schema.ts b/packages/@o3r/design/builders/generate-style/schema.ts index cbb0243f1f..d43aac1958 100644 --- a/packages/@o3r/design/builders/generate-style/schema.ts +++ b/packages/@o3r/design/builders/generate-style/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; /** Available style languages */ diff --git a/packages/@o3r/design/cli/build-design-token.cli.cts b/packages/@o3r/design/cli/build-design-token.cli.cts index ef4e52eb39..bb3967cb70 100644 --- a/packages/@o3r/design/cli/build-design-token.cli.cts +++ b/packages/@o3r/design/cli/build-design-token.cli.cts @@ -2,25 +2,25 @@ import { existsSync, - promises as fs + promises as fs, } from 'node:fs'; import { isAbsolute, normalize, - resolve + resolve, } from 'node:path'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; import { getDesignTokenTokenDefinitionRenderer, parseDesignTokenFile, - renderDesignTokens + renderDesignTokens, } from '../src/public_api'; import type { DesignTokenRendererOptions, - DesignTokenVariableSet + DesignTokenVariableSet, } from '../src/public_api'; const args = minimist(process.argv.splice(2)); diff --git a/packages/@o3r/design/cli/generate-css-from-design-token.cli.cts b/packages/@o3r/design/cli/generate-css-from-design-token.cli.cts index 6da942975e..fa4fd8d041 100644 --- a/packages/@o3r/design/cli/generate-css-from-design-token.cli.cts +++ b/packages/@o3r/design/cli/generate-css-from-design-token.cli.cts @@ -1,24 +1,24 @@ #!/usr/bin/env node import { - existsSync + existsSync, } from 'node:fs'; import { isAbsolute, normalize, - resolve + resolve, } from 'node:path'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import * as minimist from 'minimist'; import { parseDesignTokenFile, - renderDesignTokens + renderDesignTokens, } from '../src/public_api'; import type { DesignTokenRendererOptions, - DesignTokenVariableSet + DesignTokenVariableSet, } from '../src/public_api'; const args = minimist(process.argv.splice(2)); diff --git a/packages/@o3r/design/eslint.local.config.mjs b/packages/@o3r/design/eslint.local.config.mjs index 9c89869b18..4dfbbb33cd 100644 --- a/packages/@o3r/design/eslint.local.config.mjs +++ b/packages/@o3r/design/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/design/schematics/design-token-to-component/index.spec.ts b/packages/@o3r/design/schematics/design-token-to-component/index.spec.ts index 8476fa5d4b..9f1f6e28ee 100644 --- a/packages/@o3r/design/schematics/design-token-to-component/index.spec.ts +++ b/packages/@o3r/design/schematics/design-token-to-component/index.spec.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/design/schematics/design-token-to-component/index.ts b/packages/@o3r/design/schematics/design-token-to-component/index.ts index 12342737d7..f18d671374 100644 --- a/packages/@o3r/design/schematics/design-token-to-component/index.ts +++ b/packages/@o3r/design/schematics/design-token-to-component/index.ts @@ -1,7 +1,7 @@ import { basename, dirname, - relative + relative, } from 'node:path'; import { apply, @@ -11,13 +11,13 @@ import { renameTemplateFiles, Rule, template, - url + url, } from '@angular-devkit/schematics'; import type { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import type { - NgAddDesignTokenSchematicsSchema + NgAddDesignTokenSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/design/schematics/design-token-to-component/schema.ts b/packages/@o3r/design/schematics/design-token-to-component/schema.ts index 525ad00165..852e764651 100644 --- a/packages/@o3r/design/schematics/design-token-to-component/schema.ts +++ b/packages/@o3r/design/schematics/design-token-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddDesignTokenSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/design/schematics/extract-token/index.spec.ts b/packages/@o3r/design/schematics/extract-token/index.spec.ts index 04402d3c7b..0e3f22d0c1 100644 --- a/packages/@o3r/design/schematics/extract-token/index.spec.ts +++ b/packages/@o3r/design/schematics/extract-token/index.spec.ts @@ -1,22 +1,22 @@ import * as fs from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import type { - CssVariable + CssVariable, } from '@o3r/styling'; import { - validate + validate, } from 'jsonschema'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - extractToken + extractToken, } from './index'; describe('Extract Token schematic', () => { diff --git a/packages/@o3r/design/schematics/extract-token/index.ts b/packages/@o3r/design/schematics/extract-token/index.ts index 231927612b..f22b56e3a5 100644 --- a/packages/@o3r/design/schematics/extract-token/index.ts +++ b/packages/@o3r/design/schematics/extract-token/index.ts @@ -1,22 +1,22 @@ import { posix, - resolve + resolve, } from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { AUTO_GENERATED_END, AUTO_GENERATED_START, DesignToken, DesignTokenGroup, - DesignTokenNode + DesignTokenNode, } from '../../src/public_api'; import type { - ExtractTokenSchematicsSchema + ExtractTokenSchematicsSchema, } from './schema'; const patternToDetect = 'o3r.var'; diff --git a/packages/@o3r/design/schematics/extract-token/schema.ts b/packages/@o3r/design/schematics/extract-token/schema.ts index 7cfd0dc245..29f6dde884 100644 --- a/packages/@o3r/design/schematics/extract-token/schema.ts +++ b/packages/@o3r/design/schematics/extract-token/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface ExtractTokenSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/design/schematics/generate-css/index.ts b/packages/@o3r/design/schematics/generate-css/index.ts index c4495887f9..4ecf5c96c1 100644 --- a/packages/@o3r/design/schematics/generate-css/index.ts +++ b/packages/@o3r/design/schematics/generate-css/index.ts @@ -1,20 +1,20 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { parseDesignTokenFile, - renderDesignTokens + renderDesignTokens, } from '@o3r/design'; import type { DesignTokenRendererOptions, DesignTokenVariableSet, - DesignTokenVariableStructure + DesignTokenVariableStructure, } from '@o3r/design'; import type { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import type { - GenerateCssSchematicsSchema + GenerateCssSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/design/schematics/generate-css/schema.ts b/packages/@o3r/design/schematics/generate-css/schema.ts index 2fac4f5659..4afe12903c 100644 --- a/packages/@o3r/design/schematics/generate-css/schema.ts +++ b/packages/@o3r/design/schematics/generate-css/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface GenerateCssSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/design/schematics/index.it.spec.ts b/packages/@o3r/design/schematics/index.it.spec.ts index f6b0b2102f..7237b2e7d0 100644 --- a/packages/@o3r/design/schematics/index.it.spec.ts +++ b/packages/@o3r/design/schematics/index.it.spec.ts @@ -11,7 +11,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('new otter application with Design', () => { diff --git a/packages/@o3r/design/schematics/ng-add/index.spec.ts b/packages/@o3r/design/schematics/ng-add/index.spec.ts index 42deb2cea4..1379e8c93c 100644 --- a/packages/@o3r/design/schematics/ng-add/index.spec.ts +++ b/packages/@o3r/design/schematics/ng-add/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/design/schematics/ng-add/index.ts b/packages/@o3r/design/schematics/ng-add/index.ts index 618973db9f..06aa7b1cd7 100644 --- a/packages/@o3r/design/schematics/ng-add/index.ts +++ b/packages/@o3r/design/schematics/ng-add/index.ts @@ -2,16 +2,16 @@ import * as path from 'node:path'; import { chain, noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { - extractToken + extractToken, } from '../extract-token'; import { - registerGenerateCssBuilder + registerGenerateCssBuilder, } from './register-generate-css'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/design/schematics/ng-add/register-generate-css/register-task.ts b/packages/@o3r/design/schematics/ng-add/register-generate-css/register-task.ts index efdccdd3d1..981e1f4030 100644 --- a/packages/@o3r/design/schematics/ng-add/register-generate-css/register-task.ts +++ b/packages/@o3r/design/schematics/ng-add/register-generate-css/register-task.ts @@ -1,5 +1,5 @@ import { - posix + posix, } from 'node:path'; import { apply, @@ -10,10 +10,10 @@ import { renameTemplateFiles, type Rule, template, - url + url, } from '@angular-devkit/schematics'; import type { - GenerateStyleSchematicsSchema + GenerateStyleSchematicsSchema, } from '../../../builders/generate-style/schema'; /** diff --git a/packages/@o3r/design/schematics/ng-add/schema.ts b/packages/@o3r/design/schematics/ng-add/schema.ts index 3d29fc3546..b1e92bb899 100644 --- a/packages/@o3r/design/schematics/ng-add/schema.ts +++ b/packages/@o3r/design/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/design/schematics/ng-update/index.ts b/packages/@o3r/design/schematics/ng-update/index.ts index 911880005d..0c101875b0 100644 --- a/packages/@o3r/design/schematics/ng-update/index.ts +++ b/packages/@o3r/design/schematics/ng-update/index.ts @@ -2,13 +2,13 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { - migrateBuilderToGenerateStyle + migrateBuilderToGenerateStyle, } from './v11.3/builder-migration'; /** diff --git a/packages/@o3r/design/schematics/ng-update/v11.3/builder-migration.ts b/packages/@o3r/design/schematics/ng-update/v11.3/builder-migration.ts index dc2ede601c..3bf47f8aa2 100644 --- a/packages/@o3r/design/schematics/ng-update/v11.3/builder-migration.ts +++ b/packages/@o3r/design/schematics/ng-update/v11.3/builder-migration.ts @@ -1,8 +1,8 @@ import { - basename + basename, } from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; const getNodeBuilder = (obj: any, refs: any[] = []): any[] => { diff --git a/packages/@o3r/design/src/core/design-token/design-token-specification.interface.ts b/packages/@o3r/design/src/core/design-token/design-token-specification.interface.ts index 838f98eac4..334875e2bd 100644 --- a/packages/@o3r/design/src/core/design-token/design-token-specification.interface.ts +++ b/packages/@o3r/design/src/core/design-token/design-token-specification.interface.ts @@ -1,5 +1,5 @@ import type { - ItemIdentifier + ItemIdentifier, } from '@o3r/core'; /** Metadata information added in the design token extension for Metadata extraction */ diff --git a/packages/@o3r/design/src/core/design-token/design-token.spec.ts b/packages/@o3r/design/src/core/design-token/design-token.spec.ts index c4ac1cab8b..59e7b33e6a 100644 --- a/packages/@o3r/design/src/core/design-token/design-token.spec.ts +++ b/packages/@o3r/design/src/core/design-token/design-token.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import { - validate + validate, } from 'jsonschema'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from './design-token-specification.interface'; import { parseDesignToken, - TokenKeyRenderer + TokenKeyRenderer, } from './parsers/index'; import { computeFileToUpdatePath, @@ -22,7 +22,7 @@ import { getMetadataStyleContentUpdater, getMetadataTokenDefinitionRenderer, getSassTokenDefinitionRenderer, - renderDesignTokens + renderDesignTokens, } from './renderers/index'; describe('Design Token generator', () => { diff --git a/packages/@o3r/design/src/core/design-token/parsers/design-token-parser.interface.ts b/packages/@o3r/design/src/core/design-token/parsers/design-token-parser.interface.ts index 4b6cb049a0..1899c1ac7a 100644 --- a/packages/@o3r/design/src/core/design-token/parsers/design-token-parser.interface.ts +++ b/packages/@o3r/design/src/core/design-token/parsers/design-token-parser.interface.ts @@ -3,7 +3,7 @@ import type { DesignTokenContext, DesignTokenExtensions, DesignTokenGroup, - DesignTokenGroupExtensions + DesignTokenGroupExtensions, } from '../design-token-specification.interface'; /** Reference to a parent node */ diff --git a/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helper.spec.ts b/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helper.spec.ts index 54d18bd476..5289021764 100644 --- a/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helper.spec.ts +++ b/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helper.spec.ts @@ -1,8 +1,8 @@ import type { - DesignTokenGroupTemplate + DesignTokenGroupTemplate, } from '../..'; import { - mergeDesignTokenTemplates + mergeDesignTokenTemplates, } from './design-token-template.helpers'; describe('mergeDesignTokenTemplates function', () => { diff --git a/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helpers.ts b/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helpers.ts index 4eb62a37bc..c8aab29714 100644 --- a/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helpers.ts +++ b/packages/@o3r/design/src/core/design-token/parsers/design-token-template.helpers.ts @@ -1,6 +1,6 @@ import type { DesignTokenGroupExtensions, - DesignTokenGroupTemplate + DesignTokenGroupTemplate, } from '../design-token-specification.interface'; /** diff --git a/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.spec.ts b/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.spec.ts index 8fa4169648..dfe40b7f92 100644 --- a/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.spec.ts +++ b/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.spec.ts @@ -1,12 +1,12 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { DesignTokenGroupTemplate, - DesignTokenSpecification + DesignTokenSpecification, } from '../design-token-specification.interface'; import * as parser from './design-token.parser'; diff --git a/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.ts b/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.ts index ff2652e6aa..640a45cc78 100644 --- a/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.ts +++ b/packages/@o3r/design/src/core/design-token/parsers/design-token.parser.ts @@ -1,5 +1,5 @@ import { - dirname + dirname, } from 'node:path'; import type { DesignToken, @@ -10,19 +10,19 @@ import type { DesignTokenGroupTemplate, DesignTokenMetadata, DesignTokenNode, - DesignTokenSpecification + DesignTokenSpecification, } from '../design-token-specification.interface'; import { DesignTokenTypeStrokeStyleValue, isDesignToken, isDesignTokenGroup, - isTokenTypeStrokeStyleValueComplex + isTokenTypeStrokeStyleValueComplex, } from '../design-token-specification.interface'; import type { DesignTokenVariableSet, DesignTokenVariableStructure, NodeReference, - ParentReference + ParentReference, } from './design-token-parser.interface'; /** Separator in Token key parts */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.spec.ts index 759ccd119b..d831de25fc 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getCssTokenDefinitionRenderer + getCssTokenDefinitionRenderer, } from './design-token-definition.renderers'; describe('getMetadataTokenDefinitionRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.ts index 7071bfd615..7220bd8bde 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-definition.renderers.ts @@ -1,19 +1,19 @@ import type { - Logger + Logger, } from '@o3r/core'; import type { DesignTokenVariableStructure, TokenKeyRenderer, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; import { - isO3rPrivateVariable + isO3rPrivateVariable, } from '../design-token.renderer.helpers'; import { - TokenDefinitionRenderer + TokenDefinitionRenderer, } from '../design-token.renderer.interface'; import { - getCssTokenValueRenderer + getCssTokenValueRenderer, } from './design-token-value.renderers'; /** Options for {@link CssTokenDefinitionRendererOptions} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.spec.ts index 3a8c46b2b2..621a780444 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.spec.ts @@ -1,5 +1,5 @@ import { - getCssStyleContentUpdater + getCssStyleContentUpdater, } from './design-token-updater.renderers'; describe('getCssStyleContentUpdater', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.ts index 125e3ead06..89ebef1aa0 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-updater.renderers.ts @@ -1,5 +1,5 @@ import type { - DesignContentFileUpdater + DesignContentFileUpdater, } from '../design-token.renderer.interface'; const SANITIZE_TAG_INPUTS_REGEXP = /[$()*+.?[\\\]^{|}]/g; diff --git a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.spec.ts index 94b1934e76..70e9d4fa3d 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getCssTokenValueRenderer + getCssTokenValueRenderer, } from './design-token-value.renderers'; describe('getCssTokenValueRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.ts index a0d4e74a85..bfdca85362 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/css/design-token-value.renderers.ts @@ -1,15 +1,15 @@ import type { - Logger + Logger, } from '@o3r/core'; import type { DesignTokenVariableStructure, TokenKeyRenderer, TokenReferenceRenderer, TokenValueRenderer, - UnregisteredTokenReferenceRenderer + UnregisteredTokenReferenceRenderer, } from '../../parsers/design-token-parser.interface'; import { - isO3rPrivateVariable + isO3rPrivateVariable, } from '../design-token.renderer.helpers'; /** Options for {@link getCssTokenValueRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.spec.ts index 3b408635ce..f8bc29ade0 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.spec.ts @@ -1,15 +1,15 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { DesignTokenGroup, - DesignTokenSpecification + DesignTokenSpecification, } from '../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../parsers'; import * as parser from '../parsers/design-token.parser'; import { @@ -18,7 +18,7 @@ import { getTokenSorterByName, getTokenSorterByRef, getTokenSorterFromRegExpList, - renderDesignTokens + renderDesignTokens, } from './design-token-style.renderer'; const rootPath = resolve('/'); @@ -264,19 +264,19 @@ describe('Design Token Renderer', () => { designTokensToSort = parser.parseDesignToken({ document: { 'to-sort': { 'var-100': { - '$value': '{example.var1}' + $value: '{example.var1}' }, 'var-1': { - '$value': '{example.var1}' + $value: '{example.var1}' }, 'var-10': { - '$value': '{example.var1}' + $value: '{example.var1}' }, 'var-5': { - '$value': '{example.var1}' + $value: '{example.var1}' }, 'first-var': { - '$value': '{example.var1}' + $value: '{example.var1}' } } } as DesignTokenGroup }); diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.ts index c883cbaadc..eeb63e9723 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token-style.renderer.ts @@ -1,25 +1,25 @@ import type { - promises as fs + promises as fs, } from 'node:fs'; import type { - Logger + Logger, } from '@o3r/core'; import { - TOKEN_KEY_SEPARATOR + TOKEN_KEY_SEPARATOR, } from '../parsers'; import type { DesignTokenVariableSet, - DesignTokenVariableStructure + DesignTokenVariableStructure, } from '../parsers/design-token-parser.interface'; import { - getCssTokenDefinitionRenderer + getCssTokenDefinitionRenderer, } from './css/design-token-definition.renderers'; import { - getCssStyleContentUpdater + getCssStyleContentUpdater, } from './css/design-token-updater.renderers'; import type { DesignTokenListTransform, - DesignTokenRendererOptions + DesignTokenRendererOptions, } from './design-token.renderer.interface'; /** diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.spec.ts index 9186a539a0..41c56291da 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../parsers'; import * as parser from '../parsers/design-token.parser'; import { - isO3rPrivateVariable + isO3rPrivateVariable, } from './design-token.renderer.helpers'; describe('isO3rPrivateVariable', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.ts index 81d6cd6643..54117441ba 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.helpers.ts @@ -1,5 +1,5 @@ import type { - DesignTokenVariableStructure + DesignTokenVariableStructure, } from '../parsers'; /** diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.interface.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.interface.ts index 15fd7e692c..096c80749a 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.interface.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token.renderer.interface.ts @@ -1,10 +1,10 @@ import type { - Logger + Logger, } from '@o3r/core'; import type { DesignTokenVariableSet, DesignTokenVariableStructure, - TokenKeyRenderer + TokenKeyRenderer, } from '../parsers'; /** diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.spec.ts index 11533a97b8..95277cd8ae 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getDesignTokenTokenDefinitionRenderer + getDesignTokenTokenDefinitionRenderer, } from './design-token-definition.renderers'; describe('getDesignTokenTokenDefinitionRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.ts index dbd0e453f6..ed69782410 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-definition.renderers.ts @@ -1,12 +1,12 @@ import type { DesignTokenVariableStructure, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; import type { - TokenDefinitionRenderer + TokenDefinitionRenderer, } from '../design-token.renderer.interface'; import { - getDesignTokenTokenValueRenderer + getDesignTokenTokenValueRenderer, } from './design-token-value.renderers'; /** Options for {@link getDesignTokenTokenDefinitionRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.spec.ts index 931cfc34a0..c059758b77 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getDesignTokenStyleContentUpdater + getDesignTokenStyleContentUpdater, } from './design-token-updater.renderers'; describe('getDesignTokenStyleContentUpdater', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.ts index d5a345895a..9251107c67 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-updater.renderers.ts @@ -1,5 +1,5 @@ import type { - DesignContentFileUpdater + DesignContentFileUpdater, } from '../design-token.renderer.interface'; /** Options for {@link getDesignTokenStyleContentUpdater} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.spec.ts index 0122f392ca..c73fe457b7 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getDesignTokenTokenValueRenderer + getDesignTokenTokenValueRenderer, } from './design-token-value.renderers'; describe('getDesignTokenTokenValueRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.ts index df49da7252..e314fced2a 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/design-token/design-token-value.renderers.ts @@ -1,9 +1,9 @@ import type { - DesignToken + DesignToken, } from '../../design-token-specification.interface'; import type { DesignTokenVariableStructure, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; /** Options for {@link getDesignTokenTokenValueRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.spec.ts index 6bc19db11d..0e06755b6d 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getJsonSchemaTokenDefinitionRenderer + getJsonSchemaTokenDefinitionRenderer, } from './design-token-definition.renderers'; describe('getMetadataTokenDefinitionRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.ts index bd62f7cf49..bd033d62d4 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-definition.renderers.ts @@ -1,12 +1,12 @@ import type { DesignTokenVariableStructure, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; import type { - TokenDefinitionRenderer + TokenDefinitionRenderer, } from '../design-token.renderer.interface'; import { - getJsonSchemaTokenValueRenderer + getJsonSchemaTokenValueRenderer, } from './design-token-value.renderers'; /** Options for {@link getJsonSchemaTokenDefinitionRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.spec.ts index bd572696af..0669dd17a0 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getJsonSchemaStyleContentUpdater + getJsonSchemaStyleContentUpdater, } from './design-token-updater.renderers'; describe('getJsonSchemaStyleContentUpdater', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.ts index 781fdccff2..13571ff298 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-updater.renderers.ts @@ -1,5 +1,5 @@ import type { - DesignContentFileUpdater + DesignContentFileUpdater, } from '../design-token.renderer.interface'; /** Options for {@link getJsonSchemaStyleContentUpdater} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.spec.ts index 46ac29bed2..ba352a6584 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getJsonSchemaTokenValueRenderer + getJsonSchemaTokenValueRenderer, } from './design-token-value.renderers'; describe('getJsonSchemaTokenValueRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.ts index cccb98dec6..c8d4b7cecf 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/json-schema/design-token-value.renderers.ts @@ -1,6 +1,6 @@ import type { DesignTokenVariableStructure, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; /** Options for {@link getJsonSchemaTokenValueRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.spec.ts index b7fa5561a2..41cab36a9a 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getMetadataTokenDefinitionRenderer + getMetadataTokenDefinitionRenderer, } from './design-token-definition.renderers'; describe('getMetadataTokenDefinitionRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.ts index d3faf5d46c..7d465dd5fa 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-definition.renderers.ts @@ -1,19 +1,19 @@ import type { - CssVariable + CssVariable, } from '@o3r/styling'; import type { DesignTokenVariableStructure, TokenKeyRenderer, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; import { - isO3rPrivateVariable + isO3rPrivateVariable, } from '../design-token.renderer.helpers'; import type { - TokenDefinitionRenderer + TokenDefinitionRenderer, } from '../design-token.renderer.interface'; import { - getMetadataTokenValueRenderer + getMetadataTokenValueRenderer, } from './design-token-value.renderers'; /** Options for {@link getMetadataTokenDefinitionRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.spec.ts index 7a37e1f973..be15c78ce9 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getMetadataStyleContentUpdater + getMetadataStyleContentUpdater, } from './design-token-updater.renderers'; describe('getMetadataStyleContentUpdater', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.ts index 5b16fd3d0f..77239b0955 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-updater.renderers.ts @@ -1,5 +1,5 @@ import type { - DesignContentFileUpdater + DesignContentFileUpdater, } from '../design-token.renderer.interface'; /** diff --git a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.spec.ts index 8f9a267c45..a2112c5776 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getMetadataTokenValueRenderer + getMetadataTokenValueRenderer, } from './design-token-value.renderers'; describe('getMetadataTokenValueRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.ts index 26ba5bbbbe..73c80f4564 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/metadata/design-token-value.renderers.ts @@ -1,16 +1,16 @@ import type { - CssVariable + CssVariable, } from '@o3r/styling'; import type { DesignTokenVariableStructure, TokenKeyRenderer, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; import { - getCssTokenValueRenderer + getCssTokenValueRenderer, } from '../css'; import { - isO3rPrivateVariable + isO3rPrivateVariable, } from '../design-token.renderer.helpers'; /** Options for {@link getMetadataTokenValueRenderer} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.spec.ts index 17b1658040..a3e3e30cf9 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.spec.ts @@ -1,20 +1,20 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { DesignTokenVariableSet, - TokenKeyRenderer + TokenKeyRenderer, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { getSassTokenDefinitionRenderer, - tokenVariableNameSassRenderer + tokenVariableNameSassRenderer, } from './design-token-definition.renderers'; describe('getSassTokenDefinitionRenderer', () => { @@ -52,7 +52,6 @@ describe('getSassTokenDefinitionRenderer', () => { }); test('should prefix private variable', () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- linked to this test only const tokenVariableNameRenderer: TokenKeyRenderer = (v) => '_' + tokenVariableNameSassRenderer(v); const options = { tokenVariableNameRenderer }; diff --git a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.ts index a8c7d1f6de..e0347a5d66 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-definition.renderers.ts @@ -1,19 +1,19 @@ import type { - Logger + Logger, } from '@o3r/core'; import type { DesignTokenVariableStructure, TokenKeyRenderer, - TokenValueRenderer + TokenValueRenderer, } from '../../parsers/design-token-parser.interface'; import { - isO3rPrivateVariable + isO3rPrivateVariable, } from '../design-token.renderer.helpers'; import type { - TokenDefinitionRenderer + TokenDefinitionRenderer, } from '../design-token.renderer.interface'; import { - getSassTokenValueRenderer + getSassTokenValueRenderer, } from './design-token-value.renderers'; export interface SassTokenDefinitionRendererOptions { diff --git a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-updater.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-updater.renderers.ts index c80fe096c2..14300f39ab 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-updater.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-updater.renderers.ts @@ -1,9 +1,9 @@ import { type CssStyleContentUpdaterOptions, - getCssStyleContentUpdater + getCssStyleContentUpdater, } from '../css'; import type { - DesignContentFileUpdater + DesignContentFileUpdater, } from '../design-token.renderer.interface'; /** Options for {@link getSassStyleContentUpdater} */ diff --git a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.spec.ts b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.spec.ts index 3d1f6e5ab2..bde233a55c 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.spec.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.spec.ts @@ -1,18 +1,18 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import type { - DesignTokenSpecification + DesignTokenSpecification, } from '../../design-token-specification.interface'; import type { - DesignTokenVariableSet + DesignTokenVariableSet, } from '../../parsers'; import * as parser from '../../parsers/design-token.parser'; import { - getSassTokenValueRenderer + getSassTokenValueRenderer, } from './design-token-value.renderers'; describe('getSassTokenValueRenderer', () => { diff --git a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.ts b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.ts index 113fe23db0..43c49a52d7 100644 --- a/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.ts +++ b/packages/@o3r/design/src/core/design-token/renderers/sass/design-token-value.renderers.ts @@ -1,12 +1,12 @@ import type { - Logger + Logger, } from '@o3r/core'; import type { DesignTokenVariableStructure, TokenKeyRenderer, TokenReferenceRenderer, TokenValueRenderer, - UnregisteredTokenReferenceRenderer + UnregisteredTokenReferenceRenderer, } from '../../parsers/design-token-parser.interface'; /** Options for {@link getSassTokenValueRenderer} */ diff --git a/packages/@o3r/dev-tools/eslint.local.config.mjs b/packages/@o3r/dev-tools/eslint.local.config.mjs index 39cc0743d5..04c6078f04 100644 --- a/packages/@o3r/dev-tools/eslint.local.config.mjs +++ b/packages/@o3r/dev-tools/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/dev-tools/schematics/ng-add/index.ts b/packages/@o3r/dev-tools/schematics/ng-add/index.ts index 774b370aa8..830678f8e2 100644 --- a/packages/@o3r/dev-tools/schematics/ng-add/index.ts +++ b/packages/@o3r/dev-tools/schematics/ng-add/index.ts @@ -1,7 +1,7 @@ import type { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/dev-tools/schematics/ng-update/index.ts b/packages/@o3r/dev-tools/schematics/ng-update/index.ts index add6eeb357..160464fe8b 100644 --- a/packages/@o3r/dev-tools/schematics/ng-update/index.ts +++ b/packages/@o3r/dev-tools/schematics/ng-update/index.ts @@ -1,7 +1,7 @@ import type { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/dev-tools/src/cli/aql-artifact-cleaner.ts b/packages/@o3r/dev-tools/src/cli/aql-artifact-cleaner.ts index c25a1d903e..9a3fab8abb 100644 --- a/packages/@o3r/dev-tools/src/cli/aql-artifact-cleaner.ts +++ b/packages/@o3r/dev-tools/src/cli/aql-artifact-cleaner.ts @@ -1,11 +1,11 @@ #!/usr/bin/env node import { - program + program, } from 'commander'; import { Headers, - Options + Options, } from 'request'; import * as request from 'request-promise-native'; import * as winston from 'winston'; diff --git a/packages/@o3r/dev-tools/src/cli/artifact-cleaner.ts b/packages/@o3r/dev-tools/src/cli/artifact-cleaner.ts index 97549aaf47..33338fa58f 100644 --- a/packages/@o3r/dev-tools/src/cli/artifact-cleaner.ts +++ b/packages/@o3r/dev-tools/src/cli/artifact-cleaner.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node import { - spawnSync + spawnSync, } from 'node:child_process'; // eslint-disable-next-line no-console -- keep to warn of package deprecation diff --git a/packages/@o3r/dev-tools/src/cli/artifact-retriever.ts b/packages/@o3r/dev-tools/src/cli/artifact-retriever.ts index fde3a1ae32..de0e4b6465 100644 --- a/packages/@o3r/dev-tools/src/cli/artifact-retriever.ts +++ b/packages/@o3r/dev-tools/src/cli/artifact-retriever.ts @@ -4,17 +4,17 @@ import * as http from 'node:http'; import * as https from 'node:https'; import * as path from 'node:path'; import { - program + program, } from 'commander'; import * as fse from 'fs-extra'; import { CookieJar, - Headers + Headers, } from 'request'; import * as request from 'request-promise-native'; import * as winston from 'winston'; import { - GavcResponse + GavcResponse, } from '../helpers/gavc-response'; const SUPPORTED_REPOSITORY_MANAGERS = ['JFrog', 'Azure Artifacts']; diff --git a/packages/@o3r/dev-tools/src/cli/checks/in-source-dep-check.ts b/packages/@o3r/dev-tools/src/cli/checks/in-source-dep-check.ts index 67c944677a..ade0230ffd 100644 --- a/packages/@o3r/dev-tools/src/cli/checks/in-source-dep-check.ts +++ b/packages/@o3r/dev-tools/src/cli/checks/in-source-dep-check.ts @@ -1,22 +1,22 @@ #!/usr/bin/env node import { - readFileSync + readFileSync, } from 'node:fs'; import { dirname, join, - resolve + resolve, } from 'node:path'; // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- _builtinLibs is not part of repl types (due to the fact it is flagged to internal usage purpose) // @ts-ignore // eslint-disable-next-line import-newlines/enforce -- needed to have the `@ts-ignore` working import { _builtinLibs as nodeWellKnownModules } from 'node:repl'; import { - bold + bold, } from 'chalk'; import { - program + program, } from 'commander'; import * as glob from 'globby'; import * as winston from 'winston'; diff --git a/packages/@o3r/dev-tools/src/cli/comment-pr.ts b/packages/@o3r/dev-tools/src/cli/comment-pr.ts index faf4160233..d565ed6e6b 100644 --- a/packages/@o3r/dev-tools/src/cli/comment-pr.ts +++ b/packages/@o3r/dev-tools/src/cli/comment-pr.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node import { - spawnSync + spawnSync, } from 'node:child_process'; // eslint-disable-next-line no-console -- keep to warn of package deprecation diff --git a/packages/@o3r/dev-tools/src/cli/generate-package-exports.ts b/packages/@o3r/dev-tools/src/cli/generate-package-exports.ts index 4923a89028..b747681b43 100644 --- a/packages/@o3r/dev-tools/src/cli/generate-package-exports.ts +++ b/packages/@o3r/dev-tools/src/cli/generate-package-exports.ts @@ -3,15 +3,15 @@ import { existsSync, promises as fs, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - program + program, } from 'commander'; import * as globby from 'globby'; import type { - PackageJson + PackageJson, } from 'type-fest'; import * as winston from 'winston'; diff --git a/packages/@o3r/dev-tools/src/cli/git-release-management.ts b/packages/@o3r/dev-tools/src/cli/git-release-management.ts index c8c3f5a7ff..73677f046c 100644 --- a/packages/@o3r/dev-tools/src/cli/git-release-management.ts +++ b/packages/@o3r/dev-tools/src/cli/git-release-management.ts @@ -1,10 +1,10 @@ #!/usr/bin/env node import { - program + program, } from 'commander'; import { parse, - SemVer + SemVer, } from 'semver'; import * as winston from 'winston'; import { @@ -17,7 +17,7 @@ import { createReleaseBranch, deleteCrtRcBranch, deleteCurrentAlphaOrNextBranch, - deletePreviousReleaseBranch + deletePreviousReleaseBranch, } from '../helpers'; program diff --git a/packages/@o3r/dev-tools/src/cli/package-export.ts b/packages/@o3r/dev-tools/src/cli/package-export.ts index fe22a0e953..7aaa648562 100644 --- a/packages/@o3r/dev-tools/src/cli/package-export.ts +++ b/packages/@o3r/dev-tools/src/cli/package-export.ts @@ -3,10 +3,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - program + program, } from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import * as winston from 'winston'; diff --git a/packages/@o3r/dev-tools/src/cli/peer-dependencies-updater.ts b/packages/@o3r/dev-tools/src/cli/peer-dependencies-updater.ts index 23c7853a04..525dfccf97 100644 --- a/packages/@o3r/dev-tools/src/cli/peer-dependencies-updater.ts +++ b/packages/@o3r/dev-tools/src/cli/peer-dependencies-updater.ts @@ -2,11 +2,11 @@ import * as path from 'node:path'; import { - program + program, } from 'commander'; import * as winston from 'winston'; import { - updatePeerDependencies + updatePeerDependencies, } from '../utils/update-peer-dependencies'; const pathingCalculation = (value: string) => path.resolve(process.cwd(), value); diff --git a/packages/@o3r/dev-tools/src/cli/pr-artifact-cleaner.ts b/packages/@o3r/dev-tools/src/cli/pr-artifact-cleaner.ts index fed507fad9..94975e5d44 100644 --- a/packages/@o3r/dev-tools/src/cli/pr-artifact-cleaner.ts +++ b/packages/@o3r/dev-tools/src/cli/pr-artifact-cleaner.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node import { - spawnSync + spawnSync, } from 'node:child_process'; // eslint-disable-next-line no-console -- keep to warn of package deprecation diff --git a/packages/@o3r/dev-tools/src/cli/set-version.ts b/packages/@o3r/dev-tools/src/cli/set-version.ts index 05bb951d6e..61f07a6cb8 100644 --- a/packages/@o3r/dev-tools/src/cli/set-version.ts +++ b/packages/@o3r/dev-tools/src/cli/set-version.ts @@ -3,16 +3,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - bold + bold, } from 'chalk'; import { - program + program, } from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { - clean + clean, } from 'semver'; import * as winston from 'winston'; diff --git a/packages/@o3r/dev-tools/src/cli/version-harmonize.ts b/packages/@o3r/dev-tools/src/cli/version-harmonize.ts index 1cf178365b..083765a724 100644 --- a/packages/@o3r/dev-tools/src/cli/version-harmonize.ts +++ b/packages/@o3r/dev-tools/src/cli/version-harmonize.ts @@ -2,29 +2,29 @@ import { promises as fs, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { blue, bold, green, - grey + grey, } from 'chalk'; import { - program + program, } from 'commander'; import * as globby from 'globby'; import * as semver from 'semver'; import type { - PackageJson + PackageJson, } from 'type-fest'; import * as winston from 'winston'; import { DependencyInfo, DependencyToUpdate, Options, - PackageJsonWithOtterConfiguration + PackageJsonWithOtterConfiguration, } from '../helpers/version-harmonize/interfaces'; /** Console logger */ diff --git a/packages/@o3r/dev-tools/src/helpers/azure/pull-requests.service.ts b/packages/@o3r/dev-tools/src/helpers/azure/pull-requests.service.ts index 194da3236d..32eeeb15b1 100644 --- a/packages/@o3r/dev-tools/src/helpers/azure/pull-requests.service.ts +++ b/packages/@o3r/dev-tools/src/helpers/azure/pull-requests.service.ts @@ -1,5 +1,5 @@ import { - PullRequestService as PrService + PullRequestService as PrService, } from '@o3r/azure-tools'; /** diff --git a/packages/@o3r/dev-tools/src/helpers/git-release-management/git-release-management.ts b/packages/@o3r/dev-tools/src/helpers/git-release-management/git-release-management.ts index d7a7432d92..433f66da4e 100644 --- a/packages/@o3r/dev-tools/src/helpers/git-release-management/git-release-management.ts +++ b/packages/@o3r/dev-tools/src/helpers/git-release-management/git-release-management.ts @@ -1,13 +1,13 @@ #!/usr/bin/env node import { - exec as cpExec + exec as cpExec, } from 'node:child_process'; import * as fs from 'node:fs'; import * as fsPromises from 'node:fs/promises'; import * as path from 'node:path'; import * as util from 'node:util'; import { - SemVer + SemVer, } from 'semver'; import * as winston from 'winston'; diff --git a/packages/@o3r/dev-tools/src/helpers/version-harmonize/interfaces.ts b/packages/@o3r/dev-tools/src/helpers/version-harmonize/interfaces.ts index 6ce8c788a3..263d414926 100644 --- a/packages/@o3r/dev-tools/src/helpers/version-harmonize/interfaces.ts +++ b/packages/@o3r/dev-tools/src/helpers/version-harmonize/interfaces.ts @@ -1,5 +1,5 @@ import type { - PackageJson + PackageJson, } from 'type-fest'; /** Configuration in a package.json to indication specification to this package */ diff --git a/packages/@o3r/dev-tools/src/utils/check-peer-deps.ts b/packages/@o3r/dev-tools/src/utils/check-peer-deps.ts index 0688f5566b..fd426b708b 100644 --- a/packages/@o3r/dev-tools/src/utils/check-peer-deps.ts +++ b/packages/@o3r/dev-tools/src/utils/check-peer-deps.ts @@ -1,12 +1,12 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - satisfies + satisfies, } from 'semver'; import { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/dev-tools/src/utils/is-package-installed.ts b/packages/@o3r/dev-tools/src/utils/is-package-installed.ts index 8b17582125..01f0b30057 100644 --- a/packages/@o3r/dev-tools/src/utils/is-package-installed.ts +++ b/packages/@o3r/dev-tools/src/utils/is-package-installed.ts @@ -1,5 +1,5 @@ import { - posix + posix, } from 'node:path'; /** diff --git a/packages/@o3r/dev-tools/src/utils/jest.helpers.ts b/packages/@o3r/dev-tools/src/utils/jest.helpers.ts index 1858d6bdc8..4dadbaad3b 100644 --- a/packages/@o3r/dev-tools/src/utils/jest.helpers.ts +++ b/packages/@o3r/dev-tools/src/utils/jest.helpers.ts @@ -1,18 +1,18 @@ import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import { dirname, normalize, relative, - resolve + resolve, } from 'node:path'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import type { - TsConfigJson + TsConfigJson, } from 'type-fest'; /** diff --git a/packages/@o3r/dev-tools/src/utils/string.spec.ts b/packages/@o3r/dev-tools/src/utils/string.spec.ts index ecb2718f36..f9d6c89adc 100644 --- a/packages/@o3r/dev-tools/src/utils/string.spec.ts +++ b/packages/@o3r/dev-tools/src/utils/string.spec.ts @@ -1,5 +1,5 @@ import { - pad + pad, } from './string'; describe('String utils', () => { diff --git a/packages/@o3r/dev-tools/src/utils/update-peer-dependencies.ts b/packages/@o3r/dev-tools/src/utils/update-peer-dependencies.ts index 38d6f40133..c3c2852624 100644 --- a/packages/@o3r/dev-tools/src/utils/update-peer-dependencies.ts +++ b/packages/@o3r/dev-tools/src/utils/update-peer-dependencies.ts @@ -1,12 +1,12 @@ import { - exec + exec, } from 'node:child_process'; import * as fs from 'node:fs'; import { - promisify + promisify, } from 'node:util'; import { - readJsonSync + readJsonSync, } from 'fs-extra'; import * as semver from 'semver'; import * as winston from 'winston'; diff --git a/packages/@o3r/dynamic-content/eslint.local.config.mjs b/packages/@o3r/dynamic-content/eslint.local.config.mjs index c549aeef1c..46e0816a0d 100644 --- a/packages/@o3r/dynamic-content/eslint.local.config.mjs +++ b/packages/@o3r/dynamic-content/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/dynamic-content/schematics/ng-add/index.ts b/packages/@o3r/dynamic-content/schematics/ng-add/index.ts index 996d295620..4d069a5fcf 100644 --- a/packages/@o3r/dynamic-content/schematics/ng-add/index.ts +++ b/packages/@o3r/dynamic-content/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/dynamic-content/schematics/ng-add/schema.ts b/packages/@o3r/dynamic-content/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/dynamic-content/schematics/ng-add/schema.ts +++ b/packages/@o3r/dynamic-content/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.spec.ts b/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.spec.ts index d11841bfcd..396bf1ced3 100644 --- a/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.spec.ts +++ b/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const migrationPath = path.join(__dirname, '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.ts b/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.ts index 4ddb6ed8ff..109f44eaac 100644 --- a/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.ts +++ b/packages/@o3r/dynamic-content/schematics/ng-update/v10-0/index.ts @@ -2,12 +2,12 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, PipeReplacementInfo, - updatePipes + updatePipes, } from '@o3r/schematics'; const pipeReplacementInfo: PipeReplacementInfo = { diff --git a/packages/@o3r/dynamic-content/src/fixtures/jasmine/request-parameters.fixture.jasmine.ts b/packages/@o3r/dynamic-content/src/fixtures/jasmine/request-parameters.fixture.jasmine.ts index 3d24a503f4..ad1d26d59a 100644 --- a/packages/@o3r/dynamic-content/src/fixtures/jasmine/request-parameters.fixture.jasmine.ts +++ b/packages/@o3r/dynamic-content/src/fixtures/jasmine/request-parameters.fixture.jasmine.ts @@ -1,12 +1,12 @@ import type { - InterfaceOf + InterfaceOf, } from '@o3r/core'; import type { RequestParametersConfig, - RequestParametersService + RequestParametersService, } from '@o3r/dynamic-content'; import { - StorageStrategy + StorageStrategy, } from '@o3r/dynamic-content'; /** diff --git a/packages/@o3r/dynamic-content/src/fixtures/jest/request-parameters.fixture.jest.ts b/packages/@o3r/dynamic-content/src/fixtures/jest/request-parameters.fixture.jest.ts index aa2b21ed24..272b9b9c38 100644 --- a/packages/@o3r/dynamic-content/src/fixtures/jest/request-parameters.fixture.jest.ts +++ b/packages/@o3r/dynamic-content/src/fixtures/jest/request-parameters.fixture.jest.ts @@ -1,12 +1,12 @@ import type { - InterfaceOf + InterfaceOf, } from '@o3r/core'; import type { RequestParametersConfig, - RequestParametersService + RequestParametersService, } from '@o3r/dynamic-content'; import { - StorageStrategy + StorageStrategy, } from '@o3r/dynamic-content'; /** diff --git a/packages/@o3r/dynamic-content/src/rules-engine/asset.handler-action.ts b/packages/@o3r/dynamic-content/src/rules-engine/asset.handler-action.ts index e53a9797e8..20c1e8d007 100644 --- a/packages/@o3r/dynamic-content/src/rules-engine/asset.handler-action.ts +++ b/packages/@o3r/dynamic-content/src/rules-engine/asset.handler-action.ts @@ -1,19 +1,19 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import type { - RulesEngineActionHandler + RulesEngineActionHandler, } from '@o3r/core'; import { AssetPathOverrideStore, - setAssetPathOverride + setAssetPathOverride, } from '@o3r/dynamic-content'; import { ActionUpdateAssetBlock, - RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE + RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE, } from './asset.interfaces'; /** diff --git a/packages/@o3r/dynamic-content/src/rules-engine/asset.interfaces.ts b/packages/@o3r/dynamic-content/src/rules-engine/asset.interfaces.ts index 8260ee2a00..d0409ea57b 100644 --- a/packages/@o3r/dynamic-content/src/rules-engine/asset.interfaces.ts +++ b/packages/@o3r/dynamic-content/src/rules-engine/asset.interfaces.ts @@ -1,5 +1,5 @@ import type { - RulesEngineAction + RulesEngineAction, } from '@o3r/core'; /** ActionUpdateAssetBlock */ diff --git a/packages/@o3r/dynamic-content/src/rules-engine/asset.rules-engine.module.ts b/packages/@o3r/dynamic-content/src/rules-engine/asset.rules-engine.module.ts index d83d3d9d15..3cfe083633 100644 --- a/packages/@o3r/dynamic-content/src/rules-engine/asset.rules-engine.module.ts +++ b/packages/@o3r/dynamic-content/src/rules-engine/asset.rules-engine.module.ts @@ -1,11 +1,11 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - AssetPathOverrideStoreModule + AssetPathOverrideStoreModule, } from '@o3r/dynamic-content'; import { - AssetRulesEngineActionHandler + AssetRulesEngineActionHandler, } from './asset.handler-action'; @NgModule({ diff --git a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.module.ts b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.module.ts index 7d2c7ccc43..e36c5e9688 100644 --- a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.module.ts +++ b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.module.ts @@ -1,17 +1,17 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { DynamicContentPipe, - O3rDynamicContentPipe + O3rDynamicContentPipe, } from './dynamic-content.pipe'; import { - DynamicContentService + DynamicContentService, } from './dynamic-content.service'; import { CMS_ASSETS_PATH_TOKEN, - DYNAMIC_CONTENT_BASE_PATH_TOKEN + DYNAMIC_CONTENT_BASE_PATH_TOKEN, } from './dynamic-content.token'; /** diff --git a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.spec.ts b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.spec.ts index eaf40164a4..364ae6dae6 100644 --- a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.spec.ts +++ b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.spec.ts @@ -1,27 +1,27 @@ import { - Component + Component, } from '@angular/core'; import { ComponentFixture, getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - InterfaceOf + InterfaceOf, } from '@o3r/core'; import { - of + of, } from 'rxjs'; import { DynamicContentPipe, - O3rDynamicContentPipe + O3rDynamicContentPipe, } from './dynamic-content.pipe'; import { - DynamicContentService + DynamicContentService, } from './dynamic-content.service'; const serviceMock: InterfaceOf = { diff --git a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.ts b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.ts index 5611741be0..de9d690487 100644 --- a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.ts +++ b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.pipe.ts @@ -2,13 +2,13 @@ import { ChangeDetectorRef, OnDestroy, Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - DynamicContentService + DynamicContentService, } from './dynamic-content.service'; @Pipe({ name: 'o3rDynamicContent', pure: false }) diff --git a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.spec.ts b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.spec.ts index 6e079b126c..432ebbfad7 100644 --- a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.spec.ts +++ b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.spec.ts @@ -1,23 +1,23 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - DynamicContentModule + DynamicContentModule, } from './dynamic-content.module'; import { - DynamicContentService + DynamicContentService, } from './dynamic-content.service'; import { CMS_ASSETS_PATH_TOKEN, - DYNAMIC_CONTENT_BASE_PATH_TOKEN + DYNAMIC_CONTENT_BASE_PATH_TOKEN, } from './dynamic-content.token'; let service: DynamicContentService; diff --git a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.ts b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.ts index b82b482552..1bda868d67 100644 --- a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.ts +++ b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.service.ts @@ -1,27 +1,27 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { - of + of, } from 'rxjs'; import { distinctUntilChanged, map, - shareReplay + shareReplay, } from 'rxjs/operators'; import { AssetPathOverrideStore, - selectAssetPathOverride + selectAssetPathOverride, } from '../../stores/index'; import { CMS_ASSETS_PATH_TOKEN, - DYNAMIC_CONTENT_BASE_PATH_TOKEN + DYNAMIC_CONTENT_BASE_PATH_TOKEN, } from './dynamic-content.token'; const MEDIA_FOLDER_NAME = 'assets'; diff --git a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.token.ts b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.token.ts index 30107e6308..ff65c049c8 100644 --- a/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.token.ts +++ b/packages/@o3r/dynamic-content/src/services/dynamic-content/dynamic-content.token.ts @@ -1,5 +1,5 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; /** diff --git a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.module.ts b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.module.ts index fcd8fa9aef..510829ec6d 100644 --- a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.module.ts +++ b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.module.ts @@ -1,15 +1,15 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - RequestParametersConfig + RequestParametersConfig, } from './request-parameters.config'; import { - RequestParametersService + RequestParametersService, } from './request-parameters.service'; import { - REQUEST_PARAMETERS_CONFIG_TOKEN + REQUEST_PARAMETERS_CONFIG_TOKEN, } from './request-parameters.token'; /** diff --git a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.service.ts b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.service.ts index 120410fcaa..cbea8edc51 100644 --- a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.service.ts +++ b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.service.ts @@ -1,14 +1,14 @@ import { Inject, - Injectable + Injectable, } from '@angular/core'; import { defaultRequestParametersConfig, RequestParametersConfig, - StorageStrategy + StorageStrategy, } from './request-parameters.config'; import { - REQUEST_PARAMETERS_CONFIG_TOKEN + REQUEST_PARAMETERS_CONFIG_TOKEN, } from './request-parameters.token'; export type ParamsList = 'query' | 'post'; diff --git a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.spec.ts b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.spec.ts index 8a84bde68b..b61c7b99f8 100644 --- a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.spec.ts +++ b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.spec.ts @@ -1,19 +1,19 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - StorageStrategy + StorageStrategy, } from './request-parameters.config'; import { - RequestParametersModule + RequestParametersModule, } from './request-parameters.module'; import { - RequestParametersService + RequestParametersService, } from './request-parameters.service'; class FakeStorage implements Storage { @@ -506,12 +506,10 @@ describe('RequestParametersService', () => { describe('No storage available', () => { beforeEach(async () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- used only in this scope - const getConfiguration = () => ( - { - queryParamsValue: queryParams, - postParamsValue: postParams - }); + const getConfiguration = () => ({ + queryParamsValue: queryParams, + postParamsValue: postParams + }); await TestBed.configureTestingModule({ imports: [RequestParametersModule.forRoot(getConfiguration)] }).compileComponents(); diff --git a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.token.ts b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.token.ts index 8c9a862662..d3ac205053 100644 --- a/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.token.ts +++ b/packages/@o3r/dynamic-content/src/services/request-parameters/request-parameters.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - RequestParametersConfig + RequestParametersConfig, } from './request-parameters.config'; /** diff --git a/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.module.ts b/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.module.ts index c848f1c4ed..e8476ea4da 100644 --- a/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.module.ts +++ b/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.module.ts @@ -1,8 +1,8 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - DynamicContentModule + DynamicContentModule, } from '../dynamic-content/index'; @NgModule({ diff --git a/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.service.ts b/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.service.ts index cf4e1dacb7..b4082988e2 100644 --- a/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.service.ts +++ b/packages/@o3r/dynamic-content/src/services/styling/style-lazy-loader.service.ts @@ -1,14 +1,14 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - DynamicContentService + DynamicContentService, } from '../dynamic-content/index'; import { - StyleLazyLoaderModule + StyleLazyLoaderModule, } from './style-lazy-loader.module'; /** diff --git a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.actions.ts b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.actions.ts index bb85127825..3fdbf07420 100644 --- a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.actions.ts +++ b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.actions.ts @@ -1,12 +1,12 @@ import { createAction, - props + props, } from '@ngrx/store'; import type { - SetStateActionPayload + SetStateActionPayload, } from '@o3r/core'; import { - AssetPathOverrideState + AssetPathOverrideState, } from './asset-path-override.state'; /** Actions */ diff --git a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.module.ts b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.module.ts index cc04f7782f..ec81cdafd7 100644 --- a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.module.ts +++ b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - assetPathOverrideReducer + assetPathOverrideReducer, } from './asset-path-override.reducer'; import { ASSET_PATH_OVERRIDE_STORE_NAME, - AssetPathOverrideState + AssetPathOverrideState, } from './asset-path-override.state'; /** Token of the AssetPathOverride reducer */ diff --git a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.spec.ts b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.spec.ts index aa325abadf..2832ea5f16 100644 --- a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.spec.ts +++ b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.spec.ts @@ -1,10 +1,10 @@ import * as actions from './asset-path-override.actions'; import { assetPathOverrideInitialState, - assetPathOverrideReducer + assetPathOverrideReducer, } from './asset-path-override.reducer'; import { - AssetPathOverrideState + AssetPathOverrideState, } from './asset-path-override.state'; describe('AssetPathOverride Store reducer', () => { diff --git a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.ts b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.ts index 9bd4408d17..77ed13ebb4 100644 --- a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.ts +++ b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.reducer.ts @@ -2,11 +2,11 @@ import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './asset-path-override.actions'; import { - AssetPathOverrideState + AssetPathOverrideState, } from './asset-path-override.state'; /** diff --git a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.selectors.ts b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.selectors.ts index 9ee548726c..30b4747d9a 100644 --- a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.selectors.ts +++ b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.selectors.ts @@ -1,10 +1,10 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { ASSET_PATH_OVERRIDE_STORE_NAME, - AssetPathOverrideState + AssetPathOverrideState, } from './asset-path-override.state'; /** Select AssetPathOverride State */ diff --git a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.sync.ts b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.sync.ts index 3a3da2e14b..e48fed0a40 100644 --- a/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.sync.ts +++ b/packages/@o3r/dynamic-content/src/stores/asset-path-override/asset-path-override.sync.ts @@ -1,11 +1,11 @@ import type { - Serializer + Serializer, } from '@o3r/core'; import { - assetPathOverrideInitialState + assetPathOverrideInitialState, } from './asset-path-override.reducer'; import { - AssetPathOverrideState + AssetPathOverrideState, } from './asset-path-override.state'; /** diff --git a/packages/@o3r/eslint-config-otter/eslint.local.config.mjs b/packages/@o3r/eslint-config-otter/eslint.local.config.mjs index fc43852ac3..a58976e1e8 100644 --- a/packages/@o3r/eslint-config-otter/eslint.local.config.mjs +++ b/packages/@o3r/eslint-config-otter/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/eslint-config-otter/jasmine-fast.cjs b/packages/@o3r/eslint-config-otter/jasmine-fast.cjs index ff29ccef4f..1f256bf3a1 100644 --- a/packages/@o3r/eslint-config-otter/jasmine-fast.cjs +++ b/packages/@o3r/eslint-config-otter/jasmine-fast.cjs @@ -1,9 +1,9 @@ /** @deprecated Will be removed in V12 */ module.exports = { - 'extends': [ + extends: [ './jasmine.cjs' ], - 'rules': { + rules: { '@typescript-eslint/no-floating-promises': 'off', '@typescript-eslint/no-implied-eval': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', @@ -11,6 +11,6 @@ module.exports = { '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-return': 'off', '@typescript-eslint/no-unused-vars': 'off', - 'indent': 'off' + indent: 'off' } }; diff --git a/packages/@o3r/eslint-config-otter/jasmine.cjs b/packages/@o3r/eslint-config-otter/jasmine.cjs index 6b14ba742a..1105e973d0 100644 --- a/packages/@o3r/eslint-config-otter/jasmine.cjs +++ b/packages/@o3r/eslint-config-otter/jasmine.cjs @@ -1,10 +1,10 @@ /** @deprecated Will be removed in V12 */ module.exports = { - 'extends': [ + extends: [ './typescript.cjs', 'plugin:eslint-plugin-jasmine/recommended' ], - 'plugins': [ + plugins: [ 'eslint-plugin-jasmine' ] }; diff --git a/packages/@o3r/eslint-config-otter/rules/template/eslint-angular.cjs b/packages/@o3r/eslint-config-otter/rules/template/eslint-angular.cjs index eb149bc184..aae6a8f2b9 100644 --- a/packages/@o3r/eslint-config-otter/rules/template/eslint-angular.cjs +++ b/packages/@o3r/eslint-config-otter/rules/template/eslint-angular.cjs @@ -1,8 +1,8 @@ module.exports = { - 'extends': [ + extends: [ 'plugin:@angular-eslint/template/recommended' ], - 'rules': { + rules: { 'max-len': 'off' } }; diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/eslint-angular.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/eslint-angular.cjs index aef567c4b3..39728d0986 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/eslint-angular.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/eslint-angular.cjs @@ -11,15 +11,15 @@ module.exports = { '@angular-eslint/directive-selector': [ 'error', { - 'type': 'attribute', - 'style': 'camelCase' + type: 'attribute', + style: 'camelCase' } ], '@angular-eslint/component-selector': [ 'error', { - 'type': 'element', - 'style': 'kebab-case' + type: 'element', + style: 'kebab-case' } ] } diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/eslint-typescript.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/eslint-typescript.cjs index 76bb4737c1..2305f6bd88 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/eslint-typescript.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/eslint-typescript.cjs @@ -11,35 +11,38 @@ module.exports = { '@typescript-eslint/array-type': [ 'error', { - 'default': 'array' + default: 'array' } ], '@typescript-eslint/ban-ts-comment': 'error', '@typescript-eslint/ban-types': [ 'error', { - 'types': { + types: { '{}': { - 'message': 'Use object instead', - 'fixWith': 'object' + message: 'Use object instead', + fixWith: 'object' }, - 'Object': { - 'message': 'Avoid using the `Object` type. Did you mean `object`?' + Object: { + message: 'Avoid using the `Object` type. Did you mean `object`?' }, - 'Function': { - 'message': 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.' + Function: { + message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.' }, - 'Boolean': { - 'message': 'Avoid using the `Boolean` type. Did you mean `boolean`?' + // eslint-disable-next-line id-denylist -- key for ESLint configuration + Boolean: { + message: 'Avoid using the `Boolean` type. Did you mean `boolean`?' }, - 'Number': { - 'message': 'Avoid using the `Number` type. Did you mean `number`?' + // eslint-disable-next-line id-denylist -- key for ESLint configuration + Number: { + message: 'Avoid using the `Number` type. Did you mean `number`?' }, - 'String': { - 'message': 'Avoid using the `String` type. Did you mean `string`?' + // eslint-disable-next-line id-denylist -- key for ESLint configuration + String: { + message: 'Avoid using the `String` type. Did you mean `string`?' }, - 'Symbol': { - 'message': 'Avoid using the `Symbol` type. Did you mean `symbol`?' + Symbol: { + message: 'Avoid using the `Symbol` type. Did you mean `symbol`?' } } } @@ -49,9 +52,9 @@ module.exports = { '@typescript-eslint/explicit-member-accessibility': [ 'warn', { - 'accessibility': 'explicit', - 'overrides': { - 'constructors': 'off' + accessibility: 'explicit', + overrides: { + constructors: 'off' } } ], @@ -59,7 +62,7 @@ module.exports = { '@typescript-eslint/member-ordering': [ 'error', { - 'default': [ + default: [ 'static-field', 'instance-field', 'constructor', @@ -73,33 +76,33 @@ module.exports = { '@typescript-eslint/naming-convention': [ 'error', { - 'selector': 'default', - 'format': ['camelCase'], - 'leadingUnderscore': 'allow', - 'trailingUnderscore': 'allow' + selector: 'default', + format: ['camelCase'], + leadingUnderscore: 'allow', + trailingUnderscore: 'allow' }, { - 'selector': 'variable', - 'format': ['camelCase', 'UPPER_CASE'], - 'leadingUnderscore': 'allow', - 'trailingUnderscore': 'allow' + selector: 'variable', + format: ['camelCase', 'UPPER_CASE'], + leadingUnderscore: 'allow', + trailingUnderscore: 'allow' }, { - 'selector': 'typeLike', - 'format': ['PascalCase'] + selector: 'typeLike', + format: ['PascalCase'] }, { - 'selector': 'property', - 'modifiers': ['readonly'], - 'format': ['camelCase', 'UPPER_CASE'] + selector: 'property', + modifiers: ['readonly'], + format: ['camelCase', 'UPPER_CASE'] }, { - 'selector': 'enumMember', - 'format': ['camelCase', 'UPPER_CASE'] + selector: 'enumMember', + format: ['camelCase', 'UPPER_CASE'] }, { - 'selector': 'import', - 'format': ['camelCase', 'PascalCase'] + selector: 'import', + format: ['camelCase', 'PascalCase'] } ], '@typescript-eslint/no-array-constructor': 'error', @@ -113,7 +116,7 @@ module.exports = { '@typescript-eslint/no-misused-promises': [ 'error', { - 'checksVoidReturn': false + checksVoidReturn: false } ], '@typescript-eslint/no-namespace': 'off', @@ -125,7 +128,7 @@ module.exports = { '@typescript-eslint/no-shadow': [ 'error', { - 'hoist': 'all' + hoist: 'all' } ], '@typescript-eslint/no-this-alias': 'error', @@ -134,7 +137,7 @@ module.exports = { '@typescript-eslint/no-unused-vars': [ 'error', { - 'argsIgnorePattern': '^_' + argsIgnorePattern: '^_' } ], '@typescript-eslint/no-use-before-define': 'off', @@ -152,9 +155,9 @@ module.exports = { '@typescript-eslint/triple-slash-reference': [ 'error', { - 'path': 'always', - 'types': 'prefer-import', - 'lib': 'always' + path: 'always', + types: 'prefer-import', + lib: 'always' } ], '@typescript-eslint/unbound-method': 'warn', diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/eslint.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/eslint.cjs index 4278c1dda6..5b1d5f7e72 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/eslint.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/eslint.cjs @@ -4,22 +4,22 @@ module.exports = { ], rules: { 'require-await': 'error', - 'camelcase': 'error', + camelcase: 'error', 'comma-dangle': 'error', 'comma-style': [ 'error', 'last' ], - 'complexity': 'off', + complexity: 'off', 'constructor-super': 'error', - 'curly': 'error', + curly: 'error', 'dot-location': [ 'error', 'property' ], 'dot-notation': 'error', 'eol-last': 'error', - 'eqeqeq': [ + eqeqeq: [ 'error', 'smart' ], @@ -37,22 +37,22 @@ module.exports = { 'undefined' ], 'id-match': 'error', - 'indent': [ + indent: [ 'error', 2, { - 'FunctionDeclaration': { - 'parameters': 'off' + FunctionDeclaration: { + parameters: 'off' }, - 'SwitchCase': 1 + SwitchCase: 1 } ], 'key-spacing': [ 'warn', { - 'beforeColon': false, - 'afterColon': true + beforeColon: false, + afterColon: true } ], 'linebreak-style': [ @@ -63,16 +63,16 @@ module.exports = { 'max-len': [ 'error', { - 'code': 200 + code: 200 } ], 'new-cap': [ 'error', { - 'newIsCap': true, - 'capIsNew': true, - 'properties': true, - 'capIsNewExceptions': [ + newIsCap: true, + capIsNew: true, + properties: true, + capIsNewExceptions: [ 'AsyncInput', 'Component', 'Directive', @@ -110,7 +110,7 @@ module.exports = { 'no-console': [ 'error', { - 'allow': [ + allow: [ 'warn', 'dir', 'time', @@ -177,7 +177,7 @@ module.exports = { 'no-redeclare': 'off', 'no-regex-spaces': 'error', 'no-restricted-imports': ['error', { - 'patterns': [ + patterns: [ 'rxjs/internal/*' ] }], @@ -195,7 +195,7 @@ module.exports = { 'no-underscore-dangle': [ 'error', { - 'allowAfterThis': true + allowAfterThis: true } ], 'no-unexpected-multiline': 'error', @@ -207,7 +207,7 @@ module.exports = { 'no-use-before-define': [ 'error', { - 'classes': false + classes: false } ], 'no-useless-catch': 'error', @@ -220,32 +220,32 @@ module.exports = { 'never' ], 'prefer-const': 'error', - 'quotes': [ + quotes: [ 'error', 'single', { - 'allowTemplateLiterals': true + allowTemplateLiterals: true } ], - 'radix': 'error', + radix: 'error', 'require-yield': 'error', - 'semi': [ + semi: [ 'error', 'always' ], 'semi-spacing': [ 'warn', { - 'before': false, - 'after': true + before: false, + after: true } ], 'sort-imports': [ 'error', { - 'allowSeparatedGroups': true, - 'ignoreDeclarationSort': true, - 'ignoreCase': true + allowSeparatedGroups: true, + ignoreDeclarationSort: true, + ignoreCase: true } ], 'space-in-parens': [ @@ -257,12 +257,12 @@ module.exports = { 'error', 'always', { - 'markers': [ + markers: [ '/' ] } ], - 'strict': [ + strict: [ 'error', 'global' ], diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/jest.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/jest.cjs index a3bcb21244..83b8ac0067 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/jest.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/jest.cjs @@ -5,7 +5,7 @@ module.exports = { plugins: [ 'jest' ], - 'rules': { + rules: { 'jest/no-conditional-expect': 'warn', 'jest/no-done-callback': 'warn' } diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/jsdoc.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/jsdoc.cjs index 1fb5d2715b..879b3f045d 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/jsdoc.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/jsdoc.cjs @@ -20,7 +20,7 @@ module.exports = { 'jsdoc/check-tag-names': [ 'warn', { - 'definedTags': ['note', 'title', 'o3rCategory', 'o3rCategories', 'o3rWidget', 'o3rWidgetParam', 'o3rRequired'] + definedTags: ['note', 'title', 'o3rCategory', 'o3rCategories', 'o3rWidget', 'o3rWidgetParam', 'o3rRequired'] } ], 'jsdoc/check-types': 'warn', @@ -40,7 +40,7 @@ module.exports = { 'jsdoc/require-jsdoc': [ 'error', { - 'publicOnly': true + publicOnly: true } ], 'jsdoc/require-param': 'warn', diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/prefer-arrow.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/prefer-arrow.cjs index 3a1e835f4f..68c284d707 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/prefer-arrow.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/prefer-arrow.cjs @@ -6,7 +6,7 @@ module.exports = { 'prefer-arrow/prefer-arrow-functions': [ 'error', { - 'allowStandaloneDeclarations': true + allowStandaloneDeclarations: true } ] } diff --git a/packages/@o3r/eslint-config-otter/rules/typescript/stylistic.cjs b/packages/@o3r/eslint-config-otter/rules/typescript/stylistic.cjs index 472d677898..d651092f61 100644 --- a/packages/@o3r/eslint-config-otter/rules/typescript/stylistic.cjs +++ b/packages/@o3r/eslint-config-otter/rules/typescript/stylistic.cjs @@ -6,8 +6,8 @@ module.exports = { '@stylistic/ts/key-spacing': [ 'warn', { - 'beforeColon': false, - 'afterColon': true + beforeColon: false, + afterColon: true } ], '@stylistic/ts/keyword-spacing': 'error', @@ -20,29 +20,29 @@ module.exports = { '@stylistic/ts/space-before-function-paren': [ 'error', { - 'anonymous': 'always', - 'named': 'never', - 'asyncArrow': 'always' + anonymous: 'always', + named: 'never', + asyncArrow: 'always' } ], '@stylistic/ts/quotes': [ 'error', 'single', { - 'avoidEscape': true, - 'allowTemplateLiterals': true + avoidEscape: true, + allowTemplateLiterals: true } ], '@stylistic/ts/member-delimiter-style': [ 'error', { - 'multiline': { - 'delimiter': 'semi', - 'requireLast': true + multiline: { + delimiter: 'semi', + requireLast: true }, - 'singleline': { - 'delimiter': 'semi', - 'requireLast': false + singleline: { + delimiter: 'semi', + requireLast: false } } ] diff --git a/packages/@o3r/eslint-config-otter/schematics/index.it.spec.ts b/packages/@o3r/eslint-config-otter/schematics/index.it.spec.ts index 6f1dbe2972..56367fb3c7 100644 --- a/packages/@o3r/eslint-config-otter/schematics/index.it.spec.ts +++ b/packages/@o3r/eslint-config-otter/schematics/index.it.spec.ts @@ -11,7 +11,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add eslint-config', () => { diff --git a/packages/@o3r/eslint-config-otter/schematics/ng-add/index.ts b/packages/@o3r/eslint-config-otter/schematics/ng-add/index.ts index b86fe20943..ceebfedfad 100644 --- a/packages/@o3r/eslint-config-otter/schematics/ng-add/index.ts +++ b/packages/@o3r/eslint-config-otter/schematics/ng-add/index.ts @@ -3,13 +3,13 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - updateLinterConfigs + updateLinterConfigs, } from './linter'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.spec.ts b/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.spec.ts index 5f8e155f21..76523edaca 100644 --- a/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.spec.ts +++ b/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.spec.ts @@ -2,16 +2,16 @@ import path from 'node:path'; import { callRule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - updateLinterConfigs + updateLinterConfigs, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); @@ -39,7 +39,7 @@ describe('Generate linter files', () => { const tree = await lastValueFrom(callRule(updateLinterConfigs({}, path.join(__dirname, '..')), initialTree, context)); expect(tree.readText('.eslintignore')).toBe('I am inevitable'); - expect(tree.readJson('.eslintrc.json')).toEqual({ 'extends': ['@o3r/eslint-config-otter'] }); + expect(tree.readJson('.eslintrc.json')).toEqual({ extends: ['@o3r/eslint-config-otter'] }); }); it('should not overwrite linter files', async () => { diff --git a/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.ts b/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.ts index 83e45d9a06..22817c1662 100644 --- a/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.ts +++ b/packages/@o3r/eslint-config-otter/schematics/ng-add/linter/index.ts @@ -1,5 +1,5 @@ import { - posix + posix, } from 'node:path'; import { apply, @@ -12,7 +12,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/eslint-config-otter/schematics/ng-add/schema.ts b/packages/@o3r/eslint-config-otter/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/eslint-config-otter/schematics/ng-add/schema.ts +++ b/packages/@o3r/eslint-config-otter/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/eslint-config-otter/schematics/ng-update/index.ts b/packages/@o3r/eslint-config-otter/schematics/ng-update/index.ts index 5dbe778df1..30488fc0d9 100644 --- a/packages/@o3r/eslint-config-otter/schematics/ng-update/index.ts +++ b/packages/@o3r/eslint-config-otter/schematics/ng-update/index.ts @@ -1,12 +1,12 @@ import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { - addStylistic + addStylistic, } from './v10.0/stylistic'; /** diff --git a/packages/@o3r/eslint-config-otter/schematics/ng-update/v10.0/stylistic.ts b/packages/@o3r/eslint-config-otter/schematics/ng-update/v10.0/stylistic.ts index 1b89cc68cc..a1072212b6 100644 --- a/packages/@o3r/eslint-config-otter/schematics/ng-update/v10.0/stylistic.ts +++ b/packages/@o3r/eslint-config-otter/schematics/ng-update/v10.0/stylistic.ts @@ -1,17 +1,17 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - resolve + resolve, } from 'node:path'; import { - type Rule + type Rule, } from '@angular-devkit/schematics'; import { - setupDependencies + setupDependencies, } from '@o3r/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; /** diff --git a/packages/@o3r/eslint-config-otter/typescript-fast.cjs b/packages/@o3r/eslint-config-otter/typescript-fast.cjs index ad7292edd1..cb2c68163d 100644 --- a/packages/@o3r/eslint-config-otter/typescript-fast.cjs +++ b/packages/@o3r/eslint-config-otter/typescript-fast.cjs @@ -1,9 +1,9 @@ /** @deprecated Will be removed in V12 */ module.exports = { - 'extends': [ + extends: [ './typescript.cjs' ], - 'rules': { + rules: { '@typescript-eslint/no-floating-promises': 'off', '@typescript-eslint/no-implied-eval': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', @@ -11,6 +11,6 @@ module.exports = { '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-return': 'off', '@typescript-eslint/no-unused-vars': 'off', - 'indent': 'off' + indent: 'off' } }; diff --git a/packages/@o3r/eslint-config/eslint.local.config.mjs b/packages/@o3r/eslint-config/eslint.local.config.mjs index 469872ff25..6878f88cdc 100644 --- a/packages/@o3r/eslint-config/eslint.local.config.mjs +++ b/packages/@o3r/eslint-config/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/eslint-config/schematics/index.it.spec.ts b/packages/@o3r/eslint-config/schematics/index.it.spec.ts index c913c1fc21..2cb7b168c7 100644 --- a/packages/@o3r/eslint-config/schematics/index.it.spec.ts +++ b/packages/@o3r/eslint-config/schematics/index.it.spec.ts @@ -11,7 +11,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('new otter application with eslint config', () => { diff --git a/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.spec.ts b/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.spec.ts index 0899c91c74..6d1d593a43 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.spec.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.spec.ts @@ -1,16 +1,16 @@ import * as path from 'node:path'; import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - updateEslintConfig + updateEslintConfig, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.ts b/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.ts index 3c99c02b91..a66d0589a8 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/eslint/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import { apply, @@ -10,10 +10,10 @@ import { renameTemplateFiles, type Rule, template, - url + url, } from '@angular-devkit/schematics'; import { - updateOrAddTsconfigEslint + updateOrAddTsconfigEslint, } from '../tsconfig/index'; /** diff --git a/packages/@o3r/eslint-config/schematics/ng-add/index.spec.ts b/packages/@o3r/eslint-config/schematics/ng-add/index.spec.ts index 7525eefb88..54d9f81879 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/index.spec.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/index.spec.ts @@ -1,15 +1,13 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; -// eslint-disable-next-line unicorn/consistent-function-scoping -- mock setupDependencies function, higher-order function const setupDependenciesMock = jest.fn(() => () => {}); const updateVscodeMock = jest.fn(() => {}); -// eslint-disable-next-line unicorn/consistent-function-scoping -- mock updateEslintConfig function, higher-order function const updateEslintConfigMock = jest.fn(() => () => {}); jest.mock('@o3r/schematics', () => ({ @@ -41,11 +39,11 @@ describe('ng add eslint-config', () => { '@o3r/eslint-plugin': expect.objectContaining({}), '@stylistic/eslint-plugin': expect.objectContaining({}), 'angular-eslint': expect.objectContaining({}), - 'eslint': expect.objectContaining({}), + eslint: expect.objectContaining({}), 'eslint-plugin-jsdoc': expect.objectContaining({}), 'eslint-plugin-prefer-arrow': expect.objectContaining({}), 'eslint-plugin-unicorn': expect.objectContaining({}), - 'globby': expect.objectContaining({}), + globby: expect.objectContaining({}), 'jsonc-eslint-parser': expect.objectContaining({}), 'typescript-eslint': expect.objectContaining({}) }), diff --git a/packages/@o3r/eslint-config/schematics/ng-add/schema.ts b/packages/@o3r/eslint-config/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/schema.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.spec.ts b/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.spec.ts index 40ca08f88a..c5480f4730 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.spec.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.spec.ts @@ -1,16 +1,16 @@ import * as path from 'node:path'; import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - updateOrAddTsconfigEslint + updateOrAddTsconfigEslint, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.ts b/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.ts index e9a37dd214..9746731e56 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/tsconfig/index.ts @@ -1,6 +1,6 @@ import { type JsonArray, - type JsonObject + type JsonObject, } from '@angular-devkit/core'; import { apply, @@ -9,7 +9,7 @@ import { renameTemplateFiles, type Rule, template, - url + url, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/eslint-config/schematics/ng-add/vscode/index.spec.ts b/packages/@o3r/eslint-config/schematics/ng-add/vscode/index.spec.ts index 94157483d4..f8a19cc63a 100644 --- a/packages/@o3r/eslint-config/schematics/ng-add/vscode/index.spec.ts +++ b/packages/@o3r/eslint-config/schematics/ng-add/vscode/index.spec.ts @@ -1,15 +1,15 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - updateVscode + updateVscode, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/eslint-config/src/rules/template/angular.cjs b/packages/@o3r/eslint-config/src/rules/template/angular.cjs index 5d62329a78..6452122fef 100644 --- a/packages/@o3r/eslint-config/src/rules/template/angular.cjs +++ b/packages/@o3r/eslint-config/src/rules/template/angular.cjs @@ -19,7 +19,7 @@ const config = [ { allowList: ['ngbNavLink'] } - ], + ] } } ]; diff --git a/packages/@o3r/eslint-config/src/rules/typescript/comments.cjs b/packages/@o3r/eslint-config/src/rules/typescript/comments.cjs index d2dd9fcea7..146d92093c 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/comments.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/comments.cjs @@ -13,13 +13,13 @@ const config = [ ], rules: { ...convertWarningsToErrors(comments.recommended), + '@eslint-community/eslint-comments/disable-enable-pair': 'off', '@eslint-community/eslint-comments/require-description': [ 'error', { ignore: ['eslint-enable'] } - ], - '@eslint-community/eslint-comments/disable-enable-pair': 'off' + ] } } ]; diff --git a/packages/@o3r/eslint-config/src/rules/typescript/eslint-angular.cjs b/packages/@o3r/eslint-config/src/rules/typescript/eslint-angular.cjs index fc0ed6531b..2893d43569 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/eslint-angular.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/eslint-angular.cjs @@ -12,9 +12,14 @@ const config = [ files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'], rules: { ...convertWarningsToErrors(angular.configs.tsRecommended), - '@angular-eslint/no-input-rename': 'off', + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + style: 'kebab-case' + } + ], '@angular-eslint/directive-class-suffix': 'off', - '@angular-eslint/no-empty-lifecycle-method': 'off', '@angular-eslint/directive-selector': [ 'error', { @@ -22,13 +27,8 @@ const config = [ style: 'camelCase' } ], - '@angular-eslint/component-selector': [ - 'error', - { - type: 'element', - style: 'kebab-case' - } - ] + '@angular-eslint/no-empty-lifecycle-method': 'off', + '@angular-eslint/no-input-rename': 'off' } } ]; diff --git a/packages/@o3r/eslint-config/src/rules/typescript/eslint-typescript.cjs b/packages/@o3r/eslint-config/src/rules/typescript/eslint-typescript.cjs index 18a419b3bd..0ef978babf 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/eslint-typescript.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/eslint-typescript.cjs @@ -116,6 +116,7 @@ const config = [ hoist: 'all' } ], + '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/no-unused-vars': [ 'error', { @@ -124,9 +125,9 @@ const config = [ ignoreRestSiblings: true } ], - '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/prefer-for-of': 'error', '@typescript-eslint/prefer-function-type': 'error', + '@typescript-eslint/prefer-readonly': 'error', '@typescript-eslint/prefer-regexp-exec': 'off', '@typescript-eslint/triple-slash-reference': [ 'error', @@ -136,8 +137,7 @@ const config = [ lib: 'always' } ], - '@typescript-eslint/unified-signatures': 'error', - '@typescript-eslint/prefer-readonly': 'error' + '@typescript-eslint/unified-signatures': 'error' } } ]; diff --git a/packages/@o3r/eslint-config/src/rules/typescript/eslint.cjs b/packages/@o3r/eslint-config/src/rules/typescript/eslint.cjs index 9178b39291..76bd0814dc 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/eslint.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/eslint.cjs @@ -41,11 +41,11 @@ const config = [ ], rules: { ...convertWarningsToErrors(eslint.configs.recommended), - 'complexity': 'off', + complexity: 'off', 'constructor-super': 'error', - 'curly': 'error', + curly: 'error', 'dot-notation': 'error', - 'eqeqeq': [ + eqeqeq: [ 'error', 'smart' ], @@ -111,7 +111,7 @@ const config = [ 'error', 'never' ], - 'radix': 'error', + radix: 'error', 'sort-imports': [ 'error', { @@ -120,7 +120,7 @@ const config = [ ignoreCase: true } ], - 'strict': [ + strict: [ 'error', 'global' ] diff --git a/packages/@o3r/eslint-config/src/rules/typescript/import.cjs b/packages/@o3r/eslint-config/src/rules/typescript/import.cjs index 2b35dff962..ee2c86ae3b 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/import.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/import.cjs @@ -20,7 +20,7 @@ const config = [ 'import/no-unresolved': 'off', 'import/order': ['error', { 'newlines-between': 'never', - 'alphabetize': { order: 'asc', caseInsensitive: true } + alphabetize: { order: 'asc', caseInsensitive: true } }] } } diff --git a/packages/@o3r/eslint-config/src/rules/typescript/jest.cjs b/packages/@o3r/eslint-config/src/rules/typescript/jest.cjs index ade34459be..a063a0f080 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/jest.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/jest.cjs @@ -16,7 +16,7 @@ const config = [ 'jest/expect-expect': [ 'error', { - 'assertFunctionNames': ['expect', 'expectObservable'] + assertFunctionNames: ['expect', 'expectObservable'] } ] } diff --git a/packages/@o3r/eslint-config/src/rules/typescript/jsdoc.cjs b/packages/@o3r/eslint-config/src/rules/typescript/jsdoc.cjs index 0193efd53b..fbf6f15c11 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/jsdoc.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/jsdoc.cjs @@ -32,6 +32,7 @@ const config = [ publicOnly: true } ], + 'jsdoc/require-param-description': 'off', 'jsdoc/require-param-type': 'off', 'jsdoc/require-property-type': 'off', 'jsdoc/require-returns': 'off', @@ -43,8 +44,8 @@ const config = [ files: ['**/*.{c,m,}js'], rules: { 'jsdoc/require-param-type': 'error', - 'jsdoc/require-returns-type': 'error', 'jsdoc/require-returns-description': 'off', + 'jsdoc/require-returns-type': 'error' } } ]; diff --git a/packages/@o3r/eslint-config/src/rules/typescript/otter.cjs b/packages/@o3r/eslint-config/src/rules/typescript/otter.cjs index 326478bbb9..554d2fc792 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/otter.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/otter.cjs @@ -14,8 +14,8 @@ const o3rTypescriptRecommended = (plugin) => [ files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'], rules: { '@o3r/matching-configuration-name': 'error', - '@o3r/no-multiple-type-configuration-property': 'error', '@o3r/no-folder-import-for-module': 'error', + '@o3r/no-multiple-type-configuration-property': 'error', '@o3r/o3r-categories-tags': 'error' } } diff --git a/packages/@o3r/eslint-config/src/rules/typescript/stylistic.cjs b/packages/@o3r/eslint-config/src/rules/typescript/stylistic.cjs index 82a60762ad..87d725e373 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/stylistic.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/stylistic.cjs @@ -15,6 +15,13 @@ const config = [ ...convertWarningsToErrors(stylistic.configs['recommended-flat']), '@stylistic/arrow-parens': ['error', 'always'], '@stylistic/brace-style': ['error', '1tbs'], + '@stylistic/comma-dangle': ['error', { + arrays: 'never', + objects: 'never', + imports: 'always-multiline', + exports: 'always-multiline', + functions: 'never' + }], '@stylistic/indent': [ 'error', 2, @@ -58,6 +65,13 @@ const config = [ ], '@stylistic/no-extra-semi': 'error', '@stylistic/no-multiple-empty-lines': 'error', + '@stylistic/operator-linebreak': [ + 'error', + 'before', + { + overrides: { '=': 'none' } + } + ], '@stylistic/quotes': [ 'error', 'single', @@ -66,6 +80,10 @@ const config = [ allowTemplateLiterals: true } ], + '@stylistic/quote-props': [ + 'error', + 'as-needed' + ], '@stylistic/semi': [ 'error', 'always' @@ -90,13 +108,6 @@ const config = [ '@stylistic/wrap-iife': [ 'error', 'inside' - ], - '@stylistic/operator-linebreak': [ - 'error', - 'before', - { - 'overrides': { '=': 'none' } - } ] } } diff --git a/packages/@o3r/eslint-config/src/rules/typescript/unicorn.cjs b/packages/@o3r/eslint-config/src/rules/typescript/unicorn.cjs index e06fc51017..74a5121065 100644 --- a/packages/@o3r/eslint-config/src/rules/typescript/unicorn.cjs +++ b/packages/@o3r/eslint-config/src/rules/typescript/unicorn.cjs @@ -13,6 +13,8 @@ const config = [ ], rules: { ...convertWarningsToErrors(unicorn.configs['flat/recommended']), + 'unicorn/catch-error-name': 'off', + 'unicorn/consistent-function-scoping': 'off', 'unicorn/filename-case': [ 'error', { @@ -25,36 +27,22 @@ const config = [ 'unicorn/import-style': 'off', 'unicorn/no-array-for-each': 'off', 'unicorn/no-array-reduce': 'off', + 'unicorn/no-await-expression-member': 'off', 'unicorn/no-null': 'off', 'unicorn/no-typeof-undefined': 'off', + 'unicorn/no-useless-undefined': 'off', + 'unicorn/no-useless-promise-resolve-reject': 'off', 'unicorn/prefer-code-point': 'off', 'unicorn/prefer-dom-node-text-content': 'off', 'unicorn/prefer-module': 'off', + 'unicorn/prefer-set-has': 'off', 'unicorn/prefer-spread': 'off', 'unicorn/prefer-string-raw': 'off', 'unicorn/prefer-string-replace-all': 'off', - 'unicorn/prevent-abbreviations': 'off', - 'unicorn/catch-error-name': 'off', - 'unicorn/no-useless-promise-resolve-reject': 'off', - 'unicorn/prefer-set-has': 'off', 'unicorn/prefer-string-slice': 'off', 'unicorn/prefer-top-level-await': 'off', 'unicorn/prefer-type-error': 'off', - 'unicorn/no-useless-undefined': 'off' - } - }, - { - name: '@o3r/eslint-config/unicorn/consistent-function-scoping', - files: ['**/*.component.ts', '**/*.effect.ts'], - rules: { - // TODO re-enable this rule once it supports: - // - arrow function in `computed` for Angular signal computation - // - arrow function in `createEffect` for NgRX effects - // No opened issue on their side yet - 'unicorn/consistent-function-scoping': [ - 'error', - { checkArrowFunctions: false } - ] + 'unicorn/prevent-abbreviations': 'off' } } ]; diff --git a/packages/@o3r/eslint-plugin/eslint.local.config.mjs b/packages/@o3r/eslint-plugin/eslint.local.config.mjs index 08d808ccd2..c9885eaf8a 100644 --- a/packages/@o3r/eslint-plugin/eslint.local.config.mjs +++ b/packages/@o3r/eslint-plugin/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/eslint-plugin/schematics/ng-add/index.ts b/packages/@o3r/eslint-plugin/schematics/ng-add/index.ts index c7c086e984..2276b3b556 100644 --- a/packages/@o3r/eslint-plugin/schematics/ng-add/index.ts +++ b/packages/@o3r/eslint-plugin/schematics/ng-add/index.ts @@ -1,8 +1,8 @@ import { - noop + noop, } from '@angular-devkit/schematics'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.spec.ts b/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.spec.ts index 63bd4ce75a..1d9b21763c 100644 --- a/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.spec.ts @@ -1,11 +1,11 @@ import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import * as jsonParser from 'jsonc-eslint-parser'; import jsonDependencyVersionsHarmonize, { - VersionsHarmonizeOptions + VersionsHarmonizeOptions, } from './json-dependency-versions-harmonize'; const ruleTester = new RuleTester({ diff --git a/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.ts b/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.ts index dd28c7064b..8378cbe05a 100644 --- a/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.ts +++ b/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/json-dependency-versions-harmonize.ts @@ -1,18 +1,18 @@ import * as path from 'node:path'; import type { - AST + AST, } from 'jsonc-eslint-parser'; import * as semver from 'semver'; import { - createRule + createRule, } from '../../utils'; import { - getJsoncParserServices + getJsoncParserServices, } from '../utils'; import { findWorkspacePackageJsons, getBestRange, - getBestRanges + getBestRanges, } from './version-harmonize'; /** Options for the ESLint rule @o3r/json-dependency-versions-harmonize */ diff --git a/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/version-harmonize.ts b/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/version-harmonize.ts index 5c054ce413..bb43de5e99 100644 --- a/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/version-harmonize.ts +++ b/packages/@o3r/eslint-plugin/src/rules/json/json-dependency-versions-harmonize/version-harmonize.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import { dirname, normalize, posix, - resolve + resolve, } from 'node:path'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import * as semver from 'semver'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** List of packages information resulting of a package.json discovery */ diff --git a/packages/@o3r/eslint-plugin/src/rules/json/utils.ts b/packages/@o3r/eslint-plugin/src/rules/json/utils.ts index 4da9c977ee..7dafa30e0c 100644 --- a/packages/@o3r/eslint-plugin/src/rules/json/utils.ts +++ b/packages/@o3r/eslint-plugin/src/rules/json/utils.ts @@ -1,6 +1,6 @@ import { type ParserServices, - TSESLint + TSESLint, } from '@typescript-eslint/utils'; /** Basic interface for the Parser Services object provided by jsonc-eslint-parser */ diff --git a/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.spec.ts b/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.spec.ts index 401519f17f..4103d2551a 100644 --- a/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.spec.ts @@ -1,11 +1,11 @@ import { - RuleTester + RuleTester, } from '@angular-eslint/test-utils'; import { - templateParser + templateParser, } from 'angular-eslint'; import noInnerHTMLRule, { - name + name, } from './no-inner-html'; const ruleTester = new RuleTester({ diff --git a/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.ts b/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.ts index d8591d365c..5e363edba0 100644 --- a/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.ts +++ b/packages/@o3r/eslint-plugin/src/rules/template/no-inner-html/no-inner-html.ts @@ -1,11 +1,11 @@ import type { - TmplAstElement + TmplAstElement, } from '@angular/compiler'; import { - createRule + createRule, } from '../../utils'; import { - getTemplateParserServices + getTemplateParserServices, } from '../utils'; /** Rule Name */ diff --git a/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.spec.ts b/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.spec.ts index 30a874b447..99cabd663f 100644 --- a/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.spec.ts @@ -1,12 +1,12 @@ import { convertAnnotatedSourceToFailureCase, - RuleTester + RuleTester, } from '@angular-eslint/test-utils'; import { - templateParser + templateParser, } from 'angular-eslint'; import templateAsyncNumberLimitation, { - name + name, } from './template-async-number-limitation'; const ruleTester = new RuleTester({ diff --git a/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.ts b/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.ts index 5456400835..269d48a4a6 100644 --- a/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.ts +++ b/packages/@o3r/eslint-plugin/src/rules/template/template-async-number-limitation/template-async-number-limitation.ts @@ -1,11 +1,11 @@ import type { - TmplAstElement + TmplAstElement, } from '@angular/compiler'; import { - createRule + createRule, } from '../../utils'; import { - getTemplateParserServices + getTemplateParserServices, } from '../utils'; interface Options { diff --git a/packages/@o3r/eslint-plugin/src/rules/template/utils.ts b/packages/@o3r/eslint-plugin/src/rules/template/utils.ts index b95af0733b..5e746b8652 100644 --- a/packages/@o3r/eslint-plugin/src/rules/template/utils.ts +++ b/packages/@o3r/eslint-plugin/src/rules/template/utils.ts @@ -1,6 +1,6 @@ import { type ParserServices, - TSESLint + TSESLint, } from '@typescript-eslint/utils'; /** Position in source code */ diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.spec.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.spec.ts index e55919f6a8..2534244195 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.spec.ts @@ -1,5 +1,5 @@ import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import matchingConfigurationNameRule from './matching-configuration-name'; @@ -63,7 +63,7 @@ export const MY_CONFIG_ID = computeConfigurationName('MyConfig', '@example/confi export interface MyConfig extends Configuration {} export const MY_CONFIG_ID = computeConfigurationName('MyConfig', '@example/config'); - `.trim(), + `.trim() }, { code: ` export interface MyFirstConfig extends Configuration {} diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.ts index 0ed180cbdd..74f0c34f59 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/matching-configuration-name/matching-configuration-name.ts @@ -1,8 +1,8 @@ import { - TSESTree + TSESTree, } from '@typescript-eslint/utils'; import { - createRule + createRule, } from '../../utils'; const nameDeterminingFunctionNames = ['computeItemIdentifier', 'computeConfigurationName']; diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.spec.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.spec.ts index 8b946b2dcb..b860be8b9a 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.spec.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import noFolderImportForModule from './no-folder-import-for-module'; @@ -37,7 +37,7 @@ ruleTester.run('no-folder-import-for-module', noFolderImportForModule, { data: { newIndexFilePath: './local/index' }, - output: 'import {myImportModule} from "./local/index";', + output: 'import {myImportModule} from "./local/index";' } ] } @@ -58,7 +58,7 @@ ruleTester.run('no-folder-import-for-module', noFolderImportForModule, { data: { newIndexFilePath: './local/index' }, - output: 'import {randomImport, myImportModule} from "./local/index";', + output: 'import {randomImport, myImportModule} from "./local/index";' } ] } diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.ts index f67a56e2fc..a8776e1eb8 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/no-folder-import-for-module/no-folder-import-for-module.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import type { - TSESTree + TSESTree, } from '@typescript-eslint/utils'; import { - createRule + createRule, } from '../../utils'; export default createRule({ diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.spec.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.spec.ts index e5f0994206..fa7f91f73c 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.spec.ts @@ -1,5 +1,5 @@ import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import noMultipleTypeConfigurationPropertyRule from './no-multiple-type-configuration-property'; diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.ts index 7d7e0340fc..760a8c2796 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/no-multiple-type-configuration-property/no-multiple-type-configuration-property.ts @@ -1,10 +1,10 @@ import { - TSESTree + TSESTree, } from '@typescript-eslint/utils'; import { createRule, defaultSupportedInterfaceNames, - isExtendingConfiguration + isExtendingConfiguration, } from '../../utils'; const separatorRegExp = /\s*[&|]\s*/; diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.spec.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.spec.ts index 3caea0dcd4..21406913d8 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.spec.ts @@ -1,8 +1,8 @@ import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import o3rCategoriesTagsRule, { - O3rCategoriesTagsRuleOption + O3rCategoriesTagsRuleOption, } from './o3r-categories-tags'; const ruleTester = new RuleTester(); @@ -69,7 +69,7 @@ ruleTester.run('o3r-categories-tags', o3rCategoriesTagsRule, { messageId: 'suggestReplaceO3rCategory', data: { currentCategory: 'undefinedCategory', - suggestedCategory: 'global', + suggestedCategory: 'global' }, output: code.replace('@o3rCategory local', '@o3rCategory global') }, @@ -77,7 +77,7 @@ ruleTester.run('o3r-categories-tags', o3rCategoriesTagsRule, { messageId: 'suggestReplaceO3rCategory', data: { currentCategory: 'undefinedCategory', - suggestedCategory: 'local', + suggestedCategory: 'local' }, output: code } diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.ts index 08a82ec890..e9a4c44296 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-categories-tags/o3r-categories-tags.ts @@ -1,12 +1,12 @@ import type { - TSESTree + TSESTree, } from '@typescript-eslint/utils'; import { createCommentString, createRule, defaultSupportedInterfaceNames, getNodeComment, - isExtendingConfiguration + isExtendingConfiguration, } from '../../utils'; export interface O3rCategoriesTagsRuleOption { diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.spec.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.spec.ts index b96d0af20c..9ccc1056e2 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.spec.ts @@ -1,8 +1,8 @@ import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import o3rWidgetTagsRule, { - O3rWidgetTagsRuleOption + O3rWidgetTagsRuleOption, } from './o3r-widget-tags'; const ruleTester = new RuleTester(); @@ -82,7 +82,7 @@ ruleTester.run('o3r-widget-tags', o3rWidgetTagsRule, { suggestions: [ { messageId: 'suggestAddO3rWidgetTag', - output: code.replace('@o3rWidget', '').replace(/((.*)@o3rWidgetParam .*)/, '$2@o3rWidget widgetType\n$1'), + output: code.replace('@o3rWidget', '').replace(/((.*)@o3rWidgetParam .*)/, '$2@o3rWidget widgetType\n$1') } ] } diff --git a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.ts b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.ts index 32b9ebee79..b5de225114 100644 --- a/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.ts +++ b/packages/@o3r/eslint-plugin/src/rules/typescript/o3r-widget-tags/o3r-widget-tags.ts @@ -1,13 +1,13 @@ import { TSESLint, - type TSESTree + type TSESTree, } from '@typescript-eslint/utils'; import { createCommentString, createRule, defaultSupportedInterfaceNames, getNodeComment, - isExtendingConfiguration + isExtendingConfiguration, } from '../../utils'; const o3rWidgetParameterPattern = '^[a-zA-Z0-9-_:.]+$'; diff --git a/packages/@o3r/eslint-plugin/src/rules/utils.ts b/packages/@o3r/eslint-plugin/src/rules/utils.ts index 8b50b8245a..7deb14df6f 100644 --- a/packages/@o3r/eslint-plugin/src/rules/utils.ts +++ b/packages/@o3r/eslint-plugin/src/rules/utils.ts @@ -1,14 +1,14 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { ESLintUtils, TSESLint, - TSESTree + TSESTree, } from '@typescript-eslint/utils'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** Current package version (format: .)*/ diff --git a/packages/@o3r/eslint-plugin/src/rules/yaml/utils.ts b/packages/@o3r/eslint-plugin/src/rules/yaml/utils.ts index 1557c7d31f..f38b74fe30 100644 --- a/packages/@o3r/eslint-plugin/src/rules/yaml/utils.ts +++ b/packages/@o3r/eslint-plugin/src/rules/yaml/utils.ts @@ -1,6 +1,6 @@ import { type ParserServices, - TSESLint + TSESLint, } from '@typescript-eslint/utils'; /** Basic interface for the Parser Services object provided by yaml-eslint-parser */ diff --git a/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.spec.ts b/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.spec.ts index dc4971ab46..8f77cf4f4f 100644 --- a/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.spec.ts +++ b/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.spec.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import { - RuleTester + RuleTester, } from '@typescript-eslint/rule-tester'; import * as yamlParser from 'yaml-eslint-parser'; import yamlDependencyVersionsHarmonize from './yarnrc-package-extensions-harmonize'; diff --git a/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.ts b/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.ts index 27e53a4e18..077d539561 100644 --- a/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.ts +++ b/packages/@o3r/eslint-plugin/src/rules/yaml/yarnrc-package-extensions-harmonize/yarnrc-package-extensions-harmonize.ts @@ -2,17 +2,17 @@ import * as path from 'node:path'; import * as semver from 'semver'; import { type AST, - getStaticYAMLValue + getStaticYAMLValue, } from 'yaml-eslint-parser'; import { findWorkspacePackageJsons, - getBestRanges + getBestRanges, } from '../../json/json-dependency-versions-harmonize/version-harmonize'; import { - createRule + createRule, } from '../../utils'; import { - getYamlParserServices + getYamlParserServices, } from '../utils'; interface Options { diff --git a/packages/@o3r/eslint-plugin/testing/setup-jest.ts b/packages/@o3r/eslint-plugin/testing/setup-jest.ts index 2b41becfd8..ab19958a74 100644 --- a/packages/@o3r/eslint-plugin/testing/setup-jest.ts +++ b/packages/@o3r/eslint-plugin/testing/setup-jest.ts @@ -1,6 +1,6 @@ import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; useVirtualFileSystem(); diff --git a/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.it.spec.ts b/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.it.spec.ts index c217f2d674..d50dbddfde 100644 --- a/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.it.spec.ts +++ b/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.it.spec.ts @@ -7,21 +7,21 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { promises, - readFileSync + readFileSync, } from 'node:fs'; import { join, - relative + relative, } from 'node:path'; import { getDefaultExecSyncOptions, getLatestPackageVersion, packageManagerAdd, packageManagerExec, - publishToVerdaccio + publishToVerdaccio, } from '@o3r/test-helpers'; import { - inc + inc, } from 'semver'; const migrationDataMocksPath = join(__dirname, '..', '..', 'testing', 'mocks', 'migration-scripts'); diff --git a/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.spec.ts b/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.spec.ts index 1c6addf624..e20ed0ccc8 100644 --- a/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.spec.ts +++ b/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.spec.ts @@ -1,23 +1,23 @@ import * as fs from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - AggregateMigrationScriptsSchema + AggregateMigrationScriptsSchema, } from './schema'; describe('Aggregate migration scripts', () => { diff --git a/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.ts b/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.ts index 734c3738ae..0e1c5a0003 100644 --- a/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.ts +++ b/packages/@o3r/extractors/builders/aggregate-migration-scripts/index.ts @@ -3,27 +3,27 @@ import { mkdir, readFile, rm, - writeFile + writeFile, } from 'node:fs/promises'; import { basename, dirname, join, posix, - resolve + resolve, } from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import * as globby from 'globby'; import * as semver from 'semver'; import { - AggregateMigrationScriptsSchema + AggregateMigrationScriptsSchema, } from './schema'; import { createBuilderWithMetricsIfInstalled, - type MigrationFile + type MigrationFile, } from '@o3r/extractors'; const STEPS = [ diff --git a/packages/@o3r/extractors/builders/aggregate-migration-scripts/schema.ts b/packages/@o3r/extractors/builders/aggregate-migration-scripts/schema.ts index f9ecfa1d97..2195fb96de 100644 --- a/packages/@o3r/extractors/builders/aggregate-migration-scripts/schema.ts +++ b/packages/@o3r/extractors/builders/aggregate-migration-scripts/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; /** Combine the local migration scripts of the current project with all the migration scripts of its dependencies. */ diff --git a/packages/@o3r/extractors/eslint.local.config.mjs b/packages/@o3r/extractors/eslint.local.config.mjs index 8c97b7f3c0..e94d67b3e1 100644 --- a/packages/@o3r/extractors/eslint.local.config.mjs +++ b/packages/@o3r/extractors/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/extractors/schematics/cms-adapter/index.ts b/packages/@o3r/extractors/schematics/cms-adapter/index.ts index 8144c7919b..8e4fe1a847 100644 --- a/packages/@o3r/extractors/schematics/cms-adapter/index.ts +++ b/packages/@o3r/extractors/schematics/cms-adapter/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -14,12 +14,12 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { getTemplateFolder, getWorkspaceConfig, - ignorePatterns + ignorePatterns, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/extractors/schematics/index.it.spec.ts b/packages/@o3r/extractors/schematics/index.it.spec.ts index ed56075bb9..2533adc06c 100644 --- a/packages/@o3r/extractors/schematics/index.it.spec.ts +++ b/packages/@o3r/extractors/schematics/index.it.spec.ts @@ -11,7 +11,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add extractors', () => { diff --git a/packages/@o3r/extractors/schematics/ng-add/index.ts b/packages/@o3r/extractors/schematics/ng-add/index.ts index 7bc89267f9..db1f9b2a80 100644 --- a/packages/@o3r/extractors/schematics/ng-add/index.ts +++ b/packages/@o3r/extractors/schematics/ng-add/index.ts @@ -1,15 +1,15 @@ import * as path from 'node:path'; import { - chain + chain, } from '@angular-devkit/schematics'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateCmsAdapter + updateCmsAdapter, } from '../cms-adapter'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const dependenciesToInstall = [ diff --git a/packages/@o3r/extractors/schematics/ng-add/schema.ts b/packages/@o3r/extractors/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/extractors/schematics/ng-add/schema.ts +++ b/packages/@o3r/extractors/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.spec.ts b/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.spec.ts index f8c799dc55..09864597e2 100644 --- a/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.spec.ts +++ b/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - updateConfigurationExtractorCategories + updateConfigurationExtractorCategories, } from './configuration-extractor-categories'; const collectionPath = path.join(__dirname, '..', '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.ts b/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.ts index ab8dfa123d..37a5bcdef3 100644 --- a/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.ts +++ b/packages/@o3r/extractors/schematics/ng-update/v10-0/configuration-extractor-categories/configuration-extractor-categories.ts @@ -1,8 +1,8 @@ import { - Rule + Rule, } from '@angular-devkit/schematics'; import { - getFilesInFolderFromWorkspaceProjectsInTree + getFilesInFolderFromWorkspaceProjectsInTree, } from '@o3r/schematics'; const update: Rule = (tree) => { diff --git a/packages/@o3r/extractors/schematics/ng-update/v10-0/index.ts b/packages/@o3r/extractors/schematics/ng-update/v10-0/index.ts index 09bd038470..171f057db0 100644 --- a/packages/@o3r/extractors/schematics/ng-update/v10-0/index.ts +++ b/packages/@o3r/extractors/schematics/ng-update/v10-0/index.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateConfigurationExtractorCategories + updateConfigurationExtractorCategories, } from './configuration-extractor-categories/configuration-extractor-categories'; /** diff --git a/packages/@o3r/extractors/src/core/comparator/metadata-comparator.interface.ts b/packages/@o3r/extractors/src/core/comparator/metadata-comparator.interface.ts index 56975d008c..d8389d79fc 100644 --- a/packages/@o3r/extractors/src/core/comparator/metadata-comparator.interface.ts +++ b/packages/@o3r/extractors/src/core/comparator/metadata-comparator.interface.ts @@ -1,11 +1,11 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import type { - SupportedPackageManagers + SupportedPackageManagers, } from '@o3r/schematics'; import type { - CmsMetadataData + CmsMetadataData, } from '../../interfaces'; /** diff --git a/packages/@o3r/extractors/src/core/comparator/metadata-comparison.helper.ts b/packages/@o3r/extractors/src/core/comparator/metadata-comparison.helper.ts index 6f75bc8359..5ad174d907 100644 --- a/packages/@o3r/extractors/src/core/comparator/metadata-comparison.helper.ts +++ b/packages/@o3r/extractors/src/core/comparator/metadata-comparison.helper.ts @@ -1,54 +1,54 @@ import { existsSync, promises, - readFileSync + readFileSync, } from 'node:fs'; import { - EOL + EOL, } from 'node:os'; import { join, - posix + posix, } from 'node:path'; import type { BuilderContext, - BuilderOutput + BuilderOutput, } from '@angular-devkit/architect'; import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import { getPackageManagerInfo, O3rCliError, type PackageManagerOptions, type SupportedPackageManagers, - type WorkspaceSchema + type WorkspaceSchema, } from '@o3r/schematics'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { coerce, Range, - satisfies + satisfies, } from 'semver'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - CmsMetadataData + CmsMetadataData, } from '../../interfaces'; import type { MetadataComparator, MigrationData, MigrationFile, - MigrationMetadataCheckBuilderOptions + MigrationMetadataCheckBuilderOptions, } from './metadata-comparator.interface'; import { getFilesFromRegistry, getLatestMigrationMetadataFile, getLocalMetadataFile, - getVersionRangeFromLatestVersion + getVersionRangeFromLatestVersion, } from './metadata-files.helper'; function checkMetadataFile( diff --git a/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.spec.ts b/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.spec.ts index 3ff31fc0af..d1deb4e580 100644 --- a/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.spec.ts +++ b/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.spec.ts @@ -29,7 +29,7 @@ jest.mock('./package-managers-extractors/yarn2-file-extractor.helper', () => ({ import { getFilesFromRegistry, getLatestMigrationMetadataFile, - getVersionRangeFromLatestVersion + getVersionRangeFromLatestVersion, } from './metadata-files.helper'; const getFakePath = (fileName: string) => `path/${fileName}`; diff --git a/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.ts b/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.ts index 07834acdd7..33fea46446 100644 --- a/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.ts +++ b/packages/@o3r/extractors/src/core/comparator/metadata-files.helper.ts @@ -1,15 +1,15 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import { - basename + basename, } from 'node:path'; import { O3rCliError, - type SupportedPackageManagers + type SupportedPackageManagers, } from '@o3r/schematics'; import type { - MigrationCheckGranularity + MigrationCheckGranularity, } from './metadata-comparator.interface'; /** diff --git a/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/custom-npm-semver-resolver.ts b/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/custom-npm-semver-resolver.ts index 50de5d4fe3..496f9c4502 100644 --- a/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/custom-npm-semver-resolver.ts +++ b/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/custom-npm-semver-resolver.ts @@ -3,17 +3,17 @@ import { miscUtils, Package, ResolveOptions, - structUtils + structUtils, } from '@yarnpkg/core'; import { npmHttpUtils, NpmSemverFetcher, - NpmSemverResolver + NpmSemverResolver, } from '@yarnpkg/plugin-npm'; import { Range, SemVer, - valid + valid, } from 'semver'; /** diff --git a/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/npm-file-extractor.helper.ts b/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/npm-file-extractor.helper.ts index 0f03247392..03ed56dc82 100644 --- a/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/npm-file-extractor.helper.ts +++ b/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/npm-file-extractor.helper.ts @@ -1,24 +1,24 @@ import { spawnSync, SpawnSyncOptionsWithStringEncoding, - SpawnSyncReturns + SpawnSyncReturns, } from 'node:child_process'; import { - randomBytes + randomBytes, } from 'node:crypto'; import { existsSync, mkdirSync, readFileSync, - rmSync + rmSync, } from 'node:fs'; import { - tmpdir + tmpdir, } from 'node:os'; import { join, posix, - sep + sep, } from 'node:path'; function runAndThrowOnError(command: string, spawnOptions: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns { diff --git a/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/yarn2-file-extractor.helper.ts b/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/yarn2-file-extractor.helper.ts index 876102b50a..874cbecf7d 100644 --- a/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/yarn2-file-extractor.helper.ts +++ b/packages/@o3r/extractors/src/core/comparator/package-managers-extractors/yarn2-file-extractor.helper.ts @@ -1,8 +1,8 @@ import { - join + join, } from 'node:path'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { Cache, @@ -18,14 +18,14 @@ import { ResolveOptions, Resolver, structUtils, - ThrowReport + ThrowReport, } from '@yarnpkg/core'; import { - npath + npath, } from '@yarnpkg/fslib'; import yarnNpmPlugin from '@yarnpkg/plugin-npm'; import { - CustomNpmSemverResolver + CustomNpmSemverResolver, } from './custom-npm-semver-resolver'; // Class copied from https://github.com/yarnpkg/berry/blob/master/packages/yarnpkg-core/sources/MultiResolver.ts diff --git a/packages/@o3r/extractors/src/core/converter.ts b/packages/@o3r/extractors/src/core/converter.ts index aa04d8368b..71996ab78e 100644 --- a/packages/@o3r/extractors/src/core/converter.ts +++ b/packages/@o3r/extractors/src/core/converter.ts @@ -1,5 +1,5 @@ import type { - Output + Output, } from '@o3r/core'; /** diff --git a/packages/@o3r/extractors/src/core/extractor.ts b/packages/@o3r/extractors/src/core/extractor.ts index cad9eaf0f2..4f09eb903b 100644 --- a/packages/@o3r/extractors/src/core/extractor.ts +++ b/packages/@o3r/extractors/src/core/extractor.ts @@ -1,8 +1,8 @@ import type { - Output + Output, } from '@o3r/core'; import type { - Documentation + Documentation, } from '../interfaces'; /** diff --git a/packages/@o3r/extractors/src/core/formats/json/json-schema.ts b/packages/@o3r/extractors/src/core/formats/json/json-schema.ts index d1c8405f63..c08e5bb2fe 100644 --- a/packages/@o3r/extractors/src/core/formats/json/json-schema.ts +++ b/packages/@o3r/extractors/src/core/formats/json/json-schema.ts @@ -1,8 +1,8 @@ import type { - Output + Output, } from '@o3r/core'; import { - JSONDefinition + JSONDefinition, } from './json-definition'; export interface JSONSchema extends Output { diff --git a/packages/@o3r/extractors/src/core/parser-factory.ts b/packages/@o3r/extractors/src/core/parser-factory.ts index 576033dc06..5c1dc7dba0 100644 --- a/packages/@o3r/extractors/src/core/parser-factory.ts +++ b/packages/@o3r/extractors/src/core/parser-factory.ts @@ -1,5 +1,5 @@ import { - ParserConfig + ParserConfig, } from '../interfaces/parser/parser-config'; /** diff --git a/packages/@o3r/extractors/src/core/wrapper.ts b/packages/@o3r/extractors/src/core/wrapper.ts index e691c9142c..d7f7514069 100644 --- a/packages/@o3r/extractors/src/core/wrapper.ts +++ b/packages/@o3r/extractors/src/core/wrapper.ts @@ -1,20 +1,20 @@ import { - execFileSync + execFileSync, } from 'node:child_process'; import { existsSync, - promises + promises, } from 'node:fs'; import * as path from 'node:path'; import { - getPackageManagerRunner + getPackageManagerRunner, } from '@o3r/schematics'; import type { - BuilderWrapper + BuilderWrapper, } from '@o3r/telemetry'; import { prompt, - Question + Question, } from 'inquirer'; const noopBuilderWrapper: BuilderWrapper = (fn) => fn; diff --git a/packages/@o3r/extractors/src/interfaces/common/common-documentation.ts b/packages/@o3r/extractors/src/interfaces/common/common-documentation.ts index 5c4ebebb0e..73b534f3bd 100644 --- a/packages/@o3r/extractors/src/interfaces/common/common-documentation.ts +++ b/packages/@o3r/extractors/src/interfaces/common/common-documentation.ts @@ -1,5 +1,5 @@ import { - CommonDocumentationNode + CommonDocumentationNode, } from './common-documentation-node'; /** diff --git a/packages/@o3r/extractors/src/interfaces/documentation-node.ts b/packages/@o3r/extractors/src/interfaces/documentation-node.ts index 662581acfc..be75524d22 100644 --- a/packages/@o3r/extractors/src/interfaces/documentation-node.ts +++ b/packages/@o3r/extractors/src/interfaces/documentation-node.ts @@ -1,11 +1,11 @@ import type { - DeclarationReflection + DeclarationReflection, } from 'typedoc'; import { - CommonDocumentationNode + CommonDocumentationNode, } from './common'; import { - DocumentationNodeType + DocumentationNodeType, } from './enums'; /** diff --git a/packages/@o3r/extractors/src/interfaces/documentation.ts b/packages/@o3r/extractors/src/interfaces/documentation.ts index e347f9ea42..abd833acc7 100644 --- a/packages/@o3r/extractors/src/interfaces/documentation.ts +++ b/packages/@o3r/extractors/src/interfaces/documentation.ts @@ -1,8 +1,8 @@ import { - CommonDocumentation + CommonDocumentation, } from './common'; import { - DocumentationNode + DocumentationNode, } from './documentation-node'; /** diff --git a/packages/@o3r/extractors/src/interfaces/entities/base-entity.ts b/packages/@o3r/extractors/src/interfaces/entities/base-entity.ts index 9872e23280..48b3c9a44e 100644 --- a/packages/@o3r/extractors/src/interfaces/entities/base-entity.ts +++ b/packages/@o3r/extractors/src/interfaces/entities/base-entity.ts @@ -1,5 +1,5 @@ import { - DocumentationNode + DocumentationNode, } from '../documentation-node'; /** diff --git a/packages/@o3r/extractors/src/interfaces/entities/component-entity.ts b/packages/@o3r/extractors/src/interfaces/entities/component-entity.ts index 45c53a5d66..51486bfd6d 100644 --- a/packages/@o3r/extractors/src/interfaces/entities/component-entity.ts +++ b/packages/@o3r/extractors/src/interfaces/entities/component-entity.ts @@ -1,8 +1,8 @@ import { - DocumentationNode + DocumentationNode, } from '../documentation-node'; import { - BaseEntity + BaseEntity, } from './base-entity'; /** diff --git a/packages/@o3r/extractors/src/interfaces/parser/documentation-factory.ts b/packages/@o3r/extractors/src/interfaces/parser/documentation-factory.ts index 25b0f4a6e0..b99f3a8b1c 100644 --- a/packages/@o3r/extractors/src/interfaces/parser/documentation-factory.ts +++ b/packages/@o3r/extractors/src/interfaces/parser/documentation-factory.ts @@ -1,8 +1,8 @@ import { - Documentation + Documentation, } from '../documentation'; import { - DocumentationOptions + DocumentationOptions, } from './documentation-options'; /** diff --git a/packages/@o3r/extractors/src/interfaces/parser/parser-config.ts b/packages/@o3r/extractors/src/interfaces/parser/parser-config.ts index a12c0418f1..6bde2f7dcd 100644 --- a/packages/@o3r/extractors/src/interfaces/parser/parser-config.ts +++ b/packages/@o3r/extractors/src/interfaces/parser/parser-config.ts @@ -1,8 +1,8 @@ import { - DocumentationOptions + DocumentationOptions, } from './documentation-options'; import { - FileOptions + FileOptions, } from './file-options'; /** diff --git a/packages/@o3r/extractors/src/utils/common.ts b/packages/@o3r/extractors/src/utils/common.ts index 57b80ffec9..24f7de69fa 100644 --- a/packages/@o3r/extractors/src/utils/common.ts +++ b/packages/@o3r/extractors/src/utils/common.ts @@ -1,15 +1,15 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import type { DeclarationReflection, - ReferenceType + ReferenceType, } from 'typedoc'; import type { CmsMetadataData, - DocumentationNode + DocumentationNode, } from '../interfaces'; /** diff --git a/packages/@o3r/extractors/src/utils/config-doc.spec.ts b/packages/@o3r/extractors/src/utils/config-doc.spec.ts index 11e082ee3b..1f418c5913 100644 --- a/packages/@o3r/extractors/src/utils/config-doc.spec.ts +++ b/packages/@o3r/extractors/src/utils/config-doc.spec.ts @@ -1,6 +1,6 @@ import { getCategoriesFromDocText, - getWidgetInformationFromDocComment + getWidgetInformationFromDocComment, } from './config-doc'; describe('config doc', () => { diff --git a/packages/@o3r/extractors/src/utils/config-doc.ts b/packages/@o3r/extractors/src/utils/config-doc.ts index 65e386966e..ff2522a93c 100644 --- a/packages/@o3r/extractors/src/utils/config-doc.ts +++ b/packages/@o3r/extractors/src/utils/config-doc.ts @@ -3,18 +3,18 @@ import { TSDocConfiguration, TSDocParser, TSDocTagDefinition, - TSDocTagSyntaxKind + TSDocTagSyntaxKind, } from '@microsoft/tsdoc'; import type { CategoryDescription, ConfigPropertyWidget, - ConfigPropertyWidgetParameters + ConfigPropertyWidgetParameters, } from '@o3r/core'; import * as ts from 'typescript'; import { getInlineBlockTagContentFromDocComment, getInlineSummaryFromDocComment, - getTsDocTextFromNode + getTsDocTextFromNode, } from './tsdoc'; /** Configuration information extracted from the TSDoc */ diff --git a/packages/@o3r/extractors/src/utils/parser-factory.ts b/packages/@o3r/extractors/src/utils/parser-factory.ts index 09ac9c1df6..3c3d690363 100644 --- a/packages/@o3r/extractors/src/utils/parser-factory.ts +++ b/packages/@o3r/extractors/src/utils/parser-factory.ts @@ -1,8 +1,8 @@ import type { - ParserFactory + ParserFactory, } from '../core'; import type { - ParserConfig + ParserConfig, } from '../interfaces'; /** diff --git a/packages/@o3r/extractors/src/utils/tsdoc.ts b/packages/@o3r/extractors/src/utils/tsdoc.ts index 2caf956bdd..f7ae585916 100644 --- a/packages/@o3r/extractors/src/utils/tsdoc.ts +++ b/packages/@o3r/extractors/src/utils/tsdoc.ts @@ -1,7 +1,7 @@ import { DocComment, DocExcerpt, - DocNode + DocNode, } from '@microsoft/tsdoc'; import * as ts from 'typescript'; diff --git a/packages/@o3r/extractors/src/utils/validator.ts b/packages/@o3r/extractors/src/utils/validator.ts index 77d4e4c90a..b0f440c7f0 100644 --- a/packages/@o3r/extractors/src/utils/validator.ts +++ b/packages/@o3r/extractors/src/utils/validator.ts @@ -1,5 +1,5 @@ import { - Validator + Validator, } from 'jsonschema'; /** diff --git a/packages/@o3r/forms/eslint.local.config.mjs b/packages/@o3r/forms/eslint.local.config.mjs index bb1b66bebf..2bfa2bbda7 100644 --- a/packages/@o3r/forms/eslint.local.config.mjs +++ b/packages/@o3r/forms/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/forms/schematics/ng-add/index.ts b/packages/@o3r/forms/schematics/ng-add/index.ts index f7cfb2dd0a..26a868e5b1 100644 --- a/packages/@o3r/forms/schematics/ng-add/index.ts +++ b/packages/@o3r/forms/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/forms/schematics/ng-add/schema.ts b/packages/@o3r/forms/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/forms/schematics/ng-add/schema.ts +++ b/packages/@o3r/forms/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/forms/src/annotations/async-input.ts b/packages/@o3r/forms/src/annotations/async-input.ts index d504895746..aa7f817aa9 100644 --- a/packages/@o3r/forms/src/annotations/async-input.ts +++ b/packages/@o3r/forms/src/annotations/async-input.ts @@ -1,9 +1,9 @@ import { BehaviorSubject, - Observable + Observable, } from 'rxjs'; import { - switchMap + switchMap, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/forms/src/core/custom-validation.ts b/packages/@o3r/forms/src/core/custom-validation.ts index 33f4ca749a..435795b1cd 100644 --- a/packages/@o3r/forms/src/core/custom-validation.ts +++ b/packages/@o3r/forms/src/core/custom-validation.ts @@ -1,11 +1,11 @@ import { - AbstractControl + AbstractControl, } from '@angular/forms'; import { - Observable + Observable, } from 'rxjs'; import { - ErrorMessageObject + ErrorMessageObject, } from './errors'; /** diff --git a/packages/@o3r/forms/src/core/extended-validator.ts b/packages/@o3r/forms/src/core/extended-validator.ts index 43107c7aad..f0ba272b4f 100644 --- a/packages/@o3r/forms/src/core/extended-validator.ts +++ b/packages/@o3r/forms/src/core/extended-validator.ts @@ -2,7 +2,7 @@ import { AbstractControl, ValidationErrors, Validator, - ValidatorFn + ValidatorFn, } from '@angular/forms'; export abstract class ExtendedValidator implements Validator { diff --git a/packages/@o3r/forms/src/core/flat-errors.ts b/packages/@o3r/forms/src/core/flat-errors.ts index 00e36b29f8..38a10ee47d 100644 --- a/packages/@o3r/forms/src/core/flat-errors.ts +++ b/packages/@o3r/forms/src/core/flat-errors.ts @@ -1,8 +1,8 @@ import { - ValidationErrors + ValidationErrors, } from '@angular/forms'; import { - ErrorMessageObject + ErrorMessageObject, } from './errors'; /** Flat representation of Angular's ValidationError */ diff --git a/packages/@o3r/forms/src/core/helpers.spec.ts b/packages/@o3r/forms/src/core/helpers.spec.ts index 4a4319ad59..8bb6a78b63 100644 --- a/packages/@o3r/forms/src/core/helpers.spec.ts +++ b/packages/@o3r/forms/src/core/helpers.spec.ts @@ -1,11 +1,11 @@ import { FormControl, - FormGroup + FormGroup, } from '@angular/forms'; import { getFlatControlErrors, markAllControlsDirtyAndTouched, - markAllControlsPristineAndUntouched + markAllControlsPristineAndUntouched, } from './helpers'; describe('Form helpers', () => { diff --git a/packages/@o3r/forms/src/core/helpers.ts b/packages/@o3r/forms/src/core/helpers.ts index 6cf386c530..45232e1656 100644 --- a/packages/@o3r/forms/src/core/helpers.ts +++ b/packages/@o3r/forms/src/core/helpers.ts @@ -1,11 +1,11 @@ import { AbstractControl, FormGroup, - ValidationErrors + ValidationErrors, } from '@angular/forms'; import { ControlFlatErrors, - FlatError + FlatError, } from './flat-errors'; /** diff --git a/packages/@o3r/forms/src/core/submit.ts b/packages/@o3r/forms/src/core/submit.ts index e4d531f6f9..2983fadab0 100644 --- a/packages/@o3r/forms/src/core/submit.ts +++ b/packages/@o3r/forms/src/core/submit.ts @@ -1,8 +1,8 @@ import { - AbstractControl + AbstractControl, } from '@angular/forms'; import { - Observable + Observable, } from 'rxjs'; /** diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.actions.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.actions.ts index 171b012d2d..9a8f6e8d6f 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.actions.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.actions.ts @@ -1,12 +1,12 @@ import { createAction, - props + props, } from '@ngrx/store'; import { - SetEntitiesActionPayload + SetEntitiesActionPayload, } from '@o3r/core'; import { - FormError + FormError, } from '../../core/index'; /** StateDetailsActions */ diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.module.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.module.ts index a2118e6072..7597b5f63b 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.module.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - formErrorMessagesReducer + formErrorMessagesReducer, } from './form-error-messages.reducer'; import { FORM_ERROR_MESSAGES_STORE_NAME, - FormErrorMessagesState + FormErrorMessagesState, } from './form-error-messages.state'; /** Token of the FormErrorMessages reducer */ diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.spec.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.spec.ts index 57d483b788..e757c242d0 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.spec.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.spec.ts @@ -1,10 +1,10 @@ import * as actions from './form-error-messages.actions'; import { formErrorMessagesInitialState, - formErrorMessagesReducer + formErrorMessagesReducer, } from './form-error-messages.reducer'; import { - FormErrorMessagesState + FormErrorMessagesState, } from './form-error-messages.state'; describe('FormErrorMessages Store reducer', () => { diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.ts index 81367b9780..64f2503bb8 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.reducer.ts @@ -1,17 +1,17 @@ import { createEntityAdapter, - EntityAdapter + EntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './form-error-messages.actions'; import { FormErrorMessagesState, - FormErrorModel + FormErrorModel, } from './form-error-messages.state'; /** diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.spec.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.spec.ts index cde7f0e012..641d4b16f1 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.spec.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.spec.ts @@ -1,7 +1,7 @@ import { ElementError, ErrorMessageObject, - FormError + FormError, } from '../../core/index'; import * as selectors from './form-error-messages.selectors'; diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.ts index 34a08d1a88..4471fa7b61 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.selectors.ts @@ -1,17 +1,17 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { ElementError, - ErrorMessageObject + ErrorMessageObject, } from '../../core/index'; import { - formErrorMessagesAdapter + formErrorMessagesAdapter, } from './form-error-messages.reducer'; import { FORM_ERROR_MESSAGES_STORE_NAME, - FormErrorMessagesState + FormErrorMessagesState, } from './form-error-messages.state'; const { selectIds, selectEntities, selectAll, selectTotal } = formErrorMessagesAdapter.getSelectors(); diff --git a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.state.ts b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.state.ts index 53f05570a8..78dd3c4538 100644 --- a/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.state.ts +++ b/packages/@o3r/forms/src/stores/form-error-messages/form-error-messages.state.ts @@ -1,8 +1,8 @@ import { - EntityState + EntityState, } from '@ngrx/entity'; import { - FormError + FormError, } from '../../core/index'; /** diff --git a/packages/@o3r/forms/src/validators/date/date-validators.module.ts b/packages/@o3r/forms/src/validators/date/date-validators.module.ts index cd80343081..63b6787b5d 100644 --- a/packages/@o3r/forms/src/validators/date/date-validators.module.ts +++ b/packages/@o3r/forms/src/validators/date/date-validators.module.ts @@ -1,14 +1,14 @@ import { - CommonModule + CommonModule, } from '@angular/common'; import { - NgModule + NgModule, } from '@angular/core'; import { - MaxDateValidator + MaxDateValidator, } from './max-date.directive'; import { - MinDateValidator + MinDateValidator, } from './min-date.directive'; @NgModule({ diff --git a/packages/@o3r/forms/src/validators/date/max-date.directive.spec.ts b/packages/@o3r/forms/src/validators/date/max-date.directive.spec.ts index fc6fb5ae62..3157e98cfe 100644 --- a/packages/@o3r/forms/src/validators/date/max-date.directive.spec.ts +++ b/packages/@o3r/forms/src/validators/date/max-date.directive.spec.ts @@ -1,11 +1,11 @@ import { - utils + utils, } from '@ama-sdk/core'; import { - FormControl + FormControl, } from '@angular/forms'; import { - MaxDateValidator + MaxDateValidator, } from './max-date.directive'; describe('Max Date', () => { diff --git a/packages/@o3r/forms/src/validators/date/max-date.directive.ts b/packages/@o3r/forms/src/validators/date/max-date.directive.ts index 4f590bfc61..63a895df3c 100644 --- a/packages/@o3r/forms/src/validators/date/max-date.directive.ts +++ b/packages/@o3r/forms/src/validators/date/max-date.directive.ts @@ -1,19 +1,19 @@ import { - utils + utils, } from '@ama-sdk/core'; import { Directive, forwardRef, Input, OnChanges, - SimpleChanges + SimpleChanges, } from '@angular/core'; import { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator, - ValidatorFn + ValidatorFn, } from '@angular/forms'; /** diff --git a/packages/@o3r/forms/src/validators/date/min-date.directive.spec.ts b/packages/@o3r/forms/src/validators/date/min-date.directive.spec.ts index c87416237d..d7c78747e2 100644 --- a/packages/@o3r/forms/src/validators/date/min-date.directive.spec.ts +++ b/packages/@o3r/forms/src/validators/date/min-date.directive.spec.ts @@ -1,11 +1,11 @@ import { - utils + utils, } from '@ama-sdk/core'; import { - FormControl + FormControl, } from '@angular/forms'; import { - MinDateValidator + MinDateValidator, } from './min-date.directive'; describe('Min Date', () => { diff --git a/packages/@o3r/forms/src/validators/date/min-date.directive.ts b/packages/@o3r/forms/src/validators/date/min-date.directive.ts index 92d140fd3e..79fd2db465 100644 --- a/packages/@o3r/forms/src/validators/date/min-date.directive.ts +++ b/packages/@o3r/forms/src/validators/date/min-date.directive.ts @@ -1,19 +1,19 @@ import { - utils + utils, } from '@ama-sdk/core'; import { Directive, forwardRef, Input, OnChanges, - SimpleChanges + SimpleChanges, } from '@angular/core'; import { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator, - ValidatorFn + ValidatorFn, } from '@angular/forms'; /** diff --git a/packages/@o3r/forms/src/validators/number/max.directive.ts b/packages/@o3r/forms/src/validators/number/max.directive.ts index d6335d9378..8a326b6a02 100644 --- a/packages/@o3r/forms/src/validators/number/max.directive.ts +++ b/packages/@o3r/forms/src/validators/number/max.directive.ts @@ -3,7 +3,7 @@ import { forwardRef, Input, OnChanges, - SimpleChanges + SimpleChanges, } from '@angular/core'; import { AbstractControl, @@ -11,7 +11,7 @@ import { ValidationErrors, Validator, ValidatorFn, - Validators + Validators, } from '@angular/forms'; /** diff --git a/packages/@o3r/forms/src/validators/number/min.directive.ts b/packages/@o3r/forms/src/validators/number/min.directive.ts index c9f3eb26a3..7094d89d4e 100644 --- a/packages/@o3r/forms/src/validators/number/min.directive.ts +++ b/packages/@o3r/forms/src/validators/number/min.directive.ts @@ -3,7 +3,7 @@ import { forwardRef, Input, OnChanges, - SimpleChanges + SimpleChanges, } from '@angular/core'; import { AbstractControl, @@ -11,7 +11,7 @@ import { ValidationErrors, Validator, ValidatorFn, - Validators + Validators, } from '@angular/forms'; /** diff --git a/packages/@o3r/forms/src/validators/number/number-validators.module.ts b/packages/@o3r/forms/src/validators/number/number-validators.module.ts index df3393edf5..92d541929a 100644 --- a/packages/@o3r/forms/src/validators/number/number-validators.module.ts +++ b/packages/@o3r/forms/src/validators/number/number-validators.module.ts @@ -1,14 +1,14 @@ import { - CommonModule + CommonModule, } from '@angular/common'; import { - NgModule + NgModule, } from '@angular/core'; import { - MaxValidator + MaxValidator, } from './max.directive'; import { - MinValidator + MinValidator, } from './min.directive'; @NgModule({ diff --git a/packages/@o3r/localization/builders/helpers/localization.generator.ts b/packages/@o3r/localization/builders/helpers/localization.generator.ts index 329997a409..7cfc3dbc5d 100644 --- a/packages/@o3r/localization/builders/helpers/localization.generator.ts +++ b/packages/@o3r/localization/builders/helpers/localization.generator.ts @@ -1,23 +1,23 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - logging + logging, } from '@angular-devkit/core'; import { getLibraryCmsMetadata, - getLocalizationFileFromAngularElement + getLocalizationFileFromAngularElement, } from '@o3r/extractors'; import type { JSONLocalization, - LocalizationMetadata + LocalizationMetadata, } from '@o3r/localization'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as glob from 'globby'; import * as ts from 'typescript'; import type { - LocalizationExtractorBuilderSchema + LocalizationExtractorBuilderSchema, } from '../localization-extractor/schema'; /** List of Angular decorator to look for */ @@ -50,7 +50,7 @@ export interface LocalizationJsonFile { } type LocalizationJsonFileContent = LocalizationJsonFile & { - '$schema'?: string; + $schema?: string; }; /** Localization file mapping */ diff --git a/packages/@o3r/localization/builders/i18n/index.spec.ts b/packages/@o3r/localization/builders/i18n/index.spec.ts index f617a9dbd9..838d990cad 100644 --- a/packages/@o3r/localization/builders/i18n/index.spec.ts +++ b/packages/@o3r/localization/builders/i18n/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - I18nBuilderSchema + I18nBuilderSchema, } from './schema'; describe('Localization i18n Builder', () => { diff --git a/packages/@o3r/localization/builders/i18n/index.ts b/packages/@o3r/localization/builders/i18n/index.ts index 931d6f64fa..cfcf9c3127 100644 --- a/packages/@o3r/localization/builders/i18n/index.ts +++ b/packages/@o3r/localization/builders/i18n/index.ts @@ -3,16 +3,16 @@ import * as path from 'node:path'; import { BuilderContext, BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '@o3r/extractors'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { - I18nBuilderSchema + I18nBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled((options: I18nBuilderSchema, context: BuilderContext): BuilderOutput => { diff --git a/packages/@o3r/localization/builders/i18n/schema.ts b/packages/@o3r/localization/builders/i18n/schema.ts index aa3d8e8180..edd9f5dd34 100644 --- a/packages/@o3r/localization/builders/i18n/schema.ts +++ b/packages/@o3r/localization/builders/i18n/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; export interface LocalizationConfig extends JsonObject { diff --git a/packages/@o3r/localization/builders/localization-extractor/index.spec.ts b/packages/@o3r/localization/builders/localization-extractor/index.spec.ts index 072bb6ab28..0f14033105 100644 --- a/packages/@o3r/localization/builders/localization-extractor/index.spec.ts +++ b/packages/@o3r/localization/builders/localization-extractor/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - LocalizationExtractorBuilderSchema + LocalizationExtractorBuilderSchema, } from './schema'; describe('Localization Extractor Builder', () => { diff --git a/packages/@o3r/localization/builders/localization-extractor/index.ts b/packages/@o3r/localization/builders/localization-extractor/index.ts index 7fa578bf8b..da59111ac3 100644 --- a/packages/@o3r/localization/builders/localization-extractor/index.ts +++ b/packages/@o3r/localization/builders/localization-extractor/index.ts @@ -2,29 +2,29 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { createBuilderWithMetricsIfInstalled, - validateJson + validateJson, } from '@o3r/extractors'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as chokidar from 'chokidar'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { LibraryMetadataMap, LocalizationExtractor, - LocalizationFileMap + LocalizationFileMap, } from '../helpers/localization.generator'; import { - LocalizationExtractorBuilderSchema + LocalizationExtractorBuilderSchema, } from './schema'; import { - validators + validators, } from './validations'; export * from './schema'; diff --git a/packages/@o3r/localization/builders/localization-extractor/schema.ts b/packages/@o3r/localization/builders/localization-extractor/schema.ts index 32be6b2c54..ba13b9a4d9 100644 --- a/packages/@o3r/localization/builders/localization-extractor/schema.ts +++ b/packages/@o3r/localization/builders/localization-extractor/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; export interface LocalizationExtractorBuilderSchema extends JsonObject { diff --git a/packages/@o3r/localization/builders/localization/index.spec.ts b/packages/@o3r/localization/builders/localization/index.spec.ts index 89c1c101a2..5a097ad204 100644 --- a/packages/@o3r/localization/builders/localization/index.spec.ts +++ b/packages/@o3r/localization/builders/localization/index.spec.ts @@ -2,20 +2,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { Architect, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - LocalizationBuilderSchema + LocalizationBuilderSchema, } from './schema'; describe('Localization Builder', () => { diff --git a/packages/@o3r/localization/builders/localization/index.ts b/packages/@o3r/localization/builders/localization/index.ts index 629767ae7a..9aba203b56 100644 --- a/packages/@o3r/localization/builders/localization/index.ts +++ b/packages/@o3r/localization/builders/localization/index.ts @@ -4,36 +4,36 @@ import { BuilderContext, BuilderOutput, createBuilder, - Target + Target, } from '@angular-devkit/architect'; import { - LogEntry + LogEntry, } from '@angular-devkit/core/src/logger'; import { - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '@o3r/extractors'; import type { - JSONLocalization + JSONLocalization, } from '@o3r/localization'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { firstValueFrom, from, - merge + merge, } from 'rxjs'; import { - filter + filter, } from 'rxjs/operators'; import type { - LocalizationExtractorBuilderSchema + LocalizationExtractorBuilderSchema, } from '../localization-extractor/schema'; import { - LocalizationBuilderSchema + LocalizationBuilderSchema, } from './schema'; /** Maximum number of steps */ diff --git a/packages/@o3r/localization/builders/localization/schema.ts b/packages/@o3r/localization/builders/localization/schema.ts index 4994a2c9e2..3c36c4b1fe 100644 --- a/packages/@o3r/localization/builders/localization/schema.ts +++ b/packages/@o3r/localization/builders/localization/schema.ts @@ -1,5 +1,5 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; export interface LocalizationBuilderSchema extends JsonObject { diff --git a/packages/@o3r/localization/builders/metadata-check/helpers/localization-metadata-comparison.helper.ts b/packages/@o3r/localization/builders/metadata-check/helpers/localization-metadata-comparison.helper.ts index 803cd8ef9c..a817fbcc2f 100644 --- a/packages/@o3r/localization/builders/metadata-check/helpers/localization-metadata-comparison.helper.ts +++ b/packages/@o3r/localization/builders/metadata-check/helpers/localization-metadata-comparison.helper.ts @@ -1,9 +1,9 @@ import type { - MetadataComparator + MetadataComparator, } from '@o3r/extractors'; import type { JSONLocalization, - LocalizationMetadata + LocalizationMetadata, } from '@o3r/localization'; /** diff --git a/packages/@o3r/localization/builders/metadata-check/index.it.spec.ts b/packages/@o3r/localization/builders/metadata-check/index.it.spec.ts index 0ceaf6eab7..5a768b6771 100644 --- a/packages/@o3r/localization/builders/metadata-check/index.it.spec.ts +++ b/packages/@o3r/localization/builders/metadata-check/index.it.spec.ts @@ -8,22 +8,22 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { existsSync, promises, - readFileSync + readFileSync, } from 'node:fs'; import { dirname, - join + join, } from 'node:path'; import type { - MigrationFile + MigrationFile, } from '@o3r/extractors'; import type { JSONLocalization, - LocalizationMetadata + LocalizationMetadata, } from '@o3r/localization'; import { getExternalDependenciesVersionRange, - getPackageManager + getPackageManager, } from '@o3r/schematics'; import { getDefaultExecSyncOptions, @@ -31,13 +31,13 @@ import { packageManagerAdd, packageManagerExec, packageManagerVersion, - publishToVerdaccio + publishToVerdaccio, } from '@o3r/test-helpers'; import { - inc + inc, } from 'semver'; import type { - MigrationLocalizationMetadata + MigrationLocalizationMetadata, } from './helpers/localization-metadata-comparison.helper'; const baseVersion = '1.2.0'; @@ -49,12 +49,12 @@ const defaultMigrationData: MigrationFile = { version, changes: [ { // Rename key name - 'contentType': 'LOCALIZATION', - 'before': { - 'key': 'localization.key1' + contentType: 'LOCALIZATION', + before: { + key: 'localization.key1' }, - 'after': { - 'key': 'new-localization.key1' + after: { + key: 'new-localization.key1' } } ] diff --git a/packages/@o3r/localization/builders/metadata-check/index.ts b/packages/@o3r/localization/builders/metadata-check/index.ts index 4ef5a81466..42a355fd23 100644 --- a/packages/@o3r/localization/builders/metadata-check/index.ts +++ b/packages/@o3r/localization/builders/metadata-check/index.ts @@ -1,16 +1,16 @@ import { type BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { checkMetadataBuilder, - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '@o3r/extractors'; import { - localizationMetadataComparator + localizationMetadataComparator, } from './helpers'; import type { - LocalizationMigrationMetadataCheckBuilderSchema + LocalizationMigrationMetadataCheckBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled((options, context): Promise => { diff --git a/packages/@o3r/localization/builders/metadata-check/schema.ts b/packages/@o3r/localization/builders/metadata-check/schema.ts index 9ee680aa4b..dfb89ed18d 100644 --- a/packages/@o3r/localization/builders/metadata-check/schema.ts +++ b/packages/@o3r/localization/builders/metadata-check/schema.ts @@ -1,5 +1,5 @@ import type { - MigrationMetadataCheckBuilderOptions + MigrationMetadataCheckBuilderOptions, } from '@o3r/extractors'; /** Migration metadata check builder schema */ diff --git a/packages/@o3r/localization/eslint.local.config.mjs b/packages/@o3r/localization/eslint.local.config.mjs index e8ba05f5eb..3a284cde9f 100644 --- a/packages/@o3r/localization/eslint.local.config.mjs +++ b/packages/@o3r/localization/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/localization/schematics/add-localization-key/index.spec.ts b/packages/@o3r/localization/schematics/add-localization-key/index.spec.ts index dba3e28799..25819d8603 100644 --- a/packages/@o3r/localization/schematics/add-localization-key/index.spec.ts +++ b/packages/@o3r/localization/schematics/add-localization-key/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddLocalizationKeyFn + ngAddLocalizationKeyFn, } from './index'; jest.mock('node:readline', () => ({ diff --git a/packages/@o3r/localization/schematics/add-localization-key/index.ts b/packages/@o3r/localization/schematics/add-localization-key/index.ts index b647706ac9..3dbe606a44 100644 --- a/packages/@o3r/localization/schematics/add-localization-key/index.ts +++ b/packages/@o3r/localization/schematics/add-localization-key/index.ts @@ -1,9 +1,9 @@ import { dirname, - posix + posix, } from 'node:path'; import { - askConfirmation + askConfirmation, } from '@angular/cli/src/utilities/prompt'; import { chain, @@ -12,7 +12,7 @@ import { Rule, schematic, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { applyEsLintFix, @@ -22,11 +22,11 @@ import { getO3rComponentInfoOrThrowIfNotFound, isO3rClassComponent, NoOtterComponent, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as ts from 'typescript'; import type { - NgAddLocalizationKeySchematicsSchema + NgAddLocalizationKeySchematicsSchema, } from './schema'; class NoLocalizationArchitecture extends Error { diff --git a/packages/@o3r/localization/schematics/add-localization-key/schema.ts b/packages/@o3r/localization/schematics/add-localization-key/schema.ts index 89705e3274..b03e4845f2 100644 --- a/packages/@o3r/localization/schematics/add-localization-key/schema.ts +++ b/packages/@o3r/localization/schematics/add-localization-key/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddLocalizationKeySchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/localization/schematics/cms-adapter/index.ts b/packages/@o3r/localization/schematics/cms-adapter/index.ts index a7c9c1784a..995ad04b3f 100644 --- a/packages/@o3r/localization/schematics/cms-adapter/index.ts +++ b/packages/@o3r/localization/schematics/cms-adapter/index.ts @@ -4,13 +4,13 @@ import { noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, getPackageManagerRunner, getWorkspaceConfig, - readPackageJson + readPackageJson, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/localization/schematics/index.it.spec.ts b/packages/@o3r/localization/schematics/index.it.spec.ts index 45f472b1cf..a5b10ea36a 100644 --- a/packages/@o3r/localization/schematics/index.it.spec.ts +++ b/packages/@o3r/localization/schematics/index.it.spec.ts @@ -12,7 +12,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add otter localization', () => { diff --git a/packages/@o3r/localization/schematics/localization-base/index.ts b/packages/@o3r/localization/schematics/localization-base/index.ts index 14be653461..00a960a173 100644 --- a/packages/@o3r/localization/schematics/localization-base/index.ts +++ b/packages/@o3r/localization/schematics/localization-base/index.ts @@ -12,7 +12,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, @@ -29,21 +29,21 @@ import { insertImportToModuleFile as o3rInsertImportToModuleFile, readPackageJson, setupDependencies, - writeAngularJson + writeAngularJson, } from '@o3r/schematics'; import { addRootImport, - addRootProvider + addRootProvider, } from '@schematics/angular/utility'; import { insertImport, - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import { - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import type { - PackageJson + PackageJson, } from 'type-fest'; import * as ts from 'typescript'; diff --git a/packages/@o3r/localization/schematics/localization-to-component/index.spec.ts b/packages/@o3r/localization/schematics/localization-to-component/index.spec.ts index c90967f010..8f162001e7 100644 --- a/packages/@o3r/localization/schematics/localization-to-component/index.spec.ts +++ b/packages/@o3r/localization/schematics/localization-to-component/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddLocalizationFn + ngAddLocalizationFn, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/localization/schematics/localization-to-component/index.ts b/packages/@o3r/localization/schematics/localization-to-component/index.ts index b978cca1c1..328d9d5d86 100644 --- a/packages/@o3r/localization/schematics/localization-to-component/index.ts +++ b/packages/@o3r/localization/schematics/localization-to-component/index.ts @@ -1,7 +1,7 @@ import { basename, dirname, - posix + posix, } from 'node:path'; import { apply, @@ -17,7 +17,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addCommentsOnClassProperties, @@ -34,18 +34,18 @@ import { isO3rClassComponent, NoOtterComponent, O3rCliError, - sortClassElement + sortClassElement, } from '@o3r/schematics'; import { - addImportToModule + addImportToModule, } from '@schematics/angular/utility/ast-utils'; import { applyToUpdateRecorder, - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import type { - NgAddLocalizationSchematicsSchema + NgAddLocalizationSchematicsSchema, } from './schema'; const localizationProperties = [ diff --git a/packages/@o3r/localization/schematics/localization-to-component/schema.ts b/packages/@o3r/localization/schematics/localization-to-component/schema.ts index ec26581fa4..8b368c0972 100644 --- a/packages/@o3r/localization/schematics/localization-to-component/schema.ts +++ b/packages/@o3r/localization/schematics/localization-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddLocalizationSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/localization/schematics/ng-add/helpers/devtools-registration.ts b/packages/@o3r/localization/schematics/ng-add/helpers/devtools-registration.ts index 7ac05e17bc..3e3547d064 100644 --- a/packages/@o3r/localization/schematics/ng-add/helpers/devtools-registration.ts +++ b/packages/@o3r/localization/schematics/ng-add/helpers/devtools-registration.ts @@ -1,13 +1,13 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../schema'; const DEVTOOL_MODULE_NAME = 'LocalizationDevtoolsModule'; diff --git a/packages/@o3r/localization/schematics/ng-add/index.ts b/packages/@o3r/localization/schematics/ng-add/index.ts index 23c5b7597a..5c6ffd5d6f 100644 --- a/packages/@o3r/localization/schematics/ng-add/index.ts +++ b/packages/@o3r/localization/schematics/ng-add/index.ts @@ -3,16 +3,16 @@ import * as path from 'node:path'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateCmsAdapter + updateCmsAdapter, } from '../cms-adapter'; import { - registerDevtools + registerDevtools, } from './helpers/devtools-registration'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const dependenciesToInstall = [ diff --git a/packages/@o3r/localization/schematics/ng-add/schema.ts b/packages/@o3r/localization/schematics/ng-add/schema.ts index 997e2c8c93..c635ea411b 100644 --- a/packages/@o3r/localization/schematics/ng-add/schema.ts +++ b/packages/@o3r/localization/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/localization/schematics/ng-update/v10-0/index.spec.ts b/packages/@o3r/localization/schematics/ng-update/v10-0/index.spec.ts index ea8852a78e..48d42a4aec 100644 --- a/packages/@o3r/localization/schematics/ng-update/v10-0/index.spec.ts +++ b/packages/@o3r/localization/schematics/ng-update/v10-0/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const migrationPath = path.join(__dirname, '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/localization/schematics/ng-update/v10-0/index.ts b/packages/@o3r/localization/schematics/ng-update/v10-0/index.ts index 6f927971c6..505d2088e0 100644 --- a/packages/@o3r/localization/schematics/ng-update/v10-0/index.ts +++ b/packages/@o3r/localization/schematics/ng-update/v10-0/index.ts @@ -2,12 +2,12 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, PipeReplacementInfo, - updatePipes + updatePipes, } from '@o3r/schematics'; const pipeReplacementInfo: PipeReplacementInfo = { diff --git a/packages/@o3r/localization/src/annotations/localization.ts b/packages/@o3r/localization/src/annotations/localization.ts index 9406868077..b7b588fb4c 100644 --- a/packages/@o3r/localization/src/annotations/localization.ts +++ b/packages/@o3r/localization/src/annotations/localization.ts @@ -1,7 +1,7 @@ import { deepFill, immutablePrimitive, - otterComponentInfoPropertyName + otterComponentInfoPropertyName, } from '@o3r/core'; /** diff --git a/packages/@o3r/localization/src/core/translatable.ts b/packages/@o3r/localization/src/core/translatable.ts index eecef0dcca..9c0409d00f 100644 --- a/packages/@o3r/localization/src/core/translatable.ts +++ b/packages/@o3r/localization/src/core/translatable.ts @@ -1,5 +1,5 @@ import type { - Translation + Translation, } from '@o3r/core'; /** diff --git a/packages/@o3r/localization/src/core/translate-messageformat-lazy.compiler.ts b/packages/@o3r/localization/src/core/translate-messageformat-lazy.compiler.ts index 619f974e9e..34ed731a9e 100644 --- a/packages/@o3r/localization/src/core/translate-messageformat-lazy.compiler.ts +++ b/packages/@o3r/localization/src/core/translate-messageformat-lazy.compiler.ts @@ -2,14 +2,14 @@ import { Inject, Injectable, InjectionToken, - Optional + Optional, } from '@angular/core'; import { - TranslateCompiler + TranslateCompiler, } from '@ngx-translate/core'; import { IntlMessageFormat, - Options + Options, } from 'intl-messageformat'; /** diff --git a/packages/@o3r/localization/src/devkit/localization-devkit.interface.ts b/packages/@o3r/localization/src/devkit/localization-devkit.interface.ts index a0acb76b68..1c4129674f 100644 --- a/packages/@o3r/localization/src/devkit/localization-devkit.interface.ts +++ b/packages/@o3r/localization/src/devkit/localization-devkit.interface.ts @@ -4,13 +4,13 @@ import type { DevtoolsCommonOptions, MessageDataTypes, OtterMessageContent, - RequestMessagesContentMessage + RequestMessagesContentMessage, } from '@o3r/core'; import { - Subscription + Subscription, } from 'rxjs'; import type { - LocalizationMetadata + LocalizationMetadata, } from '../core'; export interface LocalizationDevtoolsServiceOptions extends DevtoolsCommonOptions, ContextualizationDevtoolsCommonOptions { diff --git a/packages/@o3r/localization/src/devkit/localization-devtools.console.service.ts b/packages/@o3r/localization/src/devkit/localization-devtools.console.service.ts index cfccf4d23a..21871953d7 100644 --- a/packages/@o3r/localization/src/devkit/localization-devtools.console.service.ts +++ b/packages/@o3r/localization/src/devkit/localization-devtools.console.service.ts @@ -2,26 +2,26 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import type { ContextualizationDataset, DevtoolsServiceInterface, - WindowWithDevtools + WindowWithDevtools, } from '@o3r/core'; import { - Subscription + Subscription, } from 'rxjs'; import { LocalizationContextualizationDevtools, - LocalizationDevtoolsServiceOptions + LocalizationDevtoolsServiceOptions, } from './localization-devkit.interface'; import { - OtterLocalizationDevtools + OtterLocalizationDevtools, } from './localization-devtools.service'; import { OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_LOCALIZATION_DEVTOOLS_OPTIONS + OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, } from './localization-devtools.token'; @Injectable() diff --git a/packages/@o3r/localization/src/devkit/localization-devtools.console.spec.ts b/packages/@o3r/localization/src/devkit/localization-devtools.console.spec.ts index c9925275f3..8cf57f9d53 100644 --- a/packages/@o3r/localization/src/devkit/localization-devtools.console.spec.ts +++ b/packages/@o3r/localization/src/devkit/localization-devtools.console.spec.ts @@ -1,24 +1,24 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { LocalizationModule, - LocalizationService + LocalizationService, } from '../tools/index'; import { - LocalizationDevtoolsConsoleService + LocalizationDevtoolsConsoleService, } from './localization-devtools.console.service'; import { - OtterLocalizationDevtools + OtterLocalizationDevtools, } from './localization-devtools.service'; import { OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_LOCALIZATION_DEVTOOLS_OPTIONS + OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, } from './localization-devtools.token'; describe('Localization DevTools console', () => { diff --git a/packages/@o3r/localization/src/devkit/localization-devtools.message.service.ts b/packages/@o3r/localization/src/devkit/localization-devtools.message.service.ts index 8487e4dfa6..5b18686e86 100644 --- a/packages/@o3r/localization/src/devkit/localization-devtools.message.service.ts +++ b/packages/@o3r/localization/src/devkit/localization-devtools.message.service.ts @@ -2,34 +2,34 @@ import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { filterMessageContent, - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { firstValueFrom, fromEvent, - Subscription + Subscription, } from 'rxjs'; import { - LocalizationService + LocalizationService, } from '../tools'; import { type AvailableLocalizationMessageContents, LocalizationDevtoolsServiceOptions, - type LocalizationMessageDataTypes + type LocalizationMessageDataTypes, } from './localization-devkit.interface'; import { - OtterLocalizationDevtools + OtterLocalizationDevtools, } from './localization-devtools.service'; import { OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_LOCALIZATION_DEVTOOLS_OPTIONS + OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, } from './localization-devtools.token'; const isLocalizationMessage = (message: any): message is AvailableLocalizationMessageContents => { diff --git a/packages/@o3r/localization/src/devkit/localization-devtools.module.ts b/packages/@o3r/localization/src/devkit/localization-devtools.module.ts index 1bb2542f39..7358a3d41e 100644 --- a/packages/@o3r/localization/src/devkit/localization-devtools.module.ts +++ b/packages/@o3r/localization/src/devkit/localization-devtools.module.ts @@ -1,25 +1,25 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - LocalizationModule + LocalizationModule, } from '../tools/index'; import type { - LocalizationDevtoolsServiceOptions + LocalizationDevtoolsServiceOptions, } from './localization-devkit.interface'; import { - LocalizationDevtoolsConsoleService + LocalizationDevtoolsConsoleService, } from './localization-devtools.console.service'; import { - LocalizationDevtoolsMessageService + LocalizationDevtoolsMessageService, } from './localization-devtools.message.service'; import { - OtterLocalizationDevtools + OtterLocalizationDevtools, } from './localization-devtools.service'; import { OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_LOCALIZATION_DEVTOOLS_OPTIONS + OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, } from './localization-devtools.token'; @NgModule({ diff --git a/packages/@o3r/localization/src/devkit/localization-devtools.service.ts b/packages/@o3r/localization/src/devkit/localization-devtools.service.ts index 47e7919880..2940768fd8 100644 --- a/packages/@o3r/localization/src/devkit/localization-devtools.service.ts +++ b/packages/@o3r/localization/src/devkit/localization-devtools.service.ts @@ -1,20 +1,20 @@ import { ApplicationRef, - Injectable + Injectable, } from '@angular/core'; import { - TranslateCompiler + TranslateCompiler, } from '@ngx-translate/core'; import { firstValueFrom, lastValueFrom, - Subscription + Subscription, } from 'rxjs'; import type { - TranslateMessageFormatLazyCompiler + TranslateMessageFormatLazyCompiler, } from '../core'; import { - LocalizationService + LocalizationService, } from '../tools'; @Injectable() diff --git a/packages/@o3r/localization/src/devkit/localization-devtools.token.ts b/packages/@o3r/localization/src/devkit/localization-devtools.token.ts index 35b435354d..c9a93f9188 100644 --- a/packages/@o3r/localization/src/devkit/localization-devtools.token.ts +++ b/packages/@o3r/localization/src/devkit/localization-devtools.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - LocalizationDevtoolsServiceOptions + LocalizationDevtoolsServiceOptions, } from './localization-devkit.interface'; export const OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS: LocalizationDevtoolsServiceOptions = { diff --git a/packages/@o3r/localization/src/rules-engine/localization.handler-action.ts b/packages/@o3r/localization/src/rules-engine/localization.handler-action.ts index c52b2fb820..79686d530c 100644 --- a/packages/@o3r/localization/src/rules-engine/localization.handler-action.ts +++ b/packages/@o3r/localization/src/rules-engine/localization.handler-action.ts @@ -1,19 +1,19 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import type { - RulesEngineActionHandler + RulesEngineActionHandler, } from '@o3r/core'; import { LocalizationOverrideStore, - setLocalizationOverride + setLocalizationOverride, } from '@o3r/localization'; import { ActionUpdateLocalisationBlock, - RULES_ENGINE_LOCALISATION_UPDATE_ACTION_TYPE + RULES_ENGINE_LOCALISATION_UPDATE_ACTION_TYPE, } from './localization.interfaces'; /** diff --git a/packages/@o3r/localization/src/rules-engine/localization.interfaces.ts b/packages/@o3r/localization/src/rules-engine/localization.interfaces.ts index 4a2d96bbc1..69abee0746 100644 --- a/packages/@o3r/localization/src/rules-engine/localization.interfaces.ts +++ b/packages/@o3r/localization/src/rules-engine/localization.interfaces.ts @@ -1,5 +1,5 @@ import type { - RulesEngineAction + RulesEngineAction, } from '@o3r/core'; /** ActionUpdateLocalisationBlock */ diff --git a/packages/@o3r/localization/src/rules-engine/localization.rules-engine.module.ts b/packages/@o3r/localization/src/rules-engine/localization.rules-engine.module.ts index fdbd470963..aba7892fbf 100644 --- a/packages/@o3r/localization/src/rules-engine/localization.rules-engine.module.ts +++ b/packages/@o3r/localization/src/rules-engine/localization.rules-engine.module.ts @@ -1,11 +1,11 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - LocalizationOverrideStoreModule + LocalizationOverrideStoreModule, } from '@o3r/localization'; import { - LocalizationRulesEngineActionHandler + LocalizationRulesEngineActionHandler, } from './localization.handler-action'; @NgModule({ diff --git a/packages/@o3r/localization/src/stores/localization-override/localization-override.actions.ts b/packages/@o3r/localization/src/stores/localization-override/localization-override.actions.ts index 0c4445e018..04bdbfd8b1 100644 --- a/packages/@o3r/localization/src/stores/localization-override/localization-override.actions.ts +++ b/packages/@o3r/localization/src/stores/localization-override/localization-override.actions.ts @@ -1,12 +1,12 @@ import { createAction, - props + props, } from '@ngrx/store'; import { - SetStateActionPayload + SetStateActionPayload, } from '@o3r/core'; import { - LocalizationOverrideState + LocalizationOverrideState, } from './localization-override.state'; /** Actions */ diff --git a/packages/@o3r/localization/src/stores/localization-override/localization-override.module.ts b/packages/@o3r/localization/src/stores/localization-override/localization-override.module.ts index 597e4ac964..258c42cb7a 100644 --- a/packages/@o3r/localization/src/stores/localization-override/localization-override.module.ts +++ b/packages/@o3r/localization/src/stores/localization-override/localization-override.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - localizationOverrideReducer + localizationOverrideReducer, } from './localization-override.reducer'; import { LOCALIZATION_OVERRIDE_STORE_NAME, - LocalizationOverrideState + LocalizationOverrideState, } from './localization-override.state'; /** Token of the LocalizationOverride reducer */ diff --git a/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.spec.ts b/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.spec.ts index 8ba5755575..a8d3546ae3 100644 --- a/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.spec.ts +++ b/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.spec.ts @@ -1,10 +1,10 @@ import * as actions from './localization-override.actions'; import { localizationOverrideInitialState, - localizationOverrideReducer + localizationOverrideReducer, } from './localization-override.reducer'; import { - LocalizationOverrideState + LocalizationOverrideState, } from './localization-override.state'; describe('LocalizationOverride Store reducer', () => { diff --git a/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.ts b/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.ts index 183bdffda1..e5871ddf45 100644 --- a/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.ts +++ b/packages/@o3r/localization/src/stores/localization-override/localization-override.reducer.ts @@ -2,11 +2,11 @@ import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './localization-override.actions'; import { - LocalizationOverrideState + LocalizationOverrideState, } from './localization-override.state'; /** diff --git a/packages/@o3r/localization/src/stores/localization-override/localization-override.selectors.ts b/packages/@o3r/localization/src/stores/localization-override/localization-override.selectors.ts index 54f50260bc..43b6ed76ca 100644 --- a/packages/@o3r/localization/src/stores/localization-override/localization-override.selectors.ts +++ b/packages/@o3r/localization/src/stores/localization-override/localization-override.selectors.ts @@ -1,10 +1,10 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { LOCALIZATION_OVERRIDE_STORE_NAME, - LocalizationOverrideState + LocalizationOverrideState, } from './localization-override.state'; /** Select LocalizationOverride State */ diff --git a/packages/@o3r/localization/src/stores/localization-override/localization-override.sync.ts b/packages/@o3r/localization/src/stores/localization-override/localization-override.sync.ts index 80043ac4a4..7071f8e4bb 100644 --- a/packages/@o3r/localization/src/stores/localization-override/localization-override.sync.ts +++ b/packages/@o3r/localization/src/stores/localization-override/localization-override.sync.ts @@ -1,11 +1,11 @@ import { - Serializer + Serializer, } from '@o3r/core'; import { - localizationOverrideInitialState + localizationOverrideInitialState, } from './localization-override.reducer'; import { - LocalizationOverrideState + LocalizationOverrideState, } from './localization-override.state'; export const localizationOverrideStorageDeserializer = (rawObject: any) => { diff --git a/packages/@o3r/localization/src/tools/localization-translate.directive.ts b/packages/@o3r/localization/src/tools/localization-translate.directive.ts index 4c7822b3c1..b1296c9723 100644 --- a/packages/@o3r/localization/src/tools/localization-translate.directive.ts +++ b/packages/@o3r/localization/src/tools/localization-translate.directive.ts @@ -4,23 +4,23 @@ import { ElementRef, Inject, Input, - OnDestroy + OnDestroy, } from '@angular/core'; import { TranslateDirective, - TranslateService + TranslateService, } from '@ngx-translate/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; /** * TranslateDirective class adding debug functionality diff --git a/packages/@o3r/localization/src/tools/localization-translate.pipe.spec.ts b/packages/@o3r/localization/src/tools/localization-translate.pipe.spec.ts index fce2e8c8d6..bb8664f087 100644 --- a/packages/@o3r/localization/src/tools/localization-translate.pipe.spec.ts +++ b/packages/@o3r/localization/src/tools/localization-translate.pipe.spec.ts @@ -1,36 +1,36 @@ import { - ChangeDetectorRef + ChangeDetectorRef, } from '@angular/core'; import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { TranslateLoader, TranslateModule, - TranslateService + TranslateService, } from '@ngx-translate/core'; import { Observable, - of + of, } from 'rxjs'; import { LocalizationTranslatePipe, - O3rLocalizationTranslatePipe + O3rLocalizationTranslatePipe, } from './localization-translate.pipe'; import { createLocalizationConfiguration, - LocalizationModule + LocalizationModule, } from './localization.module'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; const translations: any = { diff --git a/packages/@o3r/localization/src/tools/localization-translate.pipe.ts b/packages/@o3r/localization/src/tools/localization-translate.pipe.ts index 878e46646a..947b30d6e9 100644 --- a/packages/@o3r/localization/src/tools/localization-translate.pipe.ts +++ b/packages/@o3r/localization/src/tools/localization-translate.pipe.ts @@ -3,23 +3,23 @@ import { Inject, OnDestroy, Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { TranslatePipe, - TranslateService + TranslateService, } from '@ngx-translate/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; /** diff --git a/packages/@o3r/localization/src/tools/localization.module.ts b/packages/@o3r/localization/src/tools/localization.module.ts index 15f28e8ea5..e254ec4c65 100644 --- a/packages/@o3r/localization/src/tools/localization.module.ts +++ b/packages/@o3r/localization/src/tools/localization.module.ts @@ -1,57 +1,57 @@ import { BidiModule, - Directionality + Directionality, } from '@angular/cdk/bidi'; import { CommonModule, CurrencyPipe, DatePipe, - DecimalPipe + DecimalPipe, } from '@angular/common'; import { InjectionToken, LOCALE_ID, ModuleWithProviders, NgModule, - Optional + Optional, } from '@angular/core'; import { - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { - DynamicContentModule + DynamicContentModule, } from '@o3r/dynamic-content'; import { DEFAULT_LOCALIZATION_CONFIGURATION, - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LocalizationTranslateDirective + LocalizationTranslateDirective, } from './localization-translate.directive'; import { LocalizationTranslatePipe, - O3rLocalizationTranslatePipe + O3rLocalizationTranslatePipe, } from './localization-translate.pipe'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; import { - LocalizedCurrencyPipe + LocalizedCurrencyPipe, } from './localized-currency.pipe'; import { - LocalizedDatePipe + LocalizedDatePipe, } from './localized-date.pipe'; import { - LocalizedDecimalPipe + LocalizedDecimalPipe, } from './localized-decimal.pipe'; import { - TextDirectionService + TextDirectionService, } from './text-direction.service'; import { - TextDirectionality + TextDirectionality, } from './text-directionality.service'; /** diff --git a/packages/@o3r/localization/src/tools/localization.provider.ts b/packages/@o3r/localization/src/tools/localization.provider.ts index da4a2ebb06..3d837d7538 100644 --- a/packages/@o3r/localization/src/tools/localization.provider.ts +++ b/packages/@o3r/localization/src/tools/localization.provider.ts @@ -1,24 +1,24 @@ import { FactoryProvider, - Optional + Optional, } from '@angular/core'; import { - TranslateLoader + TranslateLoader, } from '@ngx-translate/core'; import { - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; import { - TranslationsLoader + TranslationsLoader, } from './translations-loader'; /** diff --git a/packages/@o3r/localization/src/tools/localization.service.spec.ts b/packages/@o3r/localization/src/tools/localization.service.spec.ts index 50f0def3c4..36ece71322 100644 --- a/packages/@o3r/localization/src/tools/localization.service.spec.ts +++ b/packages/@o3r/localization/src/tools/localization.service.spec.ts @@ -1,23 +1,22 @@ import { - TestBed + TestBed, } from '@angular/core/testing'; import { - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { DEFAULT_LOCALIZATION_CONFIGURATION, - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LocalizationModule + LocalizationModule, } from './localization.module'; import { - LocalizationService + LocalizationService, } from './localization.service'; describe('LocalizationService', () => { describe('default configuration', () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const configurationFactory: () => LocalizationConfiguration = () => ({ ...DEFAULT_LOCALIZATION_CONFIGURATION }); @@ -45,7 +44,6 @@ describe('LocalizationService', () => { }); describe('fallbackLocalesMap configuration unavailable', () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const configurationFactory: () => LocalizationConfiguration = () => ({ ...DEFAULT_LOCALIZATION_CONFIGURATION, supportedLocales: ['en-GB', 'fr-FR', 'fr-CA', 'ar-AR'], @@ -107,7 +105,6 @@ describe('LocalizationService', () => { }); describe('language to use is specified in the configuration and supported', () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const configurationFactory: () => LocalizationConfiguration = () => ({ ...DEFAULT_LOCALIZATION_CONFIGURATION, supportedLocales: ['en-GB', 'fr-FR', 'fr-CA', 'ar-AR'], @@ -139,7 +136,6 @@ describe('LocalizationService', () => { }); describe('language to use is specified in the configuration and not supported', () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const configurationFactory: () => LocalizationConfiguration = () => ({ ...DEFAULT_LOCALIZATION_CONFIGURATION, supportedLocales: ['en-GB', 'fr-FR', 'fr-CA', 'ar-AR'], @@ -171,7 +167,6 @@ describe('LocalizationService', () => { }); describe('fallbackLocalesMap configuration available', () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const configurationFactory: () => LocalizationConfiguration = () => ({ ...DEFAULT_LOCALIZATION_CONFIGURATION, supportedLocales: ['en-GB', 'en-US', 'fr-FR', 'ar-AR'], diff --git a/packages/@o3r/localization/src/tools/localization.service.ts b/packages/@o3r/localization/src/tools/localization.service.ts index d86268062e..66a099b38d 100644 --- a/packages/@o3r/localization/src/tools/localization.service.ts +++ b/packages/@o3r/localization/src/tools/localization.service.ts @@ -1,39 +1,39 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { - TranslateService + TranslateService, } from '@ngx-translate/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { BehaviorSubject, combineLatest, Observable, - of + of, } from 'rxjs'; import { distinctUntilChanged, map, shareReplay, - switchMap + switchMap, } from 'rxjs/operators'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core/localization.configuration'; import { LocalizationOverrideStore, - selectLocalizationOverride + selectLocalizationOverride, } from '../stores/index'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; /** diff --git a/packages/@o3r/localization/src/tools/localization.token.ts b/packages/@o3r/localization/src/tools/localization.token.ts index c5b7b85341..110e35adc0 100644 --- a/packages/@o3r/localization/src/tools/localization.token.ts +++ b/packages/@o3r/localization/src/tools/localization.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; /** Localization Configuration Token */ diff --git a/packages/@o3r/localization/src/tools/localized-currency.pipe.spec.ts b/packages/@o3r/localization/src/tools/localized-currency.pipe.spec.ts index d141244ee8..355869eae1 100644 --- a/packages/@o3r/localization/src/tools/localized-currency.pipe.spec.ts +++ b/packages/@o3r/localization/src/tools/localized-currency.pipe.spec.ts @@ -1,34 +1,34 @@ import { CurrencyPipe, - registerLocaleData + registerLocaleData, } from '@angular/common'; import localeFR from '@angular/common/locales/fr'; import { - ChangeDetectorRef + ChangeDetectorRef, } from '@angular/core'; import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { createLocalizationConfiguration, - LocalizationModule + LocalizationModule, } from './localization.module'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; import { - LocalizedCurrencyPipe + LocalizedCurrencyPipe, } from './localized-currency.pipe'; /** diff --git a/packages/@o3r/localization/src/tools/localized-currency.pipe.ts b/packages/@o3r/localization/src/tools/localized-currency.pipe.ts index 090899c29c..575ee2982f 100644 --- a/packages/@o3r/localization/src/tools/localized-currency.pipe.ts +++ b/packages/@o3r/localization/src/tools/localized-currency.pipe.ts @@ -1,17 +1,17 @@ import { - CurrencyPipe + CurrencyPipe, } from '@angular/common'; import { ChangeDetectorRef, OnDestroy, Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - LocalizationService + LocalizationService, } from './localization.service'; /** diff --git a/packages/@o3r/localization/src/tools/localized-date.pipe.spec.ts b/packages/@o3r/localization/src/tools/localized-date.pipe.spec.ts index d82997e107..122737914f 100644 --- a/packages/@o3r/localization/src/tools/localized-date.pipe.spec.ts +++ b/packages/@o3r/localization/src/tools/localized-date.pipe.spec.ts @@ -1,33 +1,33 @@ import { - registerLocaleData + registerLocaleData, } from '@angular/common'; import localeFR from '@angular/common/locales/fr'; import { - ChangeDetectorRef + ChangeDetectorRef, } from '@angular/core'; import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { createLocalizationConfiguration, - LocalizationModule + LocalizationModule, } from './localization.module'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; import { - LocalizedDatePipe + LocalizedDatePipe, } from './localized-date.pipe'; /** diff --git a/packages/@o3r/localization/src/tools/localized-date.pipe.ts b/packages/@o3r/localization/src/tools/localized-date.pipe.ts index 70a2a28817..cd7ed07daa 100644 --- a/packages/@o3r/localization/src/tools/localized-date.pipe.ts +++ b/packages/@o3r/localization/src/tools/localized-date.pipe.ts @@ -1,17 +1,17 @@ import { - DatePipe + DatePipe, } from '@angular/common'; import { ChangeDetectorRef, OnDestroy, Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - LocalizationService + LocalizationService, } from './localization.service'; /** diff --git a/packages/@o3r/localization/src/tools/localized-decimal.pipe.spec.ts b/packages/@o3r/localization/src/tools/localized-decimal.pipe.spec.ts index 6a8c8d2b68..d139d7e0c2 100644 --- a/packages/@o3r/localization/src/tools/localized-decimal.pipe.spec.ts +++ b/packages/@o3r/localization/src/tools/localized-decimal.pipe.spec.ts @@ -1,33 +1,33 @@ import { - registerLocaleData + registerLocaleData, } from '@angular/common'; import localeFR from '@angular/common/locales/fr'; import { - ChangeDetectorRef + ChangeDetectorRef, } from '@angular/core'; import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { createLocalizationConfiguration, - LocalizationModule + LocalizationModule, } from './localization.module'; import { - LocalizationService + LocalizationService, } from './localization.service'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; import { - LocalizedDecimalPipe + LocalizedDecimalPipe, } from './localized-decimal.pipe'; /** diff --git a/packages/@o3r/localization/src/tools/localized-decimal.pipe.ts b/packages/@o3r/localization/src/tools/localized-decimal.pipe.ts index 84a32b44c9..baf0308640 100644 --- a/packages/@o3r/localization/src/tools/localized-decimal.pipe.ts +++ b/packages/@o3r/localization/src/tools/localized-decimal.pipe.ts @@ -1,17 +1,17 @@ import { - DecimalPipe + DecimalPipe, } from '@angular/common'; import { ChangeDetectorRef, OnDestroy, Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - LocalizationService + LocalizationService, } from './localization.service'; /** diff --git a/packages/@o3r/localization/src/tools/text-direction.service.ts b/packages/@o3r/localization/src/tools/text-direction.service.ts index fff65a2a22..d0e49876e4 100644 --- a/packages/@o3r/localization/src/tools/text-direction.service.ts +++ b/packages/@o3r/localization/src/tools/text-direction.service.ts @@ -1,24 +1,24 @@ import { - Directionality + Directionality, } from '@angular/cdk/bidi'; import { Inject, Injectable, Renderer2, - RendererFactory2 + RendererFactory2, } from '@angular/core'; import { LangChangeEvent, - TranslateService + TranslateService, } from '@ngx-translate/core'; import { - Subscription + Subscription, } from 'rxjs'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; /** diff --git a/packages/@o3r/localization/src/tools/text-directionality.service.ts b/packages/@o3r/localization/src/tools/text-directionality.service.ts index 3954837580..d7c51228f4 100644 --- a/packages/@o3r/localization/src/tools/text-directionality.service.ts +++ b/packages/@o3r/localization/src/tools/text-directionality.service.ts @@ -1,16 +1,16 @@ import { DIR_DOCUMENT, Direction, - Directionality + Directionality, } from '@angular/cdk/bidi'; import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { - startWith + startWith, } from 'rxjs/operators'; @Injectable() diff --git a/packages/@o3r/localization/src/tools/translations-loader.spec.ts b/packages/@o3r/localization/src/tools/translations-loader.spec.ts index b9e8ec7edc..4287d19a7d 100644 --- a/packages/@o3r/localization/src/tools/translations-loader.spec.ts +++ b/packages/@o3r/localization/src/tools/translations-loader.spec.ts @@ -2,10 +2,10 @@ /* eslint-disable @typescript-eslint/naming-convention -- localization keys are not following the naming convention */ import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - TranslationsLoader + TranslationsLoader, } from './translations-loader'; function mockSuccessApiResponse(body = {}) { diff --git a/packages/@o3r/localization/src/tools/translations-loader.ts b/packages/@o3r/localization/src/tools/translations-loader.ts index c7823d2f9a..775df335e3 100644 --- a/packages/@o3r/localization/src/tools/translations-loader.ts +++ b/packages/@o3r/localization/src/tools/translations-loader.ts @@ -1,33 +1,33 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import { - TranslateLoader + TranslateLoader, } from '@ngx-translate/core'; import { - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { combineLatest, from, Observable, - of + of, } from 'rxjs'; import { catchError, map, - switchMap + switchMap, } from 'rxjs/operators'; import { - LocalizationConfiguration + LocalizationConfiguration, } from '../core'; import { - LOCALIZATION_CONFIGURATION_TOKEN + LOCALIZATION_CONFIGURATION_TOKEN, } from './localization.token'; const JSON_EXT = '.json'; diff --git a/packages/@o3r/logger/eslint.local.config.mjs b/packages/@o3r/logger/eslint.local.config.mjs index 287bf9e423..221795c6f3 100644 --- a/packages/@o3r/logger/eslint.local.config.mjs +++ b/packages/@o3r/logger/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/logger/schematics/ng-add/index.ts b/packages/@o3r/logger/schematics/ng-add/index.ts index 81106a0954..750caeae2b 100644 --- a/packages/@o3r/logger/schematics/ng-add/index.ts +++ b/packages/@o3r/logger/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/logger/schematics/ng-add/schema.ts b/packages/@o3r/logger/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/logger/schematics/ng-add/schema.ts +++ b/packages/@o3r/logger/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/logger/src/services/fullstory-logger-client/fullstory-logger-client.ts b/packages/@o3r/logger/src/services/fullstory-logger-client/fullstory-logger-client.ts index d142417796..bc96bcff87 100644 --- a/packages/@o3r/logger/src/services/fullstory-logger-client/fullstory-logger-client.ts +++ b/packages/@o3r/logger/src/services/fullstory-logger-client/fullstory-logger-client.ts @@ -1,14 +1,14 @@ import { FullStory as fullStory, - init + init, } from '@fullstory/browser'; import { Action, ActionReducer, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - LoggerClient + LoggerClient, } from '@o3r/logger'; /** diff --git a/packages/@o3r/logger/src/services/logger/logger.client.ts b/packages/@o3r/logger/src/services/logger/logger.client.ts index 7173e8fe7d..3ce0c32a67 100644 --- a/packages/@o3r/logger/src/services/logger/logger.client.ts +++ b/packages/@o3r/logger/src/services/logger/logger.client.ts @@ -1,9 +1,9 @@ import { Action, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - Logger + Logger, } from '@o3r/core'; /** diff --git a/packages/@o3r/logger/src/services/logger/logger.console.ts b/packages/@o3r/logger/src/services/logger/logger.console.ts index 76944d2635..4102fb8c0a 100644 --- a/packages/@o3r/logger/src/services/logger/logger.console.ts +++ b/packages/@o3r/logger/src/services/logger/logger.console.ts @@ -2,10 +2,10 @@ import { Action, ActionReducer, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - LoggerClient + LoggerClient, } from './logger.client'; /** diff --git a/packages/@o3r/logger/src/services/logger/logger.module.ts b/packages/@o3r/logger/src/services/logger/logger.module.ts index 4b3330bdf7..c882383d37 100644 --- a/packages/@o3r/logger/src/services/logger/logger.module.ts +++ b/packages/@o3r/logger/src/services/logger/logger.module.ts @@ -1,18 +1,18 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - LoggerClient + LoggerClient, } from './logger.client'; import { - ConsoleLogger + ConsoleLogger, } from './logger.console'; import { - LoggerService + LoggerService, } from './logger.service'; import { - LOGGER_CLIENT_TOKEN + LOGGER_CLIENT_TOKEN, } from './logger.token'; @NgModule({ diff --git a/packages/@o3r/logger/src/services/logger/logger.noop.ts b/packages/@o3r/logger/src/services/logger/logger.noop.ts index 72766e649a..ef18ec814d 100644 --- a/packages/@o3r/logger/src/services/logger/logger.noop.ts +++ b/packages/@o3r/logger/src/services/logger/logger.noop.ts @@ -2,10 +2,10 @@ import type { Action, ActionReducer, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - LoggerClient + LoggerClient, } from './logger.client'; /** @@ -23,6 +23,5 @@ export const noopLogger: LoggerClient = { debug: console.debug, info: console.info, log: console.log, - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function createMetaReducer: (): MetaReducer => (reducer: ActionReducer): ActionReducer => reducer }; diff --git a/packages/@o3r/logger/src/services/logger/logger.service.ts b/packages/@o3r/logger/src/services/logger/logger.service.ts index eb1c96f543..1c0a6512d5 100644 --- a/packages/@o3r/logger/src/services/logger/logger.service.ts +++ b/packages/@o3r/logger/src/services/logger/logger.service.ts @@ -1,23 +1,23 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import { Action, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - Logger + Logger, } from '@o3r/core'; import { - LoggerClient + LoggerClient, } from './logger.client'; import { - ConsoleLogger + ConsoleLogger, } from './logger.console'; import { - LOGGER_CLIENT_TOKEN + LOGGER_CLIENT_TOKEN, } from './logger.token'; /** diff --git a/packages/@o3r/logger/src/services/logger/logger.spec.ts b/packages/@o3r/logger/src/services/logger/logger.spec.ts index 511de1b0e1..866d543675 100644 --- a/packages/@o3r/logger/src/services/logger/logger.spec.ts +++ b/packages/@o3r/logger/src/services/logger/logger.spec.ts @@ -1,25 +1,25 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - LoggerClient + LoggerClient, } from './logger.client'; import { - ConsoleLogger + ConsoleLogger, } from './logger.console'; import { - LoggerModule + LoggerModule, } from './logger.module'; import { - LoggerService + LoggerService, } from './logger.service'; import { - LOGGER_CLIENT_TOKEN + LOGGER_CLIENT_TOKEN, } from './logger.token'; describe('Logger service', () => { diff --git a/packages/@o3r/logger/src/services/logger/logger.token.ts b/packages/@o3r/logger/src/services/logger/logger.token.ts index 54703da6e9..a63e73dc09 100644 --- a/packages/@o3r/logger/src/services/logger/logger.token.ts +++ b/packages/@o3r/logger/src/services/logger/logger.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - LoggerClient + LoggerClient, } from './logger.client'; export const LOGGER_CLIENT_TOKEN: InjectionToken = new InjectionToken('Logger Client injection token'); diff --git a/packages/@o3r/logger/src/services/logrocket-logger-client/logrocket-logger-client.ts b/packages/@o3r/logger/src/services/logrocket-logger-client/logrocket-logger-client.ts index fcda349cab..4573e3b3bd 100644 --- a/packages/@o3r/logger/src/services/logrocket-logger-client/logrocket-logger-client.ts +++ b/packages/@o3r/logger/src/services/logrocket-logger-client/logrocket-logger-client.ts @@ -1,13 +1,13 @@ import { Action, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - LoggerClient + LoggerClient, } from '@o3r/logger'; import * as LogRocket from 'logrocket'; import createNgrxMiddleware, { - Options + Options, } from 'logrocket-ngrx'; /** diff --git a/packages/@o3r/logger/src/services/smartlook-logger-client/smartlook-logger-client.ts b/packages/@o3r/logger/src/services/smartlook-logger-client/smartlook-logger-client.ts index a2ba90f48d..8a9ba29dbe 100644 --- a/packages/@o3r/logger/src/services/smartlook-logger-client/smartlook-logger-client.ts +++ b/packages/@o3r/logger/src/services/smartlook-logger-client/smartlook-logger-client.ts @@ -1,10 +1,10 @@ import { Action, ActionReducer, - MetaReducer + MetaReducer, } from '@ngrx/store'; import type { - LoggerClient + LoggerClient, } from '@o3r/logger'; import SmartLook from 'smartlook-client'; diff --git a/packages/@o3r/mobile/eslint.local.config.mjs b/packages/@o3r/mobile/eslint.local.config.mjs index c336618296..605f086dcb 100644 --- a/packages/@o3r/mobile/eslint.local.config.mjs +++ b/packages/@o3r/mobile/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/mobile/pcloudy/pcloudy.api.ts b/packages/@o3r/mobile/pcloudy/pcloudy.api.ts index 2054cba003..8751c505c4 100644 --- a/packages/@o3r/mobile/pcloudy/pcloudy.api.ts +++ b/packages/@o3r/mobile/pcloudy/pcloudy.api.ts @@ -2,12 +2,12 @@ import * as fs from 'node:fs'; import * as FormData from 'form-data'; import fetch from 'node-fetch'; import { - Logger + Logger, } from 'winston'; import { AppFile, Device, - PCloudyResponse + PCloudyResponse, } from './pcloudy.interfaces'; /** diff --git a/packages/@o3r/mobile/pcloudy/pcloudy.connection.ts b/packages/@o3r/mobile/pcloudy/pcloudy.connection.ts index bb70403163..546837c2cc 100644 --- a/packages/@o3r/mobile/pcloudy/pcloudy.connection.ts +++ b/packages/@o3r/mobile/pcloudy/pcloudy.connection.ts @@ -1,17 +1,17 @@ #!/usr/bin/env node import { - program + program, } from 'commander'; import * as winston from 'winston'; import { - Logger + Logger, } from 'winston'; import { - PCloudyApi + PCloudyApi, } from './pcloudy.api'; import { - PCloudyService + PCloudyService, } from './pcloudy.service'; /** diff --git a/packages/@o3r/mobile/pcloudy/pcloudy.service.ts b/packages/@o3r/mobile/pcloudy/pcloudy.service.ts index c30a0f17b2..230d27c738 100644 --- a/packages/@o3r/mobile/pcloudy/pcloudy.service.ts +++ b/packages/@o3r/mobile/pcloudy/pcloudy.service.ts @@ -1,12 +1,12 @@ import * as path from 'node:path'; import { - Logger + Logger, } from 'winston'; import { - PCloudyApi + PCloudyApi, } from './pcloudy.api'; import { - BookedData + BookedData, } from './pcloudy.interfaces'; export class PCloudyService { diff --git a/packages/@o3r/mobile/schematics/ng-add/index.ts b/packages/@o3r/mobile/schematics/ng-add/index.ts index cfafda09da..1a1ba019e9 100644 --- a/packages/@o3r/mobile/schematics/ng-add/index.ts +++ b/packages/@o3r/mobile/schematics/ng-add/index.ts @@ -1,10 +1,10 @@ import * as path from 'node:path'; import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/mobile/schematics/ng-add/schema.ts b/packages/@o3r/mobile/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/mobile/schematics/ng-add/schema.ts +++ b/packages/@o3r/mobile/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/mobile/src/capacitor/capacitor-target.service.ts b/packages/@o3r/mobile/src/capacitor/capacitor-target.service.ts index 0733a28aa1..58880af5b4 100644 --- a/packages/@o3r/mobile/src/capacitor/capacitor-target.service.ts +++ b/packages/@o3r/mobile/src/capacitor/capacitor-target.service.ts @@ -1,16 +1,16 @@ import { Injectable, - OnDestroy + OnDestroy, } from '@angular/core'; import { - Browser + Browser, } from '@capacitor/browser'; import { fromEvent, - Subscription + Subscription, } from 'rxjs'; import { - isCapacitorContext + isCapacitorContext, } from './helpers'; @Injectable({ diff --git a/packages/@o3r/mobile/src/capacitor/helpers.spec.ts b/packages/@o3r/mobile/src/capacitor/helpers.spec.ts index 78c483ac9d..def2b2d4ce 100644 --- a/packages/@o3r/mobile/src/capacitor/helpers.spec.ts +++ b/packages/@o3r/mobile/src/capacitor/helpers.spec.ts @@ -1,12 +1,12 @@ import { Device, - DeviceInfo + DeviceInfo, } from '@capacitor/device'; import { CapacitorPlatforms, getBaseUrl, getCapacitorPlatform, - isCapacitorContext + isCapacitorContext, } from './helpers'; /** diff --git a/packages/@o3r/mobile/src/capacitor/helpers.ts b/packages/@o3r/mobile/src/capacitor/helpers.ts index 5d55a16da8..042a2f9522 100644 --- a/packages/@o3r/mobile/src/capacitor/helpers.ts +++ b/packages/@o3r/mobile/src/capacitor/helpers.ts @@ -1,5 +1,5 @@ import { - Device + Device, } from '@capacitor/device'; /** diff --git a/packages/@o3r/mobile/src/capacitor/storage/rehydrater.module.ts b/packages/@o3r/mobile/src/capacitor/storage/rehydrater.module.ts index 82df453275..bfd6e13567 100644 --- a/packages/@o3r/mobile/src/capacitor/storage/rehydrater.module.ts +++ b/packages/@o3r/mobile/src/capacitor/storage/rehydrater.module.ts @@ -1,19 +1,19 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - LoggerModule + LoggerModule, } from '@o3r/logger'; import type { - StorageSyncOptions + StorageSyncOptions, } from '@o3r/store-sync'; import { CapacitorRehydrater, - STORAGE_SYNC_OPTIONS + STORAGE_SYNC_OPTIONS, } from './rehydrater'; @NgModule({ diff --git a/packages/@o3r/mobile/src/capacitor/storage/rehydrater.ts b/packages/@o3r/mobile/src/capacitor/storage/rehydrater.ts index 9c6fbbe5d2..56e42b4140 100644 --- a/packages/@o3r/mobile/src/capacitor/storage/rehydrater.ts +++ b/packages/@o3r/mobile/src/capacitor/storage/rehydrater.ts @@ -1,20 +1,20 @@ import { Inject, Injectable, - InjectionToken + InjectionToken, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { dateReviver, isLocalStorageConfig, isSerializer, rehydrateAction, - StorageSyncOptions + StorageSyncOptions, } from '@o3r/store-sync'; /** diff --git a/packages/@o3r/mobile/src/capacitor/storage/storage.ts b/packages/@o3r/mobile/src/capacitor/storage/storage.ts index fae3d7b841..e4542e5648 100644 --- a/packages/@o3r/mobile/src/capacitor/storage/storage.ts +++ b/packages/@o3r/mobile/src/capacitor/storage/storage.ts @@ -1,8 +1,8 @@ import { - Preferences as CapacitorStorage + Preferences as CapacitorStorage, } from '@capacitor/preferences'; import type { - AsyncStorage + AsyncStorage, } from '@o3r/store-sync'; /** diff --git a/packages/@o3r/new-version/eslint.local.config.mjs b/packages/@o3r/new-version/eslint.local.config.mjs index 440d86ebd7..23c06c10c5 100644 --- a/packages/@o3r/new-version/eslint.local.config.mjs +++ b/packages/@o3r/new-version/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/new-version/schematics/index.it.spec.ts b/packages/@o3r/new-version/schematics/index.it.spec.ts index e5edba7272..36ddc38a7c 100644 --- a/packages/@o3r/new-version/schematics/index.it.spec.ts +++ b/packages/@o3r/new-version/schematics/index.it.spec.ts @@ -8,7 +8,7 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { getDefaultExecSyncOptions, packageManagerExec, - packageManagerInstall + packageManagerInstall, } from '@o3r/test-helpers'; test('should add Otter Application to existing Angular app', () => { diff --git a/packages/@o3r/new-version/schematics/ng-add/index.ts b/packages/@o3r/new-version/schematics/ng-add/index.ts index a991b40325..35148b63a0 100644 --- a/packages/@o3r/new-version/schematics/ng-add/index.ts +++ b/packages/@o3r/new-version/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/new-version/src/helpers/index.spec.ts b/packages/@o3r/new-version/src/helpers/index.spec.ts index c2c4948a5a..6a553a1598 100644 --- a/packages/@o3r/new-version/src/helpers/index.spec.ts +++ b/packages/@o3r/new-version/src/helpers/index.spec.ts @@ -1,5 +1,5 @@ import { - formatGitTagsOutput + formatGitTagsOutput, } from './index'; describe('helpers', () => { diff --git a/packages/@o3r/new-version/src/index.spec.ts b/packages/@o3r/new-version/src/index.spec.ts index bee5f387d4..bba1e5b52a 100644 --- a/packages/@o3r/new-version/src/index.spec.ts +++ b/packages/@o3r/new-version/src/index.spec.ts @@ -1,7 +1,7 @@ import { BaseLogger, NewVersion, - NewVersionOptions + NewVersionOptions, } from './index'; const mockLogger: BaseLogger = { diff --git a/packages/@o3r/new-version/src/index.ts b/packages/@o3r/new-version/src/index.ts index 827d6ddf61..663b06949c 100644 --- a/packages/@o3r/new-version/src/index.ts +++ b/packages/@o3r/new-version/src/index.ts @@ -1,12 +1,12 @@ import { - exec + exec, } from 'node:child_process'; import { - promisify + promisify, } from 'node:util'; import * as semver from 'semver'; import { - formatGitTagsOutput + formatGitTagsOutput, } from './helpers/index'; const promisifiedExec = promisify(exec); diff --git a/packages/@o3r/pipeline/eslint.local.config.mjs b/packages/@o3r/pipeline/eslint.local.config.mjs index 8aab34844b..d7cdff29a5 100644 --- a/packages/@o3r/pipeline/eslint.local.config.mjs +++ b/packages/@o3r/pipeline/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/pipeline/schematics/index.it.spec.ts b/packages/@o3r/pipeline/schematics/index.it.spec.ts index da1192caa2..34268fa09a 100644 --- a/packages/@o3r/pipeline/schematics/index.it.spec.ts +++ b/packages/@o3r/pipeline/schematics/index.it.spec.ts @@ -6,14 +6,14 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { - execSync + execSync, } from 'node:child_process'; import * as path from 'node:path'; import { getDefaultExecSyncOptions, getGitDiff, packageManagerExec, - packageManagerInstall + packageManagerInstall, } from '@o3r/test-helpers'; describe('new otter project', () => { diff --git a/packages/@o3r/pipeline/schematics/ng-add/index.spec.ts b/packages/@o3r/pipeline/schematics/ng-add/index.spec.ts index 3147b1df3c..d8069e893a 100644 --- a/packages/@o3r/pipeline/schematics/ng-add/index.spec.ts +++ b/packages/@o3r/pipeline/schematics/ng-add/index.spec.ts @@ -1,13 +1,13 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/pipeline/schematics/ng-add/index.ts b/packages/@o3r/pipeline/schematics/ng-add/index.ts index bb6f81e190..eb2201b3d1 100644 --- a/packages/@o3r/pipeline/schematics/ng-add/index.ts +++ b/packages/@o3r/pipeline/schematics/ng-add/index.ts @@ -8,17 +8,17 @@ import { move, Rule, template, - url + url, } from '@angular-devkit/schematics'; import { dump, - load + load, } from 'js-yaml'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/pipeline/schematics/ng-add/schema.ts b/packages/@o3r/pipeline/schematics/ng-add/schema.ts index 21222c8565..7adfd8beca 100644 --- a/packages/@o3r/pipeline/schematics/ng-add/schema.ts +++ b/packages/@o3r/pipeline/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; type Toolchains = 'github'; diff --git a/packages/@o3r/routing/eslint.local.config.mjs b/packages/@o3r/routing/eslint.local.config.mjs index 2eaf922c4c..ca9e9ae035 100644 --- a/packages/@o3r/routing/eslint.local.config.mjs +++ b/packages/@o3r/routing/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/routing/schematics/ng-add/index.ts b/packages/@o3r/routing/schematics/ng-add/index.ts index 8bac05e450..1c56284421 100644 --- a/packages/@o3r/routing/schematics/ng-add/index.ts +++ b/packages/@o3r/routing/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/routing/schematics/ng-add/schema.ts b/packages/@o3r/routing/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/routing/schematics/ng-add/schema.ts +++ b/packages/@o3r/routing/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.spec.ts b/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.spec.ts index 1fe2b0b731..e4fc624cff 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.spec.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.spec.ts @@ -1,33 +1,33 @@ /* eslint-disable jest/no-done-callback -- test with subscriptions */ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - EventType + EventType, } from '@angular/router'; import { - provideMockActions + provideMockActions, } from '@ngrx/effects/testing'; import { BaseRouterStoreState, ROUTER_NAVIGATED, ROUTER_REQUEST, RouterNavigatedAction, - RouterRequestAction + RouterRequestAction, } from '@ngrx/router-store'; import { ReplaySubject, Subject, - Subscription + Subscription, } from 'rxjs'; import * as actions from '../routing-guard.actions'; import { - NgrxStoreRouterEffect + NgrxStoreRouterEffect, } from './ngrx-store-router.effect'; describe('Routing guard effects', () => { diff --git a/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.ts b/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.ts index 66be25028e..00e79f8536 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/extra-effects/ngrx-store-router.effect.ts @@ -1,23 +1,23 @@ import { - Injectable + Injectable, } from '@angular/core'; import { Actions, createEffect, - ofType + ofType, } from '@ngrx/effects'; import { BaseRouterStoreState, ROUTER_NAVIGATED, ROUTER_REQUEST, - RouterRequestAction + RouterRequestAction, } from '@ngrx/router-store'; import { filter, - map + map, } from 'rxjs/operators'; import { - clearRoutingGuardEntities + clearRoutingGuardEntities, } from '../routing-guard.actions'; /** diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.actions.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.actions.ts index 444b1f3371..9b84080307 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.actions.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.actions.ts @@ -1,9 +1,9 @@ import { createAction, - props + props, } from '@ngrx/store'; import { - RegisteredItemFailureReason + RegisteredItemFailureReason, } from './routing-guard.state'; /** Entity Actions */ diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.module.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.module.ts index 73cc7d47f2..268a551421 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.module.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.module.ts @@ -1,19 +1,19 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - routingGuardReducer + routingGuardReducer, } from './routing-guard.reducer'; import { ROUTING_GUARD_STORE_NAME, - RoutingGuardState + RoutingGuardState, } from './routing-guard.state'; /** Token of the RoutingGuard reducer */ diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.spec.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.spec.ts index ed9001786f..12971df65b 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.spec.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.spec.ts @@ -2,12 +2,12 @@ import * as actions from './routing-guard.actions'; import { routingGuardInitialState, - routingGuardReducer + routingGuardReducer, } from './routing-guard.reducer'; import { RegisteredItemFailureReason, RegisteredItemStatus, - RoutingGuardState + RoutingGuardState, } from './routing-guard.state'; describe('RoutingGuard Store reducer', () => { diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.ts index 32ce7ce569..3f938943ed 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.reducer.ts @@ -1,18 +1,18 @@ import { createEntityAdapter, - EntityAdapter + EntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import * as actions from './routing-guard.actions'; import { RegisteredItemStatus, RoutingGuardModel, - RoutingGuardState + RoutingGuardState, } from './routing-guard.state'; /** diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.spec.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.spec.ts index 56d6ae4a54..3c886b5dee 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.spec.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.spec.ts @@ -2,7 +2,7 @@ import * as selectors from './routing-guard.selectors'; import { RegisteredItemFailureReason, RegisteredItemStatus, - RoutingGuardState + RoutingGuardState, } from './routing-guard.state'; describe('RoutingGuard Selectors tests', () => { diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.ts index 0c891758f9..eff5aa2176 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.selectors.ts @@ -1,15 +1,15 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { - routingGuardAdapter + routingGuardAdapter, } from './routing-guard.reducer'; import { RegisteredItemFailureReason, RegisteredItemStatus, ROUTING_GUARD_STORE_NAME, - RoutingGuardState + RoutingGuardState, } from './routing-guard.state'; const { selectIds, selectEntities, selectAll, selectTotal } = routingGuardAdapter.getSelectors(); diff --git a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.state.ts b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.state.ts index 62cc6e4a20..fbf15f3fb7 100644 --- a/packages/@o3r/routing/src/stores/routing-guard/routing-guard.state.ts +++ b/packages/@o3r/routing/src/stores/routing-guard/routing-guard.state.ts @@ -1,5 +1,5 @@ import { - EntityState + EntityState, } from '@ngrx/entity'; /** Identifies the status of a registered block */ diff --git a/packages/@o3r/routing/src/tools/app-server-routing.module.ts b/packages/@o3r/routing/src/tools/app-server-routing.module.ts index 1d34502bd5..81e4eced75 100644 --- a/packages/@o3r/routing/src/tools/app-server-routing.module.ts +++ b/packages/@o3r/routing/src/tools/app-server-routing.module.ts @@ -1,13 +1,13 @@ import { - APP_BASE_HREF + APP_BASE_HREF, } from '@angular/common'; import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import type { - BuildTimeProperties + BuildTimeProperties, } from '@o3r/core'; /** diff --git a/packages/@o3r/routing/src/tools/on-navigation-strategy.preloader.ts b/packages/@o3r/routing/src/tools/on-navigation-strategy.preloader.ts index 09d9b04b16..da3af65711 100644 --- a/packages/@o3r/routing/src/tools/on-navigation-strategy.preloader.ts +++ b/packages/@o3r/routing/src/tools/on-navigation-strategy.preloader.ts @@ -1,19 +1,19 @@ import { - Injectable + Injectable, } from '@angular/core'; import { NavigationEnd, PreloadingStrategy, Route, - Router + Router, } from '@angular/router'; import { Observable, - of + of, } from 'rxjs'; import { filter, - switchMap + switchMap, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/rules-engine/builders/rules-engine-extractor/helpers/rules-engine.extractor.ts b/packages/@o3r/rules-engine/builders/rules-engine-extractor/helpers/rules-engine.extractor.ts index 84bdcb9910..079353a94a 100644 --- a/packages/@o3r/rules-engine/builders/rules-engine-extractor/helpers/rules-engine.extractor.ts +++ b/packages/@o3r/rules-engine/builders/rules-engine-extractor/helpers/rules-engine.extractor.ts @@ -1,29 +1,29 @@ import { - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import type { - LoggerApi + LoggerApi, } from '@angular-devkit/core/src/logger'; import { - ConfigDocParser + ConfigDocParser, } from '@o3r/extractors'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import globby from 'globby'; import type { - JSONSchema7Type + JSONSchema7Type, } from 'json-schema'; import { lastValueFrom, - zip + zip, } from 'rxjs'; import { - map + map, } from 'rxjs/operators'; import * as ts from 'typescript'; import * as tjs from 'typescript-json-schema'; @@ -38,7 +38,7 @@ import { MetadataOperator, MetadataOperatorSupportedTypes, ObjectMetadataFact, - OtherMetadataFact + OtherMetadataFact, } from './rules-engine.extractor.interfaces'; /** diff --git a/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.spec.ts b/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.spec.ts index 91471db383..3217b02b4d 100644 --- a/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.spec.ts +++ b/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - RulesEngineExtractorBuilderSchema + RulesEngineExtractorBuilderSchema, } from './schema'; describe('Rules-engine Extractor Builder', () => { diff --git a/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.ts b/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.ts index 09d011a8ae..f2a6124608 100644 --- a/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.ts +++ b/packages/@o3r/rules-engine/builders/rules-engine-extractor/index.ts @@ -1,29 +1,29 @@ import { existsSync, - promises as fs + promises as fs, } from 'node:fs'; import { dirname, - resolve + resolve, } from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { CmsMetadataData, createBuilderWithMetricsIfInstalled, - getLibraryCmsMetadata + getLibraryCmsMetadata, } from '@o3r/extractors'; import globby from 'globby'; import { MetadataFact, MetadataOperator, ObjectMetadataFact, - RulesEngineExtractor + RulesEngineExtractor, } from './helpers'; import { - RulesEngineExtractorBuilderSchema + RulesEngineExtractorBuilderSchema, } from './schema'; export * from './schema'; @@ -114,13 +114,13 @@ export default createBuilder(createBuilderWithMetricsIfInstalled { diff --git a/packages/@o3r/rules-engine/schematics/ng-add/helpers/devtools-registration.ts b/packages/@o3r/rules-engine/schematics/ng-add/helpers/devtools-registration.ts index 38b8118b07..9bea9b7d90 100644 --- a/packages/@o3r/rules-engine/schematics/ng-add/helpers/devtools-registration.ts +++ b/packages/@o3r/rules-engine/schematics/ng-add/helpers/devtools-registration.ts @@ -1,13 +1,13 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../schema'; const DEVTOOL_MODULE_NAME = 'RulesEngineDevtoolsModule'; diff --git a/packages/@o3r/rules-engine/schematics/ng-add/index.ts b/packages/@o3r/rules-engine/schematics/ng-add/index.ts index 52f4119208..bcc60e2cf2 100644 --- a/packages/@o3r/rules-engine/schematics/ng-add/index.ts +++ b/packages/@o3r/rules-engine/schematics/ng-add/index.ts @@ -2,23 +2,23 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { - addRootImport + addRootImport, } from '@schematics/angular/utility'; import { - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import * as ts from 'typescript'; import { - updateCmsAdapter + updateCmsAdapter, } from '../cms-adapter'; import { - registerDevtools + registerDevtools, } from './helpers/devtools-registration'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const devDependenciesToInstall = [ diff --git a/packages/@o3r/rules-engine/schematics/ng-add/schema.ts b/packages/@o3r/rules-engine/schematics/ng-add/schema.ts index 9857bc4e1e..c0690f5b99 100644 --- a/packages/@o3r/rules-engine/schematics/ng-add/schema.ts +++ b/packages/@o3r/rules-engine/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/rules-engine/schematics/ng-update/index.ts b/packages/@o3r/rules-engine/schematics/ng-update/index.ts index d0357d60ef..f9eb8c7ae5 100644 --- a/packages/@o3r/rules-engine/schematics/ng-update/index.ts +++ b/packages/@o3r/rules-engine/schematics/ng-update/index.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateRuleEngineService + updateRuleEngineService, } from './v10.0/action-module-split'; /** diff --git a/packages/@o3r/rules-engine/schematics/ng-update/v10.0/action-module-split.ts b/packages/@o3r/rules-engine/schematics/ng-update/v10.0/action-module-split.ts index 8dc30431aa..aba4123314 100644 --- a/packages/@o3r/rules-engine/schematics/ng-update/v10.0/action-module-split.ts +++ b/packages/@o3r/rules-engine/schematics/ng-update/v10.0/action-module-split.ts @@ -1,8 +1,8 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateImports + updateImports, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/rules-engine/schematics/operator/index.spec.ts b/packages/@o3r/rules-engine/schematics/operator/index.spec.ts index 9d456f343f..bcfc658b05 100644 --- a/packages/@o3r/rules-engine/schematics/operator/index.spec.ts +++ b/packages/@o3r/rules-engine/schematics/operator/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/rules-engine/schematics/operator/index.ts b/packages/@o3r/rules-engine/schematics/operator/index.ts index e2f7254f63..e495a981c6 100644 --- a/packages/@o3r/rules-engine/schematics/operator/index.ts +++ b/packages/@o3r/rules-engine/schematics/operator/index.ts @@ -1,7 +1,7 @@ import * as path from 'node:path'; import { classify, - dasherize + dasherize, } from '@angular-devkit/core/src/utils/strings'; import { apply, @@ -13,14 +13,14 @@ import { renameTemplateFiles, Rule, template, - url + url, } from '@angular-devkit/schematics'; import { applyEsLintFix, - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import type { - NgGenerateOperatorSchematicsSchema + NgGenerateOperatorSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/rules-engine/schematics/operator/schema.ts b/packages/@o3r/rules-engine/schematics/operator/schema.ts index cf5c2fab65..ecc612f30c 100644 --- a/packages/@o3r/rules-engine/schematics/operator/schema.ts +++ b/packages/@o3r/rules-engine/schematics/operator/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; type SupportedSimpleTypes = diff --git a/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.spec.ts b/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.spec.ts index aad87709bd..e1a07e14ef 100644 --- a/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.spec.ts +++ b/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.spec.ts @@ -1,13 +1,13 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.ts b/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.ts index 23790531a0..436f30d346 100644 --- a/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.ts +++ b/packages/@o3r/rules-engine/schematics/rules-engine-to-component/index.ts @@ -2,7 +2,7 @@ import { chain, noop, Rule, - Tree + Tree, } from '@angular-devkit/schematics'; import { addImportsIntoComponentDecoratorTransformerFactory, @@ -17,19 +17,19 @@ import { getO3rComponentInfoOrThrowIfNotFound, getSimpleUpdatedMethod, O3rCliError, - sortClassElement + sortClassElement, } from '@o3r/schematics'; import { addImportToModule, - insertImport + insertImport, } from '@schematics/angular/utility/ast-utils'; import { applyToUpdateRecorder, - Change + Change, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import { - NgGenerateRulesEngineToComponentSchematicsSchema + NgGenerateRulesEngineToComponentSchematicsSchema, } from './schema'; const rulesEngineProperties = ['rulesEngineService']; diff --git a/packages/@o3r/rules-engine/schematics/rules-engine-to-component/schema.ts b/packages/@o3r/rules-engine/schematics/rules-engine-to-component/schema.ts index 2ca615510d..1862b4ba1a 100644 --- a/packages/@o3r/rules-engine/schematics/rules-engine-to-component/schema.ts +++ b/packages/@o3r/rules-engine/schematics/rules-engine-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateRulesEngineToComponentSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/rule-actions/rule-actions-pres.component.ts b/packages/@o3r/rules-engine/src/components/rules-engine/rule-actions/rule-actions-pres.component.ts index 3740b3d12d..594a96dad4 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/rule-actions/rule-actions-pres.component.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/rule-actions/rule-actions-pres.component.ts @@ -2,11 +2,11 @@ import { ChangeDetectionStrategy, Component, Input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import type { AllBlock, - Facts + Facts, } from '../../../engine'; @Component({ diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/rule-condition/rule-condition-pres.component.ts b/packages/@o3r/rules-engine/src/components/rules-engine/rule-condition/rule-condition-pres.component.ts index bdc0168607..47e9a9bf9d 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/rule-condition/rule-condition-pres.component.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/rule-condition/rule-condition-pres.component.ts @@ -2,14 +2,14 @@ import { ChangeDetectionStrategy, Component, Input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import type { BinaryOperation, GenericOperand, OperandFact, TopLevelCondition, - UnaryOperation + UnaryOperation, } from '../../../engine'; @Component({ diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/rule-key-value/rule-key-value-pres.component.ts b/packages/@o3r/rules-engine/src/components/rules-engine/rule-key-value/rule-key-value-pres.component.ts index fccf2e3a11..44de1ab10f 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/rule-key-value/rule-key-value-pres.component.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/rule-key-value/rule-key-value-pres.component.ts @@ -4,16 +4,16 @@ import { Input, OnChanges, SimpleChanges, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import { of, - Subject + Subject, } from 'rxjs'; import { delay, startWith, - switchMap + switchMap, } from 'rxjs/operators'; /** diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/rule-tree/rule-tree-pres.component.ts b/packages/@o3r/rules-engine/src/components/rules-engine/rule-tree/rule-tree-pres.component.ts index bf3065d5ef..193332e3e5 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/rule-tree/rule-tree-pres.component.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/rule-tree/rule-tree-pres.component.ts @@ -2,11 +2,11 @@ import { ChangeDetectionStrategy, Component, Input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import type { AllBlock, - TopLevelCondition + TopLevelCondition, } from '../../../engine'; @Component({ diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.component.ts b/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.component.ts index f6c9e13d4b..c5e677e3d0 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.component.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.component.ts @@ -3,12 +3,12 @@ import { ChangeDetectorRef, Component, Input, - ViewEncapsulation + ViewEncapsulation, } from '@angular/core'; import type { Ruleset, RulesetExecutionErrorEvent, - RulesetExecutionEvent + RulesetExecutionEvent, } from '../../../engine'; export type RulesetExecutionStatus = 'Error' | 'Active' | 'Deactivated' | 'NoEffect'; diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.module.ts b/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.module.ts index 1dd6fd5eaf..be147999a7 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.module.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/ruleset-history/ruleset-history-pres.module.ts @@ -1,28 +1,28 @@ import { CommonModule, - JsonPipe + JsonPipe, } from '@angular/common'; import { - NgModule + NgModule, } from '@angular/core'; import { - RuleActionsPresComponent + RuleActionsPresComponent, } from '../rule-actions/rule-actions-pres.component'; import { - RuleConditionPresComponent + RuleConditionPresComponent, } from '../rule-condition/rule-condition-pres.component'; import { - RuleKeyValuePresComponent + RuleKeyValuePresComponent, } from '../rule-key-value/rule-key-value-pres.component'; import { - RuleTreePresComponent + RuleTreePresComponent, } from '../rule-tree/rule-tree-pres.component'; import { O3rFallbackToPipe, - O3rJsonOrStringPipe + O3rJsonOrStringPipe, } from '../shared/index'; import { - RulesetHistoryPresComponent + RulesetHistoryPresComponent, } from './ruleset-history-pres.component'; @NgModule({ diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/shared/fallback-to.pipe.ts b/packages/@o3r/rules-engine/src/components/rules-engine/shared/fallback-to.pipe.ts index 34002c0ff3..d6c6678946 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/shared/fallback-to.pipe.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/shared/fallback-to.pipe.ts @@ -1,6 +1,6 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; @Pipe({ name: 'o3rFallbackTo', standalone: true }) diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.spec.ts b/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.spec.ts index d84008ebea..9b9befeebf 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.spec.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.spec.ts @@ -1,5 +1,5 @@ import { - O3rJsonOrStringPipe + O3rJsonOrStringPipe, } from './json-or-string.pipe'; describe('O3rJsonOrStringPipe', () => { diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.ts b/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.ts index 48a76c570b..6a33fc0722 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/shared/json-or-string.pipe.ts @@ -1,6 +1,6 @@ import { Pipe, - PipeTransform + PipeTransform, } from '@angular/core'; @Pipe({ diff --git a/packages/@o3r/rules-engine/src/components/rules-engine/shared/ruleset-history.helper.ts b/packages/@o3r/rules-engine/src/components/rules-engine/shared/ruleset-history.helper.ts index 09f9c3e205..cb308b6239 100644 --- a/packages/@o3r/rules-engine/src/components/rules-engine/shared/ruleset-history.helper.ts +++ b/packages/@o3r/rules-engine/src/components/rules-engine/shared/ruleset-history.helper.ts @@ -2,11 +2,11 @@ import type { DebugEvent, Ruleset, RulesetExecutionErrorEvent, - RulesetExecutionEvent + RulesetExecutionEvent, } from '../../../engine'; import type { RulesetExecutionDebug, - RulesetExecutionStatus + RulesetExecutionStatus, } from '../ruleset-history/ruleset-history-pres.component'; /** diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devkit.interface.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devkit.interface.ts index 5a06fbb712..fe5affd74a 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devkit.interface.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devkit.interface.ts @@ -3,11 +3,11 @@ import type { DevtoolsCommonOptions, MessageDataTypes, OtterMessageContent, - RequestMessagesContentMessage + RequestMessagesContentMessage, } from '@o3r/core'; import type { DebugEvent, - Ruleset + Ruleset, } from '../engine'; export interface RulesEngineDevtoolsServiceOptions extends DevtoolsCommonOptions { diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.service.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.service.ts index 80c1a58766..58d3414e72 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.service.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.service.ts @@ -2,21 +2,21 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import type { DevtoolsServiceInterface, - WindowWithDevtools + WindowWithDevtools, } from '@o3r/core'; import { - RulesEngineDevtoolsServiceOptions + RulesEngineDevtoolsServiceOptions, } from './rules-engine-devkit.interface'; import { - OtterRulesEngineDevtools + OtterRulesEngineDevtools, } from './rules-engine-devtools.service'; import { OTTER_RULES_ENGINE_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS + OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS, } from './rules-engine-devtools.token'; @Injectable({ diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.spec.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.spec.ts index 8ebd767c9b..0753b996f6 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.spec.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.console.spec.ts @@ -1,20 +1,20 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - RulesEngineDevtoolsConsoleService + RulesEngineDevtoolsConsoleService, } from './rules-engine-devtools.console.service'; import { - OtterRulesEngineDevtools + OtterRulesEngineDevtools, } from './rules-engine-devtools.service'; import { OTTER_RULES_ENGINE_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS + OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS, } from './rules-engine-devtools.token'; describe('Rules Engine DevTools console', () => { diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.message.service.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.message.service.ts index 3f67ac367e..1ef6e99536 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.message.service.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.message.service.ts @@ -2,37 +2,37 @@ import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { DevtoolsServiceInterface, filterMessageContent, - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { BehaviorSubject, combineLatest, fromEvent, - Subscription + Subscription, } from 'rxjs'; import type { - DebugEvent + DebugEvent, } from '../engine'; import { AvailableRulesEngineMessageContents, isRulesEngineMessage, RulesEngineDevtoolsServiceOptions, - RulesEngineMessageDataTypes + RulesEngineMessageDataTypes, } from './rules-engine-devkit.interface'; import { - OtterRulesEngineDevtools + OtterRulesEngineDevtools, } from './rules-engine-devtools.service'; import { OTTER_RULES_ENGINE_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS + OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS, } from './rules-engine-devtools.token'; @Injectable({ diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.module.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.module.ts index 58b509ca36..26e9acda59 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.module.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.module.ts @@ -1,25 +1,25 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - RulesetsStoreModule + RulesetsStoreModule, } from '../stores/index'; import type { - RulesEngineDevtoolsServiceOptions + RulesEngineDevtoolsServiceOptions, } from './rules-engine-devkit.interface'; import { - RulesEngineDevtoolsConsoleService + RulesEngineDevtoolsConsoleService, } from './rules-engine-devtools.console.service'; import { - RulesEngineDevtoolsMessageService + RulesEngineDevtoolsMessageService, } from './rules-engine-devtools.message.service'; import { OTTER_RULES_ENGINE_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS + OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS, } from './rules-engine-devtools.token'; @NgModule({ diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.service.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.service.ts index 1dc22b8548..0b35c98cfe 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.service.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.service.ts @@ -1,21 +1,21 @@ import { Inject, Injectable, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import { combineLatest, firstValueFrom, - Observable + Observable, } from 'rxjs'; import { map, scan, - shareReplay + shareReplay, } from 'rxjs/operators'; import type { ActiveRulesetsEvent, @@ -24,22 +24,22 @@ import type { DebugEvent, Ruleset, RulesetExecutionErrorEvent, - RulesetExecutionEvent + RulesetExecutionEvent, } from '../engine'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from '../services'; import { RulesetsModel, RulesetsStore, - selectRulesetsEntities + selectRulesetsEntities, } from '../stores'; import { - RulesEngineDevtoolsServiceOptions + RulesEngineDevtoolsServiceOptions, } from './rules-engine-devkit.interface'; import { OTTER_RULES_ENGINE_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS + OTTER_RULES_ENGINE_DEVTOOLS_OPTIONS, } from './rules-engine-devtools.token'; @Injectable({ diff --git a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.token.ts b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.token.ts index 0c61d34d3a..58955cf297 100644 --- a/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.token.ts +++ b/packages/@o3r/rules-engine/src/devkit/rules-engine-devtools.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import { - RulesEngineDevtoolsServiceOptions + RulesEngineDevtoolsServiceOptions, } from './rules-engine-devkit.interface'; export const OTTER_RULES_ENGINE_DEVTOOLS_DEFAULT_OPTIONS: RulesEngineDevtoolsServiceOptions = { diff --git a/packages/@o3r/rules-engine/src/engine/debug/engine.debug.spec.ts b/packages/@o3r/rules-engine/src/engine/debug/engine.debug.spec.ts index 6e04bb697e..e53992434a 100644 --- a/packages/@o3r/rules-engine/src/engine/debug/engine.debug.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/debug/engine.debug.spec.ts @@ -2,18 +2,18 @@ import { BehaviorSubject, firstValueFrom, Subject, - Subscription + Subscription, } from 'rxjs'; import { reduce, skip, - take + take, } from 'rxjs/operators'; import { - rulesetsObj + rulesetsObj, } from '../../../testing/mocks/two-rulesets'; import { - RulesEngine + RulesEngine, } from '../engine'; import { ActiveRulesetsEvent, @@ -21,10 +21,10 @@ import { AvailableRulesets, DebugEvent, RulesEngineOptions, - RulesetExecutionEvent + RulesetExecutionEvent, } from '../engine.interface'; import { - EngineDebugger + EngineDebugger, } from './engine.debug'; class MockPerformanceObserver { diff --git a/packages/@o3r/rules-engine/src/engine/debug/engine.debug.ts b/packages/@o3r/rules-engine/src/engine/debug/engine.debug.ts index 81a8b2dccf..b390a2fb84 100644 --- a/packages/@o3r/rules-engine/src/engine/debug/engine.debug.ts +++ b/packages/@o3r/rules-engine/src/engine/debug/engine.debug.ts @@ -1,6 +1,6 @@ import { Observable, - ReplaySubject + ReplaySubject, } from 'rxjs'; import { concatMap, @@ -8,10 +8,10 @@ import { shareReplay, startWith, tap, - withLatestFrom + withLatestFrom, } from 'rxjs/operators'; import type { - RulesEngine + RulesEngine, } from '../engine'; import { BaseRulesetExecution, @@ -20,21 +20,21 @@ import { RuleEvaluation, RuleEvaluationOutput, RulesetExecutionErrorEvent, - RulesetExecutionEvent + RulesetExecutionEvent, } from '../engine.interface'; import type { - Facts + Facts, } from '../fact'; import { - RulesetExecutor + RulesetExecutor, } from '../ruleset-executor'; import type { ActionBlock, - Ruleset + Ruleset, } from '../structure'; import { flagCachedRules, - retrieveRulesetTriggers + retrieveRulesetTriggers, } from './helpers'; export interface EngineDebuggerOptions { diff --git a/packages/@o3r/rules-engine/src/engine/debug/helpers.spec.ts b/packages/@o3r/rules-engine/src/engine/debug/helpers.spec.ts index e4a854fc25..24da5b2241 100644 --- a/packages/@o3r/rules-engine/src/engine/debug/helpers.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/debug/helpers.spec.ts @@ -1,79 +1,79 @@ import { RuleEvaluation, - RuleEvaluationOutput + RuleEvaluationOutput, } from '../engine.interface'; import { ActionBlock, - Rule + Rule, } from '../structure'; import { flagCachedRules, handleRuleEvaluationDebug, - retrieveRulesetTriggers + retrieveRulesetTriggers, } from './helpers'; const currentEvaluationsOutput = [ { - 'actions': [], - 'evaluation': { + actions: [], + evaluation: { // eslint-disable-next-line unicorn/numeric-separators-style -- timestamp - 'timestamp': 1639037495870, - 'outputActions': [], - 'id': 'first ruleset - rule zero', - 'triggers': { + timestamp: 1639037495870, + outputActions: [], + id: 'first ruleset - rule zero', + triggers: { '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0': { - 'destinationLocationCode': { - 'factName': 'destinationLocationCode', - 'newValue': 'LON' + destinationLocationCode: { + factName: 'destinationLocationCode', + newValue: 'LON' } } }, - 'temporaryFacts': {}, - 'rule': { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', - 'name': 'rule zero' + temporaryFacts: {}, + rule: { + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', + name: 'rule zero' } } }, { - 'actions': [ + actions: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'evaluation': { + evaluation: { // eslint-disable-next-line unicorn/numeric-separators-style -- timestamp - 'timestamp': 1639033679719, - 'outputActions': [ + timestamp: 1639033679719, + outputActions: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'id': 'first ruleset - rule one', - 'triggers': { + id: 'first ruleset - rule one', + triggers: { '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9': { - 'isMobileDevice': { - 'factName': 'isMobileDevice', - 'newValue': false + isMobileDevice: { + factName: 'isMobileDevice', + newValue: false } } }, - 'temporaryFacts': { - 'CMS_myFact': false + temporaryFacts: { + CMS_myFact: false }, - 'rule': { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule one' + rule: { + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule one' } } } @@ -81,66 +81,66 @@ const currentEvaluationsOutput = [ const prevEvaluationsOutput = [ { - 'actions': [], - 'evaluation': { + actions: [], + evaluation: { // eslint-disable-next-line unicorn/numeric-separators-style -- timestamp - 'timestamp': 1639033680955, - 'outputActions': [], - 'id': 'first ruleset - rule zero', - 'triggers': { + timestamp: 1639033680955, + outputActions: [], + id: 'first ruleset - rule zero', + triggers: { '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0': { - 'pageUrl': { - 'factName': 'pageUrl', - 'newValue': '/search' + pageUrl: { + factName: 'pageUrl', + newValue: '/search' } } }, - 'temporaryFacts': {}, - 'rule': { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', - 'name': 'rule zero' + temporaryFacts: {}, + rule: { + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', + name: 'rule zero' } } }, { - 'actions': [ + actions: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'evaluation': { + evaluation: { // eslint-disable-next-line unicorn/numeric-separators-style -- timestamp - 'timestamp': 1639033679719, - 'outputActions': [ + timestamp: 1639033679719, + outputActions: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'id': 'first ruleset - rule one', - 'triggers': { + id: 'first ruleset - rule one', + triggers: { '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9': { - 'isMobileDevice': { - 'factName': 'isMobileDevice', - 'newValue': false + isMobileDevice: { + factName: 'isMobileDevice', + newValue: false } } }, - 'temporaryFacts': { - 'CMS_myFact': false + temporaryFacts: { + CMS_myFact: false }, - 'rule': { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule one' + rule: { + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule one' } } } @@ -148,93 +148,93 @@ const prevEvaluationsOutput = [ const rulesEvaluations = [ { - 'timestamp': 1_639_040_241_950, - 'outputActions': [], - 'id': 'first ruleset - rule zero', - 'triggers': { + timestamp: 1_639_040_241_950, + outputActions: [], + id: 'first ruleset - rule zero', + triggers: { '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0': { - 'destinationLocationCode': { - 'factName': 'destinationLocationCode', - 'newValue': 'LON' + destinationLocationCode: { + factName: 'destinationLocationCode', + newValue: 'LON' } } }, - 'temporaryFacts': {}, - 'rule': { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', - 'name': 'rule zero' + temporaryFacts: {}, + rule: { + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', + name: 'rule zero' } }, { - 'timestamp': 1_639_040_201_253, - 'outputActions': [ + timestamp: 1_639_040_201_253, + outputActions: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'id': 'first ruleset - rule one', - 'triggers': { + id: 'first ruleset - rule one', + triggers: { '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9': { - 'isMobileDevice': { - 'factName': 'isMobileDevice', - 'newValue': false + isMobileDevice: { + factName: 'isMobileDevice', + newValue: false } } }, - 'temporaryFacts': { - 'CMS_myFact': false + temporaryFacts: { + CMS_myFact: false }, - 'rule': { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule one' + rule: { + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule one' } } ] as RuleEvaluation[]; const rule = { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule one', - 'inputRuntimeFacts': [], - 'inputFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule one', + inputRuntimeFacts: [], + inputFacts: [ 'isMobileDevice' ], - 'outputRuntimeFacts': ['CMS_myFact'], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + outputRuntimeFacts: ['CMS_myFact'], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'CMS_myFact', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'CMS_myFact', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'failureElements': [] + failureElements: [] } } as Rule; @@ -265,12 +265,12 @@ describe('Rules engine debug helpers', () => { it('handleRuleEvaluationDebug should create a rule evaluation object', () => { const outputAction = { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } as ActionBlock; const ruleEvaluation = handleRuleEvaluationDebug(rule, 'testRuleset', [outputAction], undefined, {}, [false], undefined); diff --git a/packages/@o3r/rules-engine/src/engine/debug/helpers.ts b/packages/@o3r/rules-engine/src/engine/debug/helpers.ts index cf1c625788..2f8d20de14 100644 --- a/packages/@o3r/rules-engine/src/engine/debug/helpers.ts +++ b/packages/@o3r/rules-engine/src/engine/debug/helpers.ts @@ -1,14 +1,14 @@ import { EvaluationReason, RuleEvaluation, - RuleEvaluationOutput + RuleEvaluationOutput, } from '../engine.interface'; import type { - Facts + Facts, } from '../fact'; import { ActionBlock, - Rule + Rule, } from '../structure'; /** diff --git a/packages/@o3r/rules-engine/src/engine/engine.interface.ts b/packages/@o3r/rules-engine/src/engine/engine.interface.ts index 669037dfc8..be253e3133 100644 --- a/packages/@o3r/rules-engine/src/engine/engine.interface.ts +++ b/packages/@o3r/rules-engine/src/engine/engine.interface.ts @@ -1,25 +1,25 @@ import type { ItemIdentifier, - Logger + Logger, } from '@o3r/core'; import { BehaviorSubject, - Observable + Observable, } from 'rxjs'; import type { - EngineDebugger + EngineDebugger, } from './debug/engine.debug'; import type { Fact, - Facts + Facts, } from './fact'; import type { - Operator + Operator, } from './operator'; import { ActionBlock, Rule, - Ruleset + Ruleset, } from './structure'; /** Performance object supporting NodeJs Performance and Web Performance reporting */ diff --git a/packages/@o3r/rules-engine/src/engine/engine.spec.ts b/packages/@o3r/rules-engine/src/engine/engine.spec.ts index 964dedfb3b..609c001207 100644 --- a/packages/@o3r/rules-engine/src/engine/engine.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/engine.spec.ts @@ -1,10 +1,10 @@ import { firstValueFrom, Observable, - Subject + Subject, } from 'rxjs'; import { - RulesEngine + RulesEngine, } from './engine'; describe('Rx Rule Engine', () => { diff --git a/packages/@o3r/rules-engine/src/engine/engine.ts b/packages/@o3r/rules-engine/src/engine/engine.ts index 0284d08fcb..b8f3730ac9 100644 --- a/packages/@o3r/rules-engine/src/engine/engine.ts +++ b/packages/@o3r/rules-engine/src/engine/engine.ts @@ -1,12 +1,12 @@ import type { - Logger + Logger, } from '@o3r/logger'; import { BehaviorSubject, firstValueFrom, merge, Observable, - of + of, } from 'rxjs'; import { delay, @@ -14,33 +14,33 @@ import { shareReplay, switchMap, takeUntil, - tap + tap, } from 'rxjs/operators'; import { - EngineDebugger + EngineDebugger, } from './debug/engine.debug'; import { FactObject, - RulesEngineOptions + RulesEngineOptions, } from './engine.interface'; import type { Fact, - Facts + Facts, } from './fact/index'; import { - filterRulesetsEventStream + filterRulesetsEventStream, } from './helpers/filter-ruleset-event.operator'; import { Operator, operatorList, - UnaryOperator + UnaryOperator, } from './operator/index'; import { - RulesetExecutor + RulesetExecutor, } from './ruleset-executor'; import { ActionBlock, - Ruleset + Ruleset, } from './structure'; /** Rules engine */ diff --git a/packages/@o3r/rules-engine/src/engine/fact/fact.interfaces.ts b/packages/@o3r/rules-engine/src/engine/fact/fact.interfaces.ts index c7e876d375..40822ce53f 100644 --- a/packages/@o3r/rules-engine/src/engine/fact/fact.interfaces.ts +++ b/packages/@o3r/rules-engine/src/engine/fact/fact.interfaces.ts @@ -1,5 +1,5 @@ import { - Observable + Observable, } from 'rxjs'; /** Represents all the supported facts types TOCHECK utils.Date vs Date */ diff --git a/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.spec.ts b/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.spec.ts index 0947fcb981..01e8a61507 100644 --- a/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.spec.ts @@ -1,72 +1,73 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import { BehaviorSubject, - of + of, } from 'rxjs'; import { - Operator + Operator, } from '../operator/operator.interface'; import { - operatorList + operatorList, } from '../operator/operators/index'; import { - RulesetExecutor + RulesetExecutor, } from '../ruleset-executor'; import { ActionBlock, - Ruleset + Ruleset, } from '../structure'; import { - filterRulesetsEventStream + filterRulesetsEventStream, } from './filter-ruleset-event.operator'; describe('Filter rulesets event operator', () => { const rulesets: Ruleset[] = [ { - 'id': 'ruleset1', - 'name': 'the first ruleset', - 'rules': [ + id: 'ruleset1', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [ 'UI_FACT_2' ], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'LITERAL', - 'value': true + lhs: { + type: 'LITERAL', + value: true }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], failureElements: [] @@ -75,64 +76,64 @@ describe('Filter rulesets event operator', () => { ] }, { - 'id': 'ruleset2', - 'name': 'the second ruleset', - 'rules': [ + id: 'ruleset2', + name: 'the second ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [ 'UI_FACT_2', 'UI_FACT_4' ], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'LITERAL', - 'value': true + lhs: { + type: 'LITERAL', + value: true }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: true }, { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_4', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_4', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false } ] } diff --git a/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.ts b/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.ts index 41f346b877..b8db058e44 100644 --- a/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.ts +++ b/packages/@o3r/rules-engine/src/engine/helpers/filter-ruleset-event.operator.ts @@ -1,14 +1,14 @@ import { combineLatest, - Observable + Observable, } from 'rxjs'; import { map, shareReplay, - switchMap + switchMap, } from 'rxjs/operators'; import { - RulesetExecutor + RulesetExecutor, } from '../ruleset-executor'; /** diff --git a/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.spec.ts b/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.spec.ts index 1133935beb..3e5098eb89 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.spec.ts @@ -1,5 +1,5 @@ import { - of + of, } from 'rxjs'; import { executeOperator, @@ -10,10 +10,10 @@ import { isValidDateInput, isValidDateRange, numberValidator, - parseRegExp + parseRegExp, } from './operator.helpers'; import { - Operator + Operator, } from './operator.interface'; describe('Operator helpers', () => { diff --git a/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.ts b/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.ts index 335140d74e..261d685084 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operator.helpers.ts @@ -1,10 +1,10 @@ import type { - Facts + Facts, } from '../fact'; import { DateInput, Operator, - SupportedSimpleTypes + SupportedSimpleTypes, } from './operator.interface'; /** diff --git a/packages/@o3r/rules-engine/src/engine/operator/operator.interface.ts b/packages/@o3r/rules-engine/src/engine/operator/operator.interface.ts index 57ab9a4f3f..c3026eac4c 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operator.interface.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operator.interface.ts @@ -1,5 +1,5 @@ import type { - Facts + Facts, } from '../fact/fact.interfaces'; /** diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.spec.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.spec.ts index 8a2e27d54e..84db157d48 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.spec.ts @@ -21,7 +21,7 @@ import { oneLower, oneMatches, oneRangeNumber, - stringContains + stringContains, } from './array-based.operators'; describe('Array based operator', () => { diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.ts index 8b8e9d612c..db27a12eb9 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/array-based.operators.ts @@ -3,11 +3,11 @@ import { isString, isSupportedSimpleTypes, numberValidator, - parseRegExp + parseRegExp, } from '../operator.helpers'; import { Operator, - SupportedSimpleTypes + SupportedSimpleTypes, } from '../operator.interface'; /** diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.spec.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.spec.ts index 508df844b3..141cc96221 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.spec.ts @@ -7,7 +7,7 @@ import { matchesPattern, notEquals, notInArray, - notInString + notInString, } from './basic.operators'; describe('Basic operator', () => { diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.ts index ad98dda8c3..c4db0733a1 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/basic.operators.ts @@ -1,12 +1,12 @@ import { isString, isSupportedSimpleTypes, - parseRegExp + parseRegExp, } from '../operator.helpers'; import { Operator, SupportedSimpleTypes, - UnaryOperator + UnaryOperator, } from '../operator.interface'; /** diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.spec.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.spec.ts index 6471fcb12e..6691e9873b 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.spec.ts @@ -1,5 +1,5 @@ import { - executeOperator + executeOperator, } from '../operator.helpers'; import { dateAfter, @@ -8,7 +8,7 @@ import { dateInNextMinutes, dateNotEquals, dateNotInNextMinutes, - inRangeDate + inRangeDate, } from './date-based.operators'; describe('Operators', () => { diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.ts index ca44a8e269..35ec8dfdb8 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/date-based.operators.ts @@ -1,11 +1,11 @@ import { isValidDateInput, isValidDateRange, - numberValidator + numberValidator, } from '../operator.helpers'; import { DateInput, - Operator + Operator, } from '../operator.interface'; /** diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/index.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/index.ts index f43a959738..63e4410415 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/index.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/index.ts @@ -1,14 +1,14 @@ import { - arrayBasedOperators + arrayBasedOperators, } from './array-based.operators'; import { - basicOperators + basicOperators, } from './basic.operators'; import { - dateBasedOperators + dateBasedOperators, } from './date-based.operators'; import { - numberBasedOperators + numberBasedOperators, } from './number-based.operators'; export * from './array-based.operators'; diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.spec.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.spec.ts index 72ee3d5ec3..4055bfa781 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.spec.ts @@ -2,7 +2,7 @@ import { greaterThan, greaterThanOrEqual, lessOrEqual, - lessThan + lessThan, } from './number-based.operators'; describe('Number based operator', () => { diff --git a/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.ts b/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.ts index 066499cdaa..652b8b07f4 100644 --- a/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.ts +++ b/packages/@o3r/rules-engine/src/engine/operator/operators/number-based.operators.ts @@ -1,8 +1,8 @@ import { - numberValidator + numberValidator, } from '../operator.helpers'; import { - Operator + Operator, } from '../operator.interface'; /** diff --git a/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.spec.ts b/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.spec.ts index 997edd1c19..241ce1e483 100644 --- a/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.spec.ts +++ b/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.spec.ts @@ -2,7 +2,7 @@ import { AllConditions, BinaryOperation, NotCondition, - OperandFact + OperandFact, } from '../structure'; import { isAllConditions, @@ -11,7 +11,7 @@ import { isNotCondition, isOperandFact, isOperandLiteral, - isOperandRuntimeFact + isOperandRuntimeFact, } from './rule.helpers'; describe('Rule helpers', () => { diff --git a/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.ts b/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.ts index 9773497909..935a6fdc29 100644 --- a/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.ts +++ b/packages/@o3r/rules-engine/src/engine/rule/rule.helpers.ts @@ -5,7 +5,7 @@ import { NotCondition, Operand, OperandFact, - UnaryOperation + UnaryOperation, } from '../structure'; /** diff --git a/packages/@o3r/rules-engine/src/engine/ruleset-executor.ts b/packages/@o3r/rules-engine/src/engine/ruleset-executor.ts index 6bc0a58435..3da48c50b6 100644 --- a/packages/@o3r/rules-engine/src/engine/ruleset-executor.ts +++ b/packages/@o3r/rules-engine/src/engine/ruleset-executor.ts @@ -1,11 +1,11 @@ /** Ruleset executor */ import { - JSONPath + JSONPath, } from 'jsonpath-plus'; import { combineLatest, Observable, - of + of, } from 'rxjs'; import { distinctUntilChanged, @@ -14,28 +14,28 @@ import { shareReplay, startWith, switchMap, - tap + tap, } from 'rxjs/operators'; import { - handleRuleEvaluationDebug + handleRuleEvaluationDebug, } from './debug/helpers'; import type { - RulesEngine + RulesEngine, } from './engine'; import { EngineRuleset, EvaluationReason, RuleEvaluation, - RuleEvaluationOutput + RuleEvaluationOutput, } from './engine.interface'; import type { - Facts + Facts, } from './fact'; import { - executeOperator + executeOperator, } from './operator/operator.helpers'; import { - Operator + Operator, } from './operator/operator.interface'; import { isAllConditions, @@ -43,7 +43,7 @@ import { isNotCondition, isOperandFact, isOperandLiteral, - isOperandRuntimeFact + isOperandRuntimeFact, } from './rule/rule.helpers'; import { ActionBlock, @@ -53,7 +53,7 @@ import { IfElseBlock, NestedCondition, Rule, - Ruleset + Ruleset, } from './structure'; /** Type of the retrieve fact function */ diff --git a/packages/@o3r/rules-engine/src/engine/structure.ts b/packages/@o3r/rules-engine/src/engine/structure.ts index 86f7867ba0..287c8b3e54 100644 --- a/packages/@o3r/rules-engine/src/engine/structure.ts +++ b/packages/@o3r/rules-engine/src/engine/structure.ts @@ -1,6 +1,6 @@ import type { ItemIdentifier, - RulesEngineAction + RulesEngineAction, } from '@o3r/core'; export type NativeTypes = string | boolean | number; diff --git a/packages/@o3r/rules-engine/src/fact/fact.abstract-service.ts b/packages/@o3r/rules-engine/src/fact/fact.abstract-service.ts index f64fc17afb..f9c65a4561 100644 --- a/packages/@o3r/rules-engine/src/fact/fact.abstract-service.ts +++ b/packages/@o3r/rules-engine/src/fact/fact.abstract-service.ts @@ -1,9 +1,9 @@ import { FactDefinitions, - FactSet + FactSet, } from '../engine/index'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from '../services/runner/rules-engine.runner.service'; /** Abstract fact set service */ diff --git a/packages/@o3r/rules-engine/src/fact/fact.spec.ts b/packages/@o3r/rules-engine/src/fact/fact.spec.ts index 360d14a189..56612f089f 100644 --- a/packages/@o3r/rules-engine/src/fact/fact.spec.ts +++ b/packages/@o3r/rules-engine/src/fact/fact.spec.ts @@ -1,12 +1,12 @@ import { BehaviorSubject, - Subject + Subject, } from 'rxjs'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from '../services/runner/rules-engine.runner.service'; import { - FactsService + FactsService, } from './fact.abstract-service'; class FakeFactsService extends FactsService { diff --git a/packages/@o3r/rules-engine/src/fact/reserved.facts.ts b/packages/@o3r/rules-engine/src/fact/reserved.facts.ts index 2bbbedd3f1..c51a600c0e 100644 --- a/packages/@o3r/rules-engine/src/fact/reserved.facts.ts +++ b/packages/@o3r/rules-engine/src/fact/reserved.facts.ts @@ -1,5 +1,5 @@ import type { - FactDefinitions + FactDefinitions, } from '../engine/index'; /** diff --git a/packages/@o3r/rules-engine/src/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.ts b/packages/@o3r/rules-engine/src/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.ts index 3d1931763d..32fce6e98a 100644 --- a/packages/@o3r/rules-engine/src/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.ts +++ b/packages/@o3r/rules-engine/src/fixtures/jasmine/rules-engine.runner.service.fixture.jasmine.ts @@ -1,5 +1,5 @@ import type { - RulesEngineRunnerService + RulesEngineRunnerService, } from '@o3r/rules-engine'; /** Jasmine Fixture class for RulesEngineRunnerService */ diff --git a/packages/@o3r/rules-engine/src/fixtures/jest/rules-engine.runner.service.fixture.jest.ts b/packages/@o3r/rules-engine/src/fixtures/jest/rules-engine.runner.service.fixture.jest.ts index 54aec7420b..b7ba3a948e 100644 --- a/packages/@o3r/rules-engine/src/fixtures/jest/rules-engine.runner.service.fixture.jest.ts +++ b/packages/@o3r/rules-engine/src/fixtures/jest/rules-engine.runner.service.fixture.jest.ts @@ -2,7 +2,7 @@ import type { Fact, Operator, RulesEngineRunnerService, - UnaryOperator + UnaryOperator, } from '@o3r/rules-engine'; /** Jest Fixture class for RulesEngineRunnerService */ diff --git a/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time-fact.service.ts b/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time-fact.service.ts index e1e92950cd..41772f3c21 100644 --- a/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time-fact.service.ts +++ b/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time-fact.service.ts @@ -1,17 +1,17 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - BehaviorSubject + BehaviorSubject, } from 'rxjs'; import { - FactsService + FactsService, } from '../../fact'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from '../../services'; import { - CurrentTimeFacts + CurrentTimeFacts, } from './current-time.facts'; @Injectable({ diff --git a/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time.facts.ts b/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time.facts.ts index 07304ce006..1f0f542ce8 100644 --- a/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time.facts.ts +++ b/packages/@o3r/rules-engine/src/inner-facts/current-time/current-time.facts.ts @@ -1,5 +1,5 @@ import type { - FactDefinitions + FactDefinitions, } from '../../engine'; /** diff --git a/packages/@o3r/rules-engine/src/interfaces/action.interfaces.ts b/packages/@o3r/rules-engine/src/interfaces/action.interfaces.ts index de64fdbf15..3a218e44f4 100644 --- a/packages/@o3r/rules-engine/src/interfaces/action.interfaces.ts +++ b/packages/@o3r/rules-engine/src/interfaces/action.interfaces.ts @@ -1,5 +1,5 @@ import type { - ActionBlock + ActionBlock, } from '../engine/index'; /** diff --git a/packages/@o3r/rules-engine/src/services/rules-engine.token.ts b/packages/@o3r/rules-engine/src/services/rules-engine.token.ts index 63a2e3f04b..fe8b567c5c 100644 --- a/packages/@o3r/rules-engine/src/services/rules-engine.token.ts +++ b/packages/@o3r/rules-engine/src/services/rules-engine.token.ts @@ -1,5 +1,5 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; /** Determine if the action should be executed */ diff --git a/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.module.ts b/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.module.ts index d5915cc0ab..e62ea784a6 100644 --- a/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.module.ts +++ b/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.module.ts @@ -1,23 +1,23 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - StoreModule + StoreModule, } from '@ngrx/store'; import { - LoggerModule + LoggerModule, } from '@o3r/logger'; import { - RulesetsStoreModule + RulesetsStoreModule, } from '../../stores/index'; import { DEFAULT_RULES_ENGINE_OPTIONS, RULES_ENGINE_OPTIONS, - RulesEngineServiceOptions + RulesEngineServiceOptions, } from '../rules-engine.token'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from './rules-engine.runner.service'; @NgModule({ diff --git a/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.spec.ts b/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.spec.ts index d277c3b1bc..1d4c15a0f4 100644 --- a/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.spec.ts +++ b/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.spec.ts @@ -1,60 +1,60 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { select, Store, - StoreModule + StoreModule, } from '@ngrx/store'; import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import { BehaviorSubject, firstValueFrom, Observable, of, - Subject + Subject, } from 'rxjs'; import { distinctUntilChanged, map, - take + take, } from 'rxjs/operators'; import { - jsonOneRulesetOneRuleNoCondPlaceholder + jsonOneRulesetOneRuleNoCondPlaceholder, } from '../../../testing/mocks/oneruleset-onerule-nocond-placeholder.mock'; import { - jsonOneRulesetOneRuleNoCond + jsonOneRulesetOneRuleNoCond, } from '../../../testing/mocks/oneruleset-onerule-nocond.mock'; import { - jsonOneRulesetOneRuleReexecution + jsonOneRulesetOneRuleReexecution, } from '../../../testing/mocks/oneruleset-onerule-reexecution.mock'; import { - jsonOneRulesetThreeRulesOneThrows + jsonOneRulesetThreeRulesOneThrows, } from '../../../testing/mocks/oneruleset-threerules-onethrows.mock'; import { - jsonOneRulesetThreeRulesUndefinedFactUsed + jsonOneRulesetThreeRulesUndefinedFactUsed, } from '../../../testing/mocks/oneruleset-threerules-undefinedfactused.mock'; import { - jsonOneRulesetTwoNestedRules + jsonOneRulesetTwoNestedRules, } from '../../../testing/mocks/oneruleset-twonestedrules.mock'; import { - jsonOneRulesetTwoRulesAnyAndAll + jsonOneRulesetTwoRulesAnyAndAll, } from '../../../testing/mocks/oneruleset-tworules-any-and-all.mock'; import { - jsonOneRulesetTwoRules + jsonOneRulesetTwoRules, } from '../../../testing/mocks/oneruleset-tworules.mock'; import { - jsonOneRulesetValidOneRuleNoCond + jsonOneRulesetValidOneRuleNoCond, } from '../../../testing/mocks/onerulesetvalid-onerule-nocond.mock'; import { selectCurrentShoppingCart, @@ -62,33 +62,33 @@ import { setShoppingCartEntity, setXmasHampersInCart, type ShoppingCartStore, - ShoppingCartStoreModule + ShoppingCartStoreModule, } from '../../../testing/mocks/stores/shopping-cart/index'; import { - ShoppingCart + ShoppingCart, } from '../../../testing/mocks/stores/shopping-cart/shopping-cart.model'; import { - jsonTwoRulesetsBothOnDemand + jsonTwoRulesetsBothOnDemand, } from '../../../testing/mocks/tworulesets-both-ondemand'; import { - jsonTwoRulesetsOneOnDemand + jsonTwoRulesetsOneOnDemand, } from '../../../testing/mocks/tworulesets-one-ondemand'; import { - jsonTwoRulesetTwoRulesNoContext + jsonTwoRulesetTwoRulesNoContext, } from '../../../testing/mocks/tworulesets-tworules-nocontext.mock'; import { - jsonTwoRulesetTwoRules + jsonTwoRulesetTwoRules, } from '../../../testing/mocks/tworulesets-tworules.mock'; import { - xmasHamper + xmasHamper, } from '../../../testing/mocks/xmas-hamper.mock'; import { RulesetsStore, RulesetsStoreModule, - setRulesetsEntities + setRulesetsEntities, } from '../../stores/index'; import { - RulesEngineRunnerService + RulesEngineRunnerService, } from './rules-engine.runner.service'; describe('Rules engine service', () => { diff --git a/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.ts b/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.ts index 935ff94ffb..4d4fc119f9 100644 --- a/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.ts +++ b/packages/@o3r/rules-engine/src/services/runner/rules-engine.runner.service.ts @@ -2,54 +2,54 @@ import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { select, - Store + Store, } from '@ngrx/store'; import type { - RulesEngineActionHandler + RulesEngineActionHandler, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { BehaviorSubject, combineLatest, Observable, - Subscription + Subscription, } from 'rxjs'; import { filter, map, shareReplay, - switchMap + switchMap, } from 'rxjs/operators'; import type { ActionBlock, Fact, Operator, Ruleset, - UnaryOperator + UnaryOperator, } from '../../engine/index'; import { EngineDebugger, operatorList, - RulesEngine + RulesEngine, } from '../../engine/index'; import type { - RulesetsStore + RulesetsStore, } from '../../stores'; import { selectActiveRuleSets, selectAllRulesets, selectComponentsLinkedToRuleset, - setRulesetsEntities + setRulesetsEntities, } from '../../stores'; import { RULES_ENGINE_OPTIONS, - RulesEngineServiceOptions + RulesEngineServiceOptions, } from '../rules-engine.token'; @Injectable() diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.actions.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.actions.ts index d8af1598aa..49e0379f8d 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.actions.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.actions.ts @@ -1,6 +1,6 @@ import { createAction, - props + props, } from '@ngrx/store'; import { asyncProps, @@ -9,11 +9,11 @@ import { FromApiActionPayload, SetActionPayload, SetAsyncStoreItemEntitiesActionPayload, - UpdateActionPayload + UpdateActionPayload, } from '@o3r/core'; import { RulesetsModel, - RulesetsStateDetails + RulesetsStateDetails, } from './rulesets.state'; /** StateDetailsActions */ diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.spec.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.spec.ts index 9ff2595f46..c1dc5c74f1 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.spec.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.spec.ts @@ -1,24 +1,24 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - provideMockActions + provideMockActions, } from '@ngrx/effects/testing'; import { - Store + Store, } from '@ngrx/store'; import { ReplaySubject, Subject, - Subscription + Subscription, } from 'rxjs'; import { - RulesetsEffect + RulesetsEffect, } from './rulesets.effect'; describe('Rules Engine Effects', () => { diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.ts index 1a487bf4ac..febb3fdc89 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.effect.ts @@ -1,22 +1,22 @@ import { - Injectable + Injectable, } from '@angular/core'; import { Actions, createEffect, - ofType + ofType, } from '@ngrx/effects'; import { - fromApiEffectSwitchMap + fromApiEffectSwitchMap, } from '@o3r/core'; import { from, - of + of, } from 'rxjs'; import { catchError, map, - mergeMap + mergeMap, } from 'rxjs/operators'; import { cancelRulesetsRequest, @@ -24,7 +24,7 @@ import { setRulesetsEntities, setRulesetsEntitiesFromApi, upsertRulesetsEntities, - upsertRulesetsEntitiesFromApi + upsertRulesetsEntitiesFromApi, } from './rulesets.actions'; /** diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.module.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.module.ts index e97e7d99ac..873b6dce2d 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.module.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.module.ts @@ -1,25 +1,25 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - RulesetsEffect + RulesetsEffect, } from './rulesets.effect'; import { - rulesetsReducer + rulesetsReducer, } from './rulesets.reducer'; import { RULESETS_STORE_NAME, - RulesetsState + RulesetsState, } from './rulesets.state'; /** Token of the Rulesets reducer */ diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.spec.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.spec.ts index f5ccea2eb5..0090f0ee9f 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.spec.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.spec.ts @@ -1,10 +1,10 @@ import * as actions from './rulesets.actions'; import { rulesetsInitialState, - rulesetsReducer + rulesetsReducer, } from './rulesets.reducer'; import { - RulesetsState + RulesetsState, } from './rulesets.state'; describe('Rulesets Store reducer', () => { diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.ts index 185843ab36..4e9d034164 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.reducer.ts @@ -1,20 +1,20 @@ import { - createEntityAdapter + createEntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import { - asyncStoreItemAdapter + asyncStoreItemAdapter, } from '@o3r/core'; import * as actions from './rulesets.actions'; import { RulesetsModel, RulesetsState, - RulesetsStateDetails + RulesetsStateDetails, } from './rulesets.state'; /** diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.spec.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.spec.ts index eac68eb8d8..4c5a264d40 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.spec.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.spec.ts @@ -1,10 +1,10 @@ import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import * as selectors from './rulesets.selectors'; import { RulesetsModel, - RulesetsState + RulesetsState, } from './rulesets.state'; describe('RuleSets Selector tests', () => { @@ -108,8 +108,8 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r1.id, r2.id], entities: { - 'r1': r1, - 'r2': r2 + r1: r1, + r2: r2 }, requestIds: [] }; @@ -122,8 +122,8 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r3.id, r2.id], entities: { - 'r3': r3, - 'r2': r2 + r3: r3, + r2: r2 }, requestIds: [] }; @@ -136,8 +136,8 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r3.id, r4.id], entities: { - 'r3': r3, - 'r4': r4 + r3: r3, + r4: r4 }, requestIds: [] }; @@ -150,8 +150,8 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id], entities: { - 'r2': r2, - 'r4': r4 + r2: r2, + r4: r4 }, requestIds: [] }; @@ -164,9 +164,9 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id, r5.id], entities: { - 'r2': r2, - 'r4': r4, - 'r5': r5 + r2: r2, + r4: r4, + r5: r5 }, requestIds: [] }; @@ -179,9 +179,9 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id, r6.id], entities: { - 'r2': r2, - 'r4': r4, - 'r6': r6 + r2: r2, + r4: r4, + r6: r6 }, requestIds: [] }; @@ -194,9 +194,9 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id, r7.id], entities: { - 'r2': r2, - 'r4': r4, - 'r7': r7 + r2: r2, + r4: r4, + r7: r7 }, requestIds: [] }; @@ -209,9 +209,9 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id, r8.id], entities: { - 'r2': r2, - 'r4': r4, - 'r8': r8 + r2: r2, + r4: r4, + r8: r8 }, requestIds: [] }; @@ -224,9 +224,9 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id, r8.id], entities: { - 'r2': r2, - 'r4': r4, - 'r8': r8 + r2: r2, + r4: r4, + r8: r8 }, requestIds: [] }; @@ -242,9 +242,9 @@ describe('RuleSets Selector tests', () => { const state: RulesetsState = { ids: [r2.id, r4.id, r8.id], entities: { - 'r2': r2, - 'r4': r4, - 'r8': r8 + r2: r2, + r4: r4, + r8: r8 }, requestIds: [] }; diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.ts index 853b6593cd..1b8a72661c 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.selectors.ts @@ -1,19 +1,19 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { - computeItemIdentifier + computeItemIdentifier, } from '@o3r/core'; import type { - Ruleset + Ruleset, } from '../../engine'; import { - rulesetsAdapter + rulesetsAdapter, } from './rulesets.reducer'; import { RULESETS_STORE_NAME, - RulesetsState + RulesetsState, } from './rulesets.state'; const { selectIds, selectEntities, selectAll, selectTotal } = rulesetsAdapter.getSelectors(); diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.state.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.state.ts index a3187c7740..13ec012bbd 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.state.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.state.ts @@ -1,11 +1,11 @@ import { - EntityState + EntityState, } from '@ngrx/entity'; import { - AsyncStoreItem + AsyncStoreItem, } from '@o3r/core'; import type { - Ruleset + Ruleset, } from '../../engine'; /** diff --git a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.sync.ts b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.sync.ts index 25f2b55a55..7c98b6a0b9 100644 --- a/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.sync.ts +++ b/packages/@o3r/rules-engine/src/stores/rulesets/rulesets.sync.ts @@ -1,14 +1,14 @@ import { asyncStoreItemAdapter, - Serializer + Serializer, } from '@o3r/core'; import { rulesetsAdapter, - rulesetsInitialState + rulesetsInitialState, } from './rulesets.reducer'; import { RulesetsModel, - RulesetsState + RulesetsState, } from './rulesets.state'; export const rulesetsStorageSerializer = (state: RulesetsState) => { diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond-placeholder.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond-placeholder.mock.ts index 32838c65e5..7d8c371138 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond-placeholder.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond-placeholder.mock.ts @@ -1,31 +1,31 @@ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetOneRuleNoCondPlaceholder: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_PLACEHOLDER', - 'placeholderId': 'myPlaceholderId', - 'value': 'relativePathToMyPlaceholder._LANGUAGE_.json' + elementType: 'ACTION', + actionType: 'UPDATE_PLACEHOLDER', + placeholderId: 'myPlaceholderId', + value: 'relativePathToMyPlaceholder._LANGUAGE_.json' } ], - 'failureElements': [] + failureElements: [] } } ] diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond.mock.ts index 711bb737de..4bad36dc88 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-nocond.mock.ts @@ -1,31 +1,31 @@ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetOneRuleNoCond: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [] + failureElements: [] } } ] diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-reexecution.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-reexecution.mock.ts index 3eb688155d..6432052722 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-reexecution.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-onerule-reexecution.mock.ts @@ -1,97 +1,98 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetOneRuleReexecution: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e326428a-8b2e-4615-9c33-ee3e9674e81a', - 'name': 'test ruleset', - 'rules': [ + id: 'e326428a-8b2e-4615-9c33-ee3e9674e81a', + name: 'test ruleset', + rules: [ { - 'id': '5e7c37c9-b483-4742-86f5-bdae9b155f09', - 'name': 'init rule', - 'outputRuntimeFacts': ['CMS_myFact'], - 'inputFacts': ['foieGrasPrice', 'pageUrl'], - 'inputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '5e7c37c9-b483-4742-86f5-bdae9b155f09', + name: 'init rule', + outputRuntimeFacts: ['CMS_myFact'], + inputFacts: ['foieGrasPrice', 'pageUrl'], + inputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'CMS_myFact', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'CMS_myFact', + value: false }, { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', 'value': 'foieGrasPrice' + lhs: { + type: 'FACT', value: 'foieGrasPrice' }, - 'rhs': { - 'type': 'LITERAL', 'value': '50' + rhs: { + type: 'LITERAL', value: '50' }, - 'operator': 'equals' + operator: 'equals' }, { - 'lhs': { - 'type': 'FACT', - 'value': 'pageUrl' + lhs: { + type: 'FACT', + value: 'pageUrl' }, - 'rhs': { - 'type': 'LITERAL', - 'value': 'upsell' + rhs: { + type: 'LITERAL', + value: 'upsell' }, - 'operator': 'stringContains' + operator: 'stringContains' }] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'CMS_myFact', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'CMS_myFact', + value: true } ], - 'failureElements': [] + failureElements: [] }], - 'failureElements': [] + failureElements: [] } }, { - 'id': '9d6c1b83-9350-4ab5-beb1-3f1782ab334b', - 'name': 'best rule 2', - 'outputRuntimeFacts': [], - 'inputFacts': [], - 'inputRuntimeFacts': ['CMS_myFact'], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'all': [{ - 'lhs': { - 'type': 'RUNTIME_FACT', - 'value': 'CMS_myFact' + id: '9d6c1b83-9350-4ab5-beb1-3f1782ab334b', + name: 'best rule 2', + outputRuntimeFacts: [], + inputFacts: [], + inputRuntimeFacts: ['CMS_myFact'], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + all: [{ + lhs: { + type: 'RUNTIME_FACT', + value: 'CMS_myFact' }, - 'rhs': { - 'type': 'LITERAL', - 'value': true + rhs: { + type: 'LITERAL', + value: true }, - 'operator': 'equals' + operator: 'equals' }] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_ASSET', - 'asset': 'assets-demo-app/img/places/islands.jpg', - 'value': 'assets-demo-app/img/places/airplane.jpg' + elementType: 'ACTION', + actionType: 'UPDATE_ASSET', + asset: 'assets-demo-app/img/places/islands.jpg', + value: 'assets-demo-app/img/places/airplane.jpg' }], - 'failureElements': [] + failureElements: [] } } ] diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-onethrows.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-onethrows.mock.ts index 0965a49844..5eb95644f9 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-onethrows.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-onethrows.mock.ts @@ -1,169 +1,170 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetThreeRulesOneThrows: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'unknownFact' + lhs: { + type: 'FACT', + value: 'unknownFact' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key.success', - 'value': 'my.loc.value.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key.success', + value: 'my.loc.value.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key.failure', - 'value': 'my.loc.value.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key.failure', + value: 'my.loc.value.failure' } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'unknownFact' + lhs: { + type: 'FACT', + value: 'unknownFact' }, - 'operator': 'isUndefined' + operator: 'isUndefined' } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.success', - 'value': 'my.loc.value2.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.success', + value: 'my.loc.value2.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.failure', - 'value': 'my.loc.value2.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.failure', + value: 'my.loc.value2.failure' } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'factWithUndefinedValue' + lhs: { + type: 'FACT', + value: 'factWithUndefinedValue' }, - 'operator': 'isUndefined' + operator: 'isUndefined' } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key3.success', - 'value': 'my.loc.value3.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key3.success', + value: 'my.loc.value3.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key3.failure', - 'value': 'my.loc.value3.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key3.failure', + value: 'my.loc.value3.failure' } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'factWithUndefinedValue' + lhs: { + type: 'FACT', + value: 'factWithUndefinedValue' }, - 'operator': 'inString', - 'rhs': { - 'type': 'LITERAL', - 'value': undefined + operator: 'inString', + rhs: { + type: 'LITERAL', + value: undefined } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key4.success', - 'value': 'my.loc.value4.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key4.success', + value: 'my.loc.value4.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key4.failure', - 'value': 'my.loc.value4.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key4.failure', + value: 'my.loc.value4.failure' } ] } diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-undefinedfactused.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-undefinedfactused.mock.ts index 7755c161b5..fc784472f0 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-undefinedfactused.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-threerules-undefinedfactused.mock.ts @@ -1,127 +1,128 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetThreeRulesUndefinedFactUsed: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'unknownFact' + lhs: { + type: 'FACT', + value: 'unknownFact' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key.success', - 'value': 'my.loc.value.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key.success', + value: 'my.loc.value.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key.failure', - 'value': 'my.loc.value.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key.failure', + value: 'my.loc.value.failure' } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'unknownFact' + lhs: { + type: 'FACT', + value: 'unknownFact' }, - 'operator': 'isUndefined' + operator: 'isUndefined' } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.success', - 'value': 'my.loc.value2.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.success', + value: 'my.loc.value2.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.failure', - 'value': 'my.loc.value2.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.failure', + value: 'my.loc.value2.failure' } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'factWithUndefinedValue' + lhs: { + type: 'FACT', + value: 'factWithUndefinedValue' }, - 'operator': 'isUndefined' + operator: 'isUndefined' } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key3.success', - 'value': 'my.loc.value3.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key3.success', + value: 'my.loc.value3.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key3.failure', - 'value': 'my.loc.value3.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key3.failure', + value: 'my.loc.value3.failure' } ] } diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-twonestedrules.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-twonestedrules.mock.ts index 89f35636b4..2f97f3a8f1 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-twonestedrules.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-twonestedrules.mock.ts @@ -1,140 +1,141 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetTwoNestedRules: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['isMobileDevice'], - 'outputRuntimeFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: ['isMobileDevice'], + outputRuntimeFacts: [ 'UI_FACT_2' ], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', - 'name': 'the second rule', - 'inputRuntimeFacts': ['UI_FACT_2'], - 'inputFacts': ['cart'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', + name: 'the second rule', + inputRuntimeFacts: ['UI_FACT_2'], + inputFacts: ['cart'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'RUNTIME_FACT', - 'value': 'UI_FACT_2' + lhs: { + type: 'RUNTIME_FACT', + value: 'UI_FACT_2' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.success', - 'value': 'my.loc.value2.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.success', + value: 'my.loc.value2.success' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key3.success', - 'value': 'my.loc.value3.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key3.success', + value: 'my.loc.value3.success' }, { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'cart', - 'path': '$.xmasHampers[0].hamperItems[1].id' + lhs: { + type: 'FACT', + value: 'cart', + path: '$.xmasHampers[0].hamperItems[1].id' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': 'foieGras' + operator: 'equals', + rhs: { + type: 'LITERAL', + value: 'foieGras' } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key4.success', - 'value': 'my.loc.value4.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key4.success', + value: 'my.loc.value4.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key5.failure', - 'value': 'my.loc.value5.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key5.failure', + value: 'my.loc.value5.failure' } ] }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key6.success', - 'value': 'my.loc.value6.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key6.success', + value: 'my.loc.value6.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false } ] } diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules-any-and-all.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules-any-and-all.mock.ts index 7391d6544e..5c5050ccff 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules-any-and-all.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules-any-and-all.mock.ts @@ -1,108 +1,109 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetTwoRulesAnyAndAll: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th8', - 'name': 'ALL and ANY ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th8', + name: 'ALL and ANY ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule with ALL', - 'inputRuntimeFacts': [], - 'inputFacts': ['foieGrasPrice'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'all': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule with ALL', + inputRuntimeFacts: [], + inputFacts: ['foieGrasPrice'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + all: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'foieGrasPrice' + lhs: { + type: 'FACT', + value: 'foieGrasPrice' }, - 'operator': 'isDefined' + operator: 'isDefined' }, { - 'lhs': { - 'type': 'FACT', - 'value': 'foieGrasPrice' + lhs: { + type: 'FACT', + value: 'foieGrasPrice' }, - 'rhs': { - 'type': 'LITERAL', - 'value': 0 + rhs: { + type: 'LITERAL', + value: 0 }, - 'operator': 'greaterThan' + operator: 'greaterThan' } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'andOutput', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'andOutput', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'andOutput', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'andOutput', + value: false } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', - 'name': 'the second rule with ANY', - 'inputRuntimeFacts': [], - 'inputFacts': ['foieGrasPrice'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', + name: 'the second rule with ANY', + inputRuntimeFacts: [], + inputFacts: ['foieGrasPrice'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'foieGrasPrice' + lhs: { + type: 'FACT', + value: 'foieGrasPrice' }, - 'operator': 'isNotDefined' + operator: 'isNotDefined' }, { - 'lhs': { - 'type': 'FACT', - 'value': 'foieGrasPrice' + lhs: { + type: 'FACT', + value: 'foieGrasPrice' }, - 'rhs': { - 'type': 'LITERAL', - 'value': 0 + rhs: { + type: 'LITERAL', + value: 0 }, - 'operator': 'greaterThan' + operator: 'greaterThan' } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'anyOutput', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'anyOutput', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'anyOutput', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'anyOutput', + value: false } ] } diff --git a/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules.mock.ts b/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules.mock.ts index ca6fda43cf..746543e6d0 100644 --- a/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/oneruleset-tworules.mock.ts @@ -1,108 +1,109 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; // TODO Add a second ruleset in IT test export const jsonOneRulesetTwoRules: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['aNumber'], - 'outputRuntimeFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: ['aNumber'], + outputRuntimeFacts: [ 'UI_FACT_2' ], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'aNumber' + lhs: { + type: 'FACT', + value: 'aNumber' }, - 'operator': 'lessOrEqual', - 'rhs': { - 'type': 'LITERAL', - 'value': 5 + operator: 'lessOrEqual', + rhs: { + type: 'LITERAL', + value: 5 } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: true }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'first.rule.success.loc.key', - 'value': 'first.rule.success.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'first.rule.success.loc.key', + value: 'first.rule.success.loc.key2' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'first.rule.failure.loc.key', - 'value': 'first.rule.failure.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'first.rule.failure.loc.key', + value: 'first.rule.failure.loc.key2' } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', - 'name': 'the second rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['foieGrasPrice'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', + name: 'the second rule', + inputRuntimeFacts: [], + inputFacts: ['foieGrasPrice'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'foieGrasPrice' + lhs: { + type: 'FACT', + value: 'foieGrasPrice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': '30' + operator: 'equals', + rhs: { + type: 'LITERAL', + value: '30' } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'second.rule.success.loc.key', - 'value': 'second.rule.success.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'second.rule.success.loc.key', + value: 'second.rule.success.loc.key2' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'second.rule.failure.loc.key', - 'value': 'second.rule.failure.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'second.rule.failure.loc.key', + value: 'second.rule.failure.loc.key2' } ] } @@ -110,27 +111,27 @@ export const jsonOneRulesetTwoRules: { ruleSets: Ruleset[] } = { ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [] + failureElements: [] } } ] diff --git a/packages/@o3r/rules-engine/testing/mocks/onerulesetvalid-onerule-nocond.mock.ts b/packages/@o3r/rules-engine/testing/mocks/onerulesetvalid-onerule-nocond.mock.ts index 1e08d1d781..fe84523f8f 100644 --- a/packages/@o3r/rules-engine/testing/mocks/onerulesetvalid-onerule-nocond.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/onerulesetvalid-onerule-nocond.mock.ts @@ -1,119 +1,119 @@ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonOneRulesetValidOneRuleNoCond: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th1', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th1', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [] + failureElements: [] } } ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th2', - 'name': 'the second ruleset', - 'linkedComponent': { - 'library': '@otter/comps', - 'name': 'TestComponent' + id: 'e5th46e84-5e4th-54eth65seth46se8th2', + name: 'the second ruleset', + linkedComponent: { + library: '@otter/comps', + name: 'TestComponent' }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [] + failureElements: [] } } ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th3', - 'name': 'the third ruleset', - 'validityRange': { - 'from': '2100-07-23T18:25:43.511Z' + id: 'e5th46e84-5e4th-54eth65seth46se8th3', + name: 'the third ruleset', + validityRange: { + from: '2100-07-23T18:25:43.511Z' }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [] + failureElements: [] } } ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the fourth ruleset', - 'validityRange': { - 'to': '2021-07-23T18:25:43.511Z' + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the fourth ruleset', + validityRange: { + to: '2021-07-23T18:25:43.511Z' }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [] + failureElements: [] } } ] diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.actions.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.actions.ts index 420313545d..4b7e45d234 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.actions.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.actions.ts @@ -1,6 +1,6 @@ import { createAction, - props + props, } from '@ngrx/store'; import { asyncProps, @@ -11,16 +11,16 @@ import { SetAsyncStoreItemEntitiesActionPayload, SetAsyncStoreItemEntityActionPayload, UpdateActionPayload, - UpdateAsyncStoreItemEntitiesActionPayloadWithId + UpdateAsyncStoreItemEntitiesActionPayloadWithId, } from '@o3r/core'; import { - XmasHamper + XmasHamper, } from '../../xmas-hamper.mock'; import { - ShoppingCart + ShoppingCart, } from './shopping-cart.model'; import { - ShoppingCartStateDetails + ShoppingCartStateDetails, } from './shopping-cart.state'; const ACTION_SET_XMAS_HAMPERS_IN_CART = '[ShoppingCart] [XmasHampers] set'; diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.spec.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.spec.ts index f82880976e..c08088a2e8 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.spec.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.spec.ts @@ -1,24 +1,24 @@ import { getTestBed, - TestBed + TestBed, } from '@angular/core/testing'; import { BrowserDynamicTestingModule, - platformBrowserDynamicTesting + platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import { - provideMockActions + provideMockActions, } from '@ngrx/effects/testing'; import { - Store + Store, } from '@ngrx/store'; import { ReplaySubject, Subject, - Subscription + Subscription, } from 'rxjs'; import { - ShoppingCartEffect + ShoppingCartEffect, } from './shopping-cart.effect'; describe('ShoppingCart Effects', () => { diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.ts index 8d78c35c16..15cb718af5 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.effect.ts @@ -1,22 +1,22 @@ import { - Injectable + Injectable, } from '@angular/core'; import { Actions, createEffect, - ofType + ofType, } from '@ngrx/effects'; import { - fromApiEffectSwitchMap + fromApiEffectSwitchMap, } from '@o3r/core'; import { from, - of + of, } from 'rxjs'; import { catchError, map, - mergeMap + mergeMap, } from 'rxjs/operators'; import { cancelShoppingCartRequest, @@ -26,7 +26,7 @@ import { updateShoppingCartEntities, updateShoppingCartEntitiesFromApi, upsertShoppingCartEntities, - upsertShoppingCartEntitiesFromApi + upsertShoppingCartEntitiesFromApi, } from './shopping-cart.actions'; /** diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.model.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.model.ts index 573d5ffbd7..6be81367d5 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.model.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.model.ts @@ -1,5 +1,5 @@ import { - XmasHamper + XmasHamper, } from '../../xmas-hamper.mock'; /** diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.module.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.module.ts index 46fdfb58c3..9338d3dadb 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.module.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.module.ts @@ -1,25 +1,25 @@ import { InjectionToken, ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import { - EffectsModule + EffectsModule, } from '@ngrx/effects'; import { Action, ActionReducer, - StoreModule + StoreModule, } from '@ngrx/store'; import { - ShoppingCartEffect + ShoppingCartEffect, } from './shopping-cart.effect'; import { - shoppingCartReducer + shoppingCartReducer, } from './shopping-cart.reducer'; import { SHOPPING_CART_STORE_NAME, - ShoppingCartState + ShoppingCartState, } from './shopping-cart.state'; /** Token of the ShoppingCart reducer */ diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.spec.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.spec.ts index 0f161ea035..7acd2efeed 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.spec.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.spec.ts @@ -1,10 +1,10 @@ import * as actions from './shopping-cart.actions'; import { shoppingCartInitialState, - shoppingCartReducer + shoppingCartReducer, } from './shopping-cart.reducer'; import { - ShoppingCartState + ShoppingCartState, } from './shopping-cart.state'; describe('ShoppingCart Store reducer', () => { diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.ts index 1998ab934e..9187863084 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.reducer.ts @@ -1,29 +1,29 @@ import { - createEntityAdapter + createEntityAdapter, } from '@ngrx/entity'; import { ActionCreator, createReducer, on, - ReducerTypes + ReducerTypes, } from '@ngrx/store'; import { AsyncRequest, asyncStoreItemAdapter, createEntityAsyncRequestAdapter, - EntityStatus + EntityStatus, } from '@o3r/core'; import * as actions from './shopping-cart.actions'; import { - CartIdPayload + CartIdPayload, } from './shopping-cart.actions'; import { - ShoppingCart + ShoppingCart, } from './shopping-cart.model'; import { ShoppingCartModel, ShoppingCartState, - ShoppingCartStateDetails + ShoppingCartStateDetails, } from './shopping-cart.state'; /** diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.spec.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.spec.ts index aa6fa4a532..df742bfb35 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.spec.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.spec.ts @@ -1,5 +1,5 @@ import { - shoppingCartInitialState + shoppingCartInitialState, } from './shopping-cart.reducer'; import * as selectors from './shopping-cart.selectors'; diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.ts index 32a195366e..ccbef34cbc 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.selectors.ts @@ -1,14 +1,14 @@ import { createFeatureSelector, - createSelector + createSelector, } from '@ngrx/store'; import { - shoppingCartAdapter + shoppingCartAdapter, } from './shopping-cart.reducer'; import { SHOPPING_CART_STORE_NAME, ShoppingCartModel, - ShoppingCartState + ShoppingCartState, } from './shopping-cart.state'; const { selectIds, selectEntities, selectAll, selectTotal } = shoppingCartAdapter.getSelectors(); diff --git a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.state.ts b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.state.ts index 9d8d2e2c82..3e67ed2c76 100644 --- a/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.state.ts +++ b/packages/@o3r/rules-engine/testing/mocks/stores/shopping-cart/shopping-cart.state.ts @@ -1,12 +1,12 @@ import { - EntityState + EntityState, } from '@ngrx/entity'; import { AsyncStoreItem, - EntityStatus + EntityStatus, } from '@o3r/core'; import { - ShoppingCart + ShoppingCart, } from './shopping-cart.model'; /** diff --git a/packages/@o3r/rules-engine/testing/mocks/two-rulesets.ts b/packages/@o3r/rules-engine/testing/mocks/two-rulesets.ts index 598b0c4002..fef3032f8f 100644 --- a/packages/@o3r/rules-engine/testing/mocks/two-rulesets.ts +++ b/packages/@o3r/rules-engine/testing/mocks/two-rulesets.ts @@ -1,156 +1,156 @@ import { - Ruleset + Ruleset, } from '../../src/engine/structure'; export const rulesetsObj: { rulesets: Ruleset[] } = { - 'rulesets': [ + rulesets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th2', - 'name': 'ruleset zero', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th2', + name: 'ruleset zero', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule zero', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule zero', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-calendar-per-bound-cont', - 'library': '@otter/demo-app-components', - 'property': 'numberOfDateDisplayed', - 'value': 4 + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-calendar-per-bound-cont', + library: '@otter/demo-app-components', + property: 'numberOfDateDisplayed', + value: 4 } ], - 'failureElements': [] + failureElements: [] } } ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'first ruleset', - 'validityRange': { - 'from': '09/01/2021', - 'to': '11/01/2023' + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'first ruleset', + validityRange: { + from: '09/01/2021', + to: '11/01/2023' }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', - 'name': 'rule zero', - 'inputRuntimeFacts': [], - 'inputFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', + name: 'rule zero', + inputRuntimeFacts: [], + inputFacts: [ 'destinationLocationCode', 'pageUrl' ], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'all': [ + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + all: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'destinationLocationCode' + lhs: { + type: 'FACT', + value: 'destinationLocationCode' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': 'LON' + operator: 'equals', + rhs: { + type: 'LITERAL', + value: 'LON' } }, { - 'lhs': { - 'type': 'FACT', - 'value': 'pageUrl' + lhs: { + type: 'FACT', + value: 'pageUrl' }, - 'operator': 'stringContains', - 'rhs': { - 'type': 'LITERAL', - 'value': 'upsell' + operator: 'stringContains', + rhs: { + type: 'LITERAL', + value: 'upsell' } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_ASSET', - 'asset': 'assets-demo-app/img/places/islands.jpg', - 'value': 'assets-demo-app/img/places/airport.jpg' + elementType: 'ACTION', + actionType: 'UPDATE_ASSET', + asset: 'assets-demo-app/img/places/islands.jpg', + value: 'assets-demo-app/img/places/airport.jpg' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'o3r-upsell-page.header', - 'value': 'o3r-upsell-page.header.replace' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'o3r-upsell-page.header', + value: 'o3r-upsell-page.header.replace' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showMotto', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showMotto', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'failureElements': [ + failureElements: [ ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule one', - 'inputRuntimeFacts': [], - 'inputFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule one', + inputRuntimeFacts: [], + inputFacts: [ 'isMobileDevice' ], - 'outputRuntimeFacts': ['CMS_myFact'], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + outputRuntimeFacts: ['CMS_myFact'], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'CMS_myFact', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'CMS_myFact', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'failureElements': [] + failureElements: [] } } ] diff --git a/packages/@o3r/rules-engine/testing/mocks/tworulesets-both-ondemand.ts b/packages/@o3r/rules-engine/testing/mocks/tworulesets-both-ondemand.ts index 43c752a39f..722bab6638 100644 --- a/packages/@o3r/rules-engine/testing/mocks/tworulesets-both-ondemand.ts +++ b/packages/@o3r/rules-engine/testing/mocks/tworulesets-both-ondemand.ts @@ -1,114 +1,114 @@ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonTwoRulesetsBothOnDemand: { rulesets: Ruleset[] } = { - 'rulesets': [ + rulesets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8Linked', - 'name': '2 linked component ruleset', - 'linkedComponents': { - 'or': [ + id: 'e5th46e84-5e4th-54eth65seth46se8Linked', + name: '2 linked component ruleset', + linkedComponents: { + or: [ { - 'library': '@otter/demo-app-components', - 'name': 'o3r-calendar-per-bound-cont' + library: '@otter/demo-app-components', + name: 'o3r-calendar-per-bound-cont' }, { - 'library': '@otter/demo-app-components', - 'name': 'o3r-calendar-per-bound-cont-2' + library: '@otter/demo-app-components', + name: 'o3r-calendar-per-bound-cont-2' } ] }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule zero', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule zero', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-calendar-per-bound-cont', - 'library': '@otter/demo-app-components', - 'property': 'numberOfDateDisplayed', - 'value': 4 + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-calendar-per-bound-cont', + library: '@otter/demo-app-components', + property: 'numberOfDateDisplayed', + value: 4 } ], - 'failureElements': [] + failureElements: [] } } ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46Default', - 'name': 'the first ruleset', - 'linkedComponent': { - 'library': '@otter/demo-app-components', - 'name': 'o3r-calendar-per-bound-cont' + id: 'e5th46e84-5e4th-54eth65seth46Default', + name: 'the first ruleset', + linkedComponent: { + library: '@otter/demo-app-components', + name: 'o3r-calendar-per-bound-cont' }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', - 'name': 'rule zero', - 'inputRuntimeFacts': [], - 'inputFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', + name: 'rule zero', + inputRuntimeFacts: [], + inputFacts: [ 'isMobileDevice' ], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'all': [ + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + all: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_ASSET', - 'asset': 'assets-demo-app/img/places/islands.jpg', - 'value': 'assets-demo-app/img/places/airport.jpg' + elementType: 'ACTION', + actionType: 'UPDATE_ASSET', + asset: 'assets-demo-app/img/places/islands.jpg', + value: 'assets-demo-app/img/places/airport.jpg' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'o3r-upsell-page.header', - 'value': 'o3r-upsell-page.header.replace' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'o3r-upsell-page.header', + value: 'o3r-upsell-page.header.replace' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showMotto', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showMotto', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'failureElements': [ + failureElements: [ ] } } diff --git a/packages/@o3r/rules-engine/testing/mocks/tworulesets-one-ondemand.ts b/packages/@o3r/rules-engine/testing/mocks/tworulesets-one-ondemand.ts index 86abd2b339..e31f48799e 100644 --- a/packages/@o3r/rules-engine/testing/mocks/tworulesets-one-ondemand.ts +++ b/packages/@o3r/rules-engine/testing/mocks/tworulesets-one-ondemand.ts @@ -1,102 +1,102 @@ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonTwoRulesetsOneOnDemand: { rulesets: Ruleset[] } = { - 'rulesets': [ + rulesets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8Linked', - 'name': 'linked component ruleset', - 'linkedComponent': { - 'library': '@otter/demo-app-components', - 'name': 'o3r-calendar-per-bound-cont' + id: 'e5th46e84-5e4th-54eth65seth46se8Linked', + name: 'linked component ruleset', + linkedComponent: { + library: '@otter/demo-app-components', + name: 'o3r-calendar-per-bound-cont' }, - 'rules': [ + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', - 'name': 'rule zero', - 'inputRuntimeFacts': [], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'successElements': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j9', + name: 'rule zero', + inputRuntimeFacts: [], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-calendar-per-bound-cont', - 'library': '@otter/demo-app-components', - 'property': 'numberOfDateDisplayed', - 'value': 4 + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-calendar-per-bound-cont', + library: '@otter/demo-app-components', + property: 'numberOfDateDisplayed', + value: 4 } ], - 'failureElements': [] + failureElements: [] } } ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46Default', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46Default', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', - 'name': 'rule zero', - 'inputRuntimeFacts': [], - 'inputFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j0', + name: 'rule zero', + inputRuntimeFacts: [], + inputFacts: [ 'isMobileDevice' ], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'all': [ + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + all: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_ASSET', - 'asset': 'assets-demo-app/img/places/islands.jpg', - 'value': 'assets-demo-app/img/places/airport.jpg' + elementType: 'ACTION', + actionType: 'UPDATE_ASSET', + asset: 'assets-demo-app/img/places/islands.jpg', + value: 'assets-demo-app/img/places/airport.jpg' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'o3r-upsell-page.header', - 'value': 'o3r-upsell-page.header.replace' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'o3r-upsell-page.header', + value: 'o3r-upsell-page.header.replace' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showMotto', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showMotto', + value: false }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'component': 'o3r-simple-header-pres', - 'library': '@otter/demo-components', - 'property': 'showLanguageSelector', - 'value': false + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + component: 'o3r-simple-header-pres', + library: '@otter/demo-components', + property: 'showLanguageSelector', + value: false } ], - 'failureElements': [ + failureElements: [ ] } } diff --git a/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules-nocontext.mock.ts b/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules-nocontext.mock.ts index ee7ba03ce9..f0355bf14a 100644 --- a/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules-nocontext.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules-nocontext.mock.ts @@ -1,51 +1,52 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonTwoRulesetTwoRulesNoContext: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['isMobileDevice'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: ['isMobileDevice'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key.success', - 'value': 'my.loc.value.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key.success', + value: 'my.loc.value.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key.failure', - 'value': 'my.loc.value.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key.failure', + value: 'my.loc.value.failure' } ] } @@ -53,48 +54,48 @@ export const jsonTwoRulesetTwoRulesNoContext: { ruleSets: Ruleset[] } = { ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th1', - 'name': 'the second ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th1', + name: 'the second ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j4', - 'name': 'the second rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['cart'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j4', + name: 'the second rule', + inputRuntimeFacts: [], + inputFacts: ['cart'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'cart', - 'path': '$.xmasHampers[0].hamperItems[1].id' + lhs: { + type: 'FACT', + value: 'cart', + path: '$.xmasHampers[0].hamperItems[1].id' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': 'foieGras' + operator: 'equals', + rhs: { + type: 'LITERAL', + value: 'foieGras' } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.success', - 'value': 'my.loc.value2.success' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.success', + value: 'my.loc.value2.success' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.loc.key2.failure', - 'value': 'my.loc.value2.failure' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.loc.key2.failure', + value: 'my.loc.value2.failure' } ] } diff --git a/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules.mock.ts b/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules.mock.ts index 6a9f16599f..3e70fa61bc 100644 --- a/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules.mock.ts +++ b/packages/@o3r/rules-engine/testing/mocks/tworulesets-tworules.mock.ts @@ -1,112 +1,113 @@ +/* eslint-disable id-denylist -- `any` is a conditional keyword enforced by the rule interface */ import type { - Ruleset + Ruleset, } from '@o3r/rules-engine'; export const jsonTwoRulesetTwoRules: { ruleSets: Ruleset[] } = { - 'ruleSets': [ + ruleSets: [ { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th4', - 'name': 'the first ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th4', + name: 'the first ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['isMobileDevice'], - 'outputRuntimeFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j1', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: ['isMobileDevice'], + outputRuntimeFacts: [ 'UI_FACT_2' ], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', - 'name': 'the second rule', - 'inputRuntimeFacts': ['UI_FACT_2'], - 'inputFacts': [], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j2', + name: 'the second rule', + inputRuntimeFacts: ['UI_FACT_2'], + inputFacts: [], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'RUNTIME_FACT', - 'value': 'UI_FACT_2' + lhs: { + type: 'RUNTIME_FACT', + value: 'UI_FACT_2' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_CONFIG', - 'library': '@otter/library', - 'component': 'TheConfig', - 'property': 'theproperty', - 'value': [ + elementType: 'ACTION', + actionType: 'UPDATE_CONFIG', + library: '@otter/library', + component: 'TheConfig', + property: 'theproperty', + value: [ 'raviole', 'truelle' ] }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_ASSET', - 'asset': 'youpi/pouet/default.jpg', - 'value': 'custom/assets/custom.png' + elementType: 'ACTION', + actionType: 'UPDATE_ASSET', + asset: 'youpi/pouet/default.jpg', + value: 'custom/assets/custom.png' }, { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key', - 'value': 'my.custom.ssci.loc.key2' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key', + value: 'my.custom.ssci.loc.key2' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false } ] } @@ -114,138 +115,138 @@ export const jsonTwoRulesetTwoRules: { ruleSets: Ruleset[] } = { ] }, { - 'id': 'e5th46e84-5e4th-54eth65seth46se8th1', - 'name': 'the second ruleset', - 'rules': [ + id: 'e5th46e84-5e4th-54eth65seth46se8th1', + name: 'the second ruleset', + rules: [ { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', - 'name': 'the first rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['isMobileDevice'], - 'outputRuntimeFacts': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j3', + name: 'the first rule', + inputRuntimeFacts: [], + inputFacts: ['isMobileDevice'], + outputRuntimeFacts: [ 'UI_FACT_3', 'UI_FACT_2', 'UI_FACT_4', 'UI_FACT_5' ], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'not': { - 'any': [ + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + not: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': false + operator: 'equals', + rhs: { + type: 'LITERAL', + value: false } } ] } }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: true }, { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'isMobileDevice' + lhs: { + type: 'FACT', + value: 'isMobileDevice' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': true + operator: 'equals', + rhs: { + type: 'LITERAL', + value: true } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_3', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_3', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_3', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_3', + value: false } ] }, { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_4', - 'value': true + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_4', + value: true } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'SET_FACT', - 'fact': 'UI_FACT_2', - 'value': false + elementType: 'ACTION', + actionType: 'SET_FACT', + fact: 'UI_FACT_2', + value: false } ] } }, { - 'id': '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j4', - 'name': 'the second rule', - 'inputRuntimeFacts': [], - 'inputFacts': ['cart'], - 'outputRuntimeFacts': [], - 'rootElement': { - 'elementType': 'RULE_BLOCK', - 'blockType': 'IF_ELSE', - 'condition': { - 'any': [ + id: '6e8t54h6s4e-6erth46sre8th4-d46t8s13t5j4', + name: 'the second rule', + inputRuntimeFacts: [], + inputFacts: ['cart'], + outputRuntimeFacts: [], + rootElement: { + elementType: 'RULE_BLOCK', + blockType: 'IF_ELSE', + condition: { + any: [ { - 'lhs': { - 'type': 'FACT', - 'value': 'cart', - 'path': '$.xmasHampers[0].hamperItems[1].id' + lhs: { + type: 'FACT', + value: 'cart', + path: '$.xmasHampers[0].hamperItems[1].id' }, - 'operator': 'equals', - 'rhs': { - 'type': 'LITERAL', - 'value': 'foieGras' + operator: 'equals', + rhs: { + type: 'LITERAL', + value: 'foieGras' } } ] }, - 'successElements': [ + successElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key2', - 'value': 'my.custom.ssci.loc.key3' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key2', + value: 'my.custom.ssci.loc.key3' } ], - 'failureElements': [ + failureElements: [ { - 'elementType': 'ACTION', - 'actionType': 'UPDATE_LOCALISATION', - 'key': 'my.ssci.loc.key4', - 'value': 'my.custom.ssci.loc.key5' + elementType: 'ACTION', + actionType: 'UPDATE_LOCALISATION', + key: 'my.ssci.loc.key4', + value: 'my.custom.ssci.loc.key5' } ] } diff --git a/packages/@o3r/schematics/cli/environment.ts b/packages/@o3r/schematics/cli/environment.ts index f1acec4111..c79c0c9463 100644 --- a/packages/@o3r/schematics/cli/environment.ts +++ b/packages/@o3r/schematics/cli/environment.ts @@ -1,5 +1,5 @@ import { - getEnvironmentInfoStringify + getEnvironmentInfoStringify, } from '../src/utility/index'; // eslint-disable-next-line no-console -- this is the purpose of this CLI diff --git a/packages/@o3r/schematics/eslint.local.config.mjs b/packages/@o3r/schematics/eslint.local.config.mjs index f4a3a85848..4238baca13 100644 --- a/packages/@o3r/schematics/eslint.local.config.mjs +++ b/packages/@o3r/schematics/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/schematics/schematics/ng-add/index.ts b/packages/@o3r/schematics/schematics/ng-add/index.ts index 93ebe2368d..6b686a3429 100644 --- a/packages/@o3r/schematics/schematics/ng-add/index.ts +++ b/packages/@o3r/schematics/schematics/ng-add/index.ts @@ -1,15 +1,15 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; import type { - DependencyToAdd + DependencyToAdd, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/schematics/schematics/ng-add/schema.ts b/packages/@o3r/schematics/schematics/ng-add/schema.ts index f12b718449..722eade434 100644 --- a/packages/@o3r/schematics/schematics/ng-add/schema.ts +++ b/packages/@o3r/schematics/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '../../src/public_api'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/schematics/src/interfaces/angular-workspace.ts b/packages/@o3r/schematics/src/interfaces/angular-workspace.ts index 1ef6f31f0e..65b798b3a4 100644 --- a/packages/@o3r/schematics/src/interfaces/angular-workspace.ts +++ b/packages/@o3r/schematics/src/interfaces/angular-workspace.ts @@ -1,7 +1,7 @@ import type { Projects as NgWorkspaceProject, Schema as NgWorkspaceSchema, - SchematicOptions + SchematicOptions, } from '@angular/cli/lib/config/workspace-schema'; /** diff --git a/packages/@o3r/schematics/src/interfaces/rule-factories.ts b/packages/@o3r/schematics/src/interfaces/rule-factories.ts index f0ef7e970c..adc863c63e 100644 --- a/packages/@o3r/schematics/src/interfaces/rule-factories.ts +++ b/packages/@o3r/schematics/src/interfaces/rule-factories.ts @@ -1,5 +1,5 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; /** Rule Factory prototype */ diff --git a/packages/@o3r/schematics/src/modules/modules.constants.ts b/packages/@o3r/schematics/src/modules/modules.constants.ts index e31cbc5b6b..ad27de720f 100644 --- a/packages/@o3r/schematics/src/modules/modules.constants.ts +++ b/packages/@o3r/schematics/src/modules/modules.constants.ts @@ -1,5 +1,5 @@ import type { - PackageJson + PackageJson, } from 'type-fest'; /** Package as return by the NPM Registry */ diff --git a/packages/@o3r/schematics/src/modules/modules.display.rule.ts b/packages/@o3r/schematics/src/modules/modules.display.rule.ts index c09f2ca882..bd1e520eff 100644 --- a/packages/@o3r/schematics/src/modules/modules.display.rule.ts +++ b/packages/@o3r/schematics/src/modules/modules.display.rule.ts @@ -1,21 +1,21 @@ import { - EOL + EOL, } from 'node:os'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { getPackageManagerExecutor, - getWorkspaceConfig + getWorkspaceConfig, } from '../utility/index'; import { OTTER_KEYWORD_CMS, OTTER_MODULE_KEYWORD, - OTTER_MODULE_SUPPORTED_SCOPES + OTTER_MODULE_SUPPORTED_SCOPES, } from './modules.constants'; import { formatModuleDescription, - getAvailableModulesWithLatestPackage + getAvailableModulesWithLatestPackage, } from './modules.helpers'; /** Options for the Display Module rule */ diff --git a/packages/@o3r/schematics/src/modules/modules.helpers.ts b/packages/@o3r/schematics/src/modules/modules.helpers.ts index 375a7a8736..e0e81837a7 100644 --- a/packages/@o3r/schematics/src/modules/modules.helpers.ts +++ b/packages/@o3r/schematics/src/modules/modules.helpers.ts @@ -1,37 +1,37 @@ import { - execFile + execFile, } from 'node:child_process'; import * as fs from 'node:fs'; import type { - IncomingMessage + IncomingMessage, } from 'node:http'; import { - get + get, } from 'node:https'; import { - EOL + EOL, } from 'node:os'; import * as path from 'node:path'; import { - promisify + promisify, } from 'node:util'; import type { - logging + logging, } from '@angular-devkit/core'; import * as chalk from 'chalk'; import { - satisfies + satisfies, } from 'semver'; import type { JsonObject, - PackageJson + PackageJson, } from 'type-fest'; import { getPackageManager, - type PackageManagerOptions + type PackageManagerOptions, } from '../utility/index'; import { - findClosestPackageJson + findClosestPackageJson, } from '../utility/package-version'; import { NpmRegistryPackage, @@ -39,7 +39,7 @@ import { OTTER_MODULE_KEYWORD, OTTER_MODULE_PREFIX, OTTER_MODULE_SUPPORTED_SCOPES, - OtterModuleTag + OtterModuleTag, } from './modules.constants'; const DEFAULT_NPM_REGISTRY = 'registry.npmjs.org'; diff --git a/packages/@o3r/schematics/src/rule-factories/add-imports/index.ts b/packages/@o3r/schematics/src/rule-factories/add-imports/index.ts index 736367e55f..f9da4d5c5d 100644 --- a/packages/@o3r/schematics/src/rule-factories/add-imports/index.ts +++ b/packages/@o3r/schematics/src/rule-factories/add-imports/index.ts @@ -1,12 +1,12 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - insertImport + insertImport, } from '@schematics/angular/utility/ast-utils'; import { applyToUpdateRecorder, - type Change + type Change, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; diff --git a/packages/@o3r/schematics/src/rule-factories/check-packages-peers/index.ts b/packages/@o3r/schematics/src/rule-factories/check-packages-peers/index.ts index 876a44f810..dbf52fe4bd 100644 --- a/packages/@o3r/schematics/src/rule-factories/check-packages-peers/index.ts +++ b/packages/@o3r/schematics/src/rule-factories/check-packages-peers/index.ts @@ -1,23 +1,23 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import type { - LoggerApi + LoggerApi, } from '@angular-devkit/core/src/logger'; import type { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - satisfies + satisfies, } from 'semver'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { getPackageManager, - O3rCliError + O3rCliError, } from '../../utility/index'; /** Interface containing a npm package name, needed version and optionally found version */ diff --git a/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.spec.ts b/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.spec.ts index 2acf57ad58..c78e9d73ea 100644 --- a/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.spec.ts +++ b/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.spec.ts @@ -1,12 +1,12 @@ import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - injectServiceInMain + injectServiceInMain, } from './devtools-registration'; const projectName = 'projectName'; diff --git a/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.ts b/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.ts index 3ac343e9f8..4b24149161 100644 --- a/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.ts +++ b/packages/@o3r/schematics/src/rule-factories/dev-tools/devtools-registration.ts @@ -1,28 +1,28 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { insertImport, - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import { applyToUpdateRecorder, - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import type { - WorkspaceSchematics + WorkspaceSchematics, } from '../../interfaces'; import { - addImportToModuleFile as o3rAddImportToModuleFile + addImportToModuleFile as o3rAddImportToModuleFile, } from '../../utility'; import { getAppModuleFilePath, getDefaultOptionsForSchematic, getMainFilePath, getModuleIndex, - getWorkspaceConfig + getWorkspaceConfig, } from '../../utility/index'; /** Options for the devtools register rule factory */ diff --git a/packages/@o3r/schematics/src/rule-factories/eslint-fix/index.ts b/packages/@o3r/schematics/src/rule-factories/eslint-fix/index.ts index ff7f0a2b6c..a4351dde87 100644 --- a/packages/@o3r/schematics/src/rule-factories/eslint-fix/index.ts +++ b/packages/@o3r/schematics/src/rule-factories/eslint-fix/index.ts @@ -1,7 +1,7 @@ import { dirname, extname, - join + join, } from 'node:path'; import { DirEntry, @@ -9,11 +9,11 @@ import { type Rule, SchematicContext, type TaskId, - type Tree + type Tree, } from '@angular-devkit/schematics'; import { EslintFixTask, - LinterOptions + LinterOptions, } from '../../tasks/index'; interface ApplyEslintFixOption extends LinterOptions { diff --git a/packages/@o3r/schematics/src/rule-factories/get-test-frameworks/index.ts b/packages/@o3r/schematics/src/rule-factories/get-test-frameworks/index.ts index 76b1ca55b2..3741087144 100644 --- a/packages/@o3r/schematics/src/rule-factories/get-test-frameworks/index.ts +++ b/packages/@o3r/schematics/src/rule-factories/get-test-frameworks/index.ts @@ -1,17 +1,17 @@ import type { - SchematicContext + SchematicContext, } from '@angular-devkit/schematics'; import type { AvailableTestFrameworks, - WorkspaceSchema + WorkspaceSchema, } from '../../interfaces'; import { - getSchematicOptions + getSchematicOptions, } from '../../utility/index'; const testPackageMaps: Record = { - 'jest': ['jest'], - 'jasmine': ['jasmine-core'] + jest: ['jest'], + jasmine: ['jasmine-core'] }; /** diff --git a/packages/@o3r/schematics/src/rule-factories/ng-add/dependencies.ts b/packages/@o3r/schematics/src/rule-factories/ng-add/dependencies.ts index 1389031427..bfd3630d2d 100644 --- a/packages/@o3r/schematics/src/rule-factories/ng-add/dependencies.ts +++ b/packages/@o3r/schematics/src/rule-factories/ng-add/dependencies.ts @@ -1,5 +1,5 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -8,24 +8,24 @@ import { Schematic, type SchematicContext, type TaskId, - Tree + Tree, } from '@angular-devkit/schematics'; import { NodePackageInstallTask, - RunSchematicTask + RunSchematicTask, } from '@angular-devkit/schematics/tasks'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import * as semver from 'semver'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { getPackageManager, getProjectNewDependenciesTypes, getWorkspaceConfig, - SupportedPackageManagers + SupportedPackageManagers, } from '../../utility'; /** diff --git a/packages/@o3r/schematics/src/rule-factories/ng-add/ng-add.helpers.ts b/packages/@o3r/schematics/src/rule-factories/ng-add/ng-add.helpers.ts index d7261ade7b..fa660bf921 100644 --- a/packages/@o3r/schematics/src/rule-factories/ng-add/ng-add.helpers.ts +++ b/packages/@o3r/schematics/src/rule-factories/ng-add/ng-add.helpers.ts @@ -1,7 +1,7 @@ import { mkdirSync, readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -10,25 +10,25 @@ import { noop, Rule, Schematic, - SchematicContext + SchematicContext, } from '@angular-devkit/schematics'; import { - NodePackageInstallTask + NodePackageInstallTask, } from '@angular-devkit/schematics/tasks'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - NgAddPackageOptions + NgAddPackageOptions, } from '../../tasks/index'; import { - getPackageManager + getPackageManager, } from '../../utility/index'; const getNgAddSchema = (packageName: string, context: SchematicContext) => { diff --git a/packages/@o3r/schematics/src/rule-factories/ng-add/schematics-register.ts b/packages/@o3r/schematics/src/rule-factories/ng-add/schematics-register.ts index e80c608c0d..e4528dcd87 100644 --- a/packages/@o3r/schematics/src/rule-factories/ng-add/schematics-register.ts +++ b/packages/@o3r/schematics/src/rule-factories/ng-add/schematics-register.ts @@ -1,16 +1,16 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - SchematicOptionObject + SchematicOptionObject, } from '../../interfaces/index'; import { getWorkspaceConfig, registerCollectionSchematics, - writeAngularJson + writeAngularJson, } from '../../utility'; /** diff --git a/packages/@o3r/schematics/src/rule-factories/remove-packages/index.ts b/packages/@o3r/schematics/src/rule-factories/remove-packages/index.ts index f3909e7646..f6c48dd6e1 100644 --- a/packages/@o3r/schematics/src/rule-factories/remove-packages/index.ts +++ b/packages/@o3r/schematics/src/rule-factories/remove-packages/index.ts @@ -1,9 +1,9 @@ import type { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/schematics/src/rule-factories/update-imports/update-imports-with-scope.ts b/packages/@o3r/schematics/src/rule-factories/update-imports/update-imports-with-scope.ts index e302281908..39701c461d 100644 --- a/packages/@o3r/schematics/src/rule-factories/update-imports/update-imports-with-scope.ts +++ b/packages/@o3r/schematics/src/rule-factories/update-imports/update-imports-with-scope.ts @@ -1,15 +1,15 @@ import { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getFilesFromRootOfWorkspaceProjects, - getFilesWithExtensionFromTree + getFilesWithExtensionFromTree, } from '../../utility/index'; import { listOfExposedElements, - SassImportExposedElement + SassImportExposedElement, } from './list-of-vars'; const imports = new RegExp(/^@import\s+["']~?@(o3r|otter)\/styling.*\s*/, 'gm'); diff --git a/packages/@o3r/schematics/src/rule-factories/update-imports/update-ts-imports.ts b/packages/@o3r/schematics/src/rule-factories/update-imports/update-ts-imports.ts index c128b00315..f8c466760c 100644 --- a/packages/@o3r/schematics/src/rule-factories/update-imports/update-ts-imports.ts +++ b/packages/@o3r/schematics/src/rule-factories/update-imports/update-ts-imports.ts @@ -1,12 +1,12 @@ import { - Rule + Rule, } from '@angular-devkit/schematics'; import * as ts from 'typescript'; import { getFilesWithExtensionFromTree, getSourceFilesFromWorkspaceProjects, ImportsMapping, - updateImportsInFile + updateImportsInFile, } from '../../utility/index'; const escapeRegExp = (str: string) => str.replace(/[$()*+./?[\\\]^{|}-]/g, '\\$&'); diff --git a/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.spec.ts b/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.spec.ts index 2b96cd0e03..5e2f32937a 100644 --- a/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.spec.ts +++ b/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.spec.ts @@ -1,15 +1,15 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - addVsCodeRecommendations + addVsCodeRecommendations, } from './index'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.ts b/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.ts index 5c5f71a230..82e6cc7482 100644 --- a/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.ts +++ b/packages/@o3r/schematics/src/rule-factories/vscode-extensions/index.ts @@ -1,7 +1,7 @@ import type { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/schematics/src/tasks/eslint/index.ts b/packages/@o3r/schematics/src/tasks/eslint/index.ts index 08331d6ae5..762deafa4f 100644 --- a/packages/@o3r/schematics/src/tasks/eslint/index.ts +++ b/packages/@o3r/schematics/src/tasks/eslint/index.ts @@ -1,19 +1,19 @@ import { TaskConfiguration, - TaskConfigurationGenerator + TaskConfigurationGenerator, } from '@angular-devkit/schematics'; import { - NodePackageInstallTask + NodePackageInstallTask, } from '@angular-devkit/schematics/tasks'; import { NodePackageName, - NodePackageTaskOptions + NodePackageTaskOptions, } from '@angular-devkit/schematics/tasks/package-manager/options'; import type { - WorkspaceSchema + WorkspaceSchema, } from '../../interfaces'; import { - getPackageManager + getPackageManager, } from '../../utility/package-manager-runner'; /** diff --git a/packages/@o3r/schematics/src/tasks/link/index.ts b/packages/@o3r/schematics/src/tasks/link/index.ts index 93c5561855..61bd9c02c9 100644 --- a/packages/@o3r/schematics/src/tasks/link/index.ts +++ b/packages/@o3r/schematics/src/tasks/link/index.ts @@ -1,13 +1,13 @@ import { TaskConfiguration, - TaskConfigurationGenerator + TaskConfigurationGenerator, } from '@angular-devkit/schematics'; import { NodePackageName, - NodePackageTaskOptions + NodePackageTaskOptions, } from '@angular-devkit/schematics/tasks/package-manager/options'; import { - getPackageManager + getPackageManager, } from '../../utility/package-manager-runner'; export class NodePackageLinkTask implements TaskConfigurationGenerator { diff --git a/packages/@o3r/schematics/src/tasks/ng-add/index.ts b/packages/@o3r/schematics/src/tasks/ng-add/index.ts index e8845cb6ad..6c14260b1b 100644 --- a/packages/@o3r/schematics/src/tasks/ng-add/index.ts +++ b/packages/@o3r/schematics/src/tasks/ng-add/index.ts @@ -1,5 +1,5 @@ import type { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; /** diff --git a/packages/@o3r/schematics/src/tasks/package-manager/interfaces.ts b/packages/@o3r/schematics/src/tasks/package-manager/interfaces.ts index c71dc3cb1b..395ebfc3b6 100644 --- a/packages/@o3r/schematics/src/tasks/package-manager/interfaces.ts +++ b/packages/@o3r/schematics/src/tasks/package-manager/interfaces.ts @@ -1,5 +1,5 @@ import type { - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/schematics/src/tasks/package-manager/npm-exec.ts b/packages/@o3r/schematics/src/tasks/package-manager/npm-exec.ts index d838a9fad4..06b4c3aac3 100644 --- a/packages/@o3r/schematics/src/tasks/package-manager/npm-exec.ts +++ b/packages/@o3r/schematics/src/tasks/package-manager/npm-exec.ts @@ -1,13 +1,13 @@ import { TaskConfiguration, - TaskConfigurationGenerator + TaskConfigurationGenerator, } from '@angular-devkit/schematics'; import { NodePackageName, - NodePackageTaskOptions + NodePackageTaskOptions, } from '@angular-devkit/schematics/tasks/package-manager/options'; import { - getPackageManager + getPackageManager, } from '../../utility/package-manager-runner'; /** diff --git a/packages/@o3r/schematics/src/tasks/package-manager/npm-install.ts b/packages/@o3r/schematics/src/tasks/package-manager/npm-install.ts index a8dd415f1c..d5c659033f 100644 --- a/packages/@o3r/schematics/src/tasks/package-manager/npm-install.ts +++ b/packages/@o3r/schematics/src/tasks/package-manager/npm-install.ts @@ -1,15 +1,15 @@ import { - NodePackageInstallTask + NodePackageInstallTask, } from '@angular-devkit/schematics/tasks'; import { - NodePackageName + NodePackageName, } from '@angular-devkit/schematics/tasks/package-manager/options'; import { getPackageManager, - getWorkspaceConfig + getWorkspaceConfig, } from '../../utility/index'; import type { - NodePackageInstallTaskOptions + NodePackageInstallTaskOptions, } from './interfaces'; /** diff --git a/packages/@o3r/schematics/src/tasks/package-manager/npm-run.ts b/packages/@o3r/schematics/src/tasks/package-manager/npm-run.ts index 45c2ad036f..c86309bc54 100644 --- a/packages/@o3r/schematics/src/tasks/package-manager/npm-run.ts +++ b/packages/@o3r/schematics/src/tasks/package-manager/npm-run.ts @@ -1,13 +1,13 @@ import { TaskConfiguration, - TaskConfigurationGenerator + TaskConfigurationGenerator, } from '@angular-devkit/schematics'; import { NodePackageName, - NodePackageTaskOptions + NodePackageTaskOptions, } from '@angular-devkit/schematics/tasks/package-manager/options'; import { - getPackageManager + getPackageManager, } from '../../utility/package-manager-runner'; /** diff --git a/packages/@o3r/schematics/src/utility/ast.ts b/packages/@o3r/schematics/src/utility/ast.ts index 040836909b..d2db0b6af5 100644 --- a/packages/@o3r/schematics/src/utility/ast.ts +++ b/packages/@o3r/schematics/src/utility/ast.ts @@ -1,5 +1,5 @@ import { - findNodes + findNodes, } from '@schematics/angular/utility/ast-utils'; import * as ts from 'typescript'; diff --git a/packages/@o3r/schematics/src/utility/builder.ts b/packages/@o3r/schematics/src/utility/builder.ts index 7530d5be6e..8dee3c3af2 100644 --- a/packages/@o3r/schematics/src/utility/builder.ts +++ b/packages/@o3r/schematics/src/utility/builder.ts @@ -1,6 +1,6 @@ import type { SchematicOptionObject, - WorkspaceProject + WorkspaceProject, } from '../interfaces'; /** diff --git a/packages/@o3r/schematics/src/utility/collection.spec.ts b/packages/@o3r/schematics/src/utility/collection.spec.ts index e443fa5c28..60df40d5d6 100644 --- a/packages/@o3r/schematics/src/utility/collection.spec.ts +++ b/packages/@o3r/schematics/src/utility/collection.spec.ts @@ -1,8 +1,8 @@ import type { - WorkspaceSchema + WorkspaceSchema, } from '../interfaces'; import { - getSchematicOptions + getSchematicOptions, } from './collection'; const angularJsonGenericNgAdd: WorkspaceSchema = { diff --git a/packages/@o3r/schematics/src/utility/collection.ts b/packages/@o3r/schematics/src/utility/collection.ts index cc4e3052f6..cb260f99c5 100644 --- a/packages/@o3r/schematics/src/utility/collection.ts +++ b/packages/@o3r/schematics/src/utility/collection.ts @@ -1,9 +1,9 @@ import { - SchematicContext + SchematicContext, } from '@angular-devkit/schematics'; import type { WorkspaceSchema, - WorkspaceSchematics + WorkspaceSchematics, } from '../interfaces'; /** diff --git a/packages/@o3r/schematics/src/utility/component.ts b/packages/@o3r/schematics/src/utility/component.ts index af33eb3ce9..9c370ade29 100644 --- a/packages/@o3r/schematics/src/utility/component.ts +++ b/packages/@o3r/schematics/src/utility/component.ts @@ -1,14 +1,14 @@ import type { - Tree + Tree, } from '@angular-devkit/schematics'; import * as ts from 'typescript'; import { DecoratorWithArg, getPropertyFromDecoratorFirstArgument, - isDecoratorWithArg + isDecoratorWithArg, } from './ast'; import { - O3rCliError + O3rCliError, } from './error'; /** diff --git a/packages/@o3r/schematics/src/utility/dependencies.ts b/packages/@o3r/schematics/src/utility/dependencies.ts index 5ec207b881..4cd5eec41f 100644 --- a/packages/@o3r/schematics/src/utility/dependencies.ts +++ b/packages/@o3r/schematics/src/utility/dependencies.ts @@ -1,13 +1,13 @@ import * as fs from 'node:fs'; import { - logging + logging, } from '@angular-devkit/core'; import { NodeDependency, - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/schematics/src/utility/environment.ts b/packages/@o3r/schematics/src/utility/environment.ts index 2e1390661a..f71e895ba6 100644 --- a/packages/@o3r/schematics/src/utility/environment.ts +++ b/packages/@o3r/schematics/src/utility/environment.ts @@ -2,7 +2,7 @@ import * as fs from 'node:fs'; import * as os from 'node:os'; import * as semver from 'semver'; import { - getPackageManagerInfo + getPackageManagerInfo, } from './package-manager-runner'; /** diff --git a/packages/@o3r/schematics/src/utility/error.ts b/packages/@o3r/schematics/src/utility/error.ts index 50ae2cf20f..bc1f707b9a 100644 --- a/packages/@o3r/schematics/src/utility/error.ts +++ b/packages/@o3r/schematics/src/utility/error.ts @@ -1,5 +1,5 @@ import { - getEnvironmentInfoStringify + getEnvironmentInfoStringify, } from './environment'; /** diff --git a/packages/@o3r/schematics/src/utility/file-info.ts b/packages/@o3r/schematics/src/utility/file-info.ts index 6b55a7de59..4f108e571b 100644 --- a/packages/@o3r/schematics/src/utility/file-info.ts +++ b/packages/@o3r/schematics/src/utility/file-info.ts @@ -1,13 +1,13 @@ import { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - getDecoratorMetadata + getDecoratorMetadata, } from '@schematics/angular/utility/ast-utils'; import * as ts from 'typescript'; import { - getAppModuleFilePath + getAppModuleFilePath, } from './modules'; /** diff --git a/packages/@o3r/schematics/src/utility/generation.ts b/packages/@o3r/schematics/src/utility/generation.ts index 13b1e850f1..4a4c71dfd4 100644 --- a/packages/@o3r/schematics/src/utility/generation.ts +++ b/packages/@o3r/schematics/src/utility/generation.ts @@ -1,17 +1,17 @@ import type { - JsonValue + JsonValue, } from '@angular-devkit/core'; import type { - Tree + Tree, } from '@angular-devkit/schematics'; import { - getDefaultOptionsForSchematic + getDefaultOptionsForSchematic, } from './collection'; import { - O3rCliError + O3rCliError, } from './error'; import { - getWorkspaceConfig + getWorkspaceConfig, } from './loaders'; /** Type of generated item */ diff --git a/packages/@o3r/schematics/src/utility/gitignore.spec.ts b/packages/@o3r/schematics/src/utility/gitignore.spec.ts index cce8f8b7e4..93d79a07b9 100644 --- a/packages/@o3r/schematics/src/utility/gitignore.spec.ts +++ b/packages/@o3r/schematics/src/utility/gitignore.spec.ts @@ -1,8 +1,8 @@ import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - ignorePatterns + ignorePatterns, } from './gitignore'; const gitIgnoreFileName = '/.gitignore'; diff --git a/packages/@o3r/schematics/src/utility/gitignore.ts b/packages/@o3r/schematics/src/utility/gitignore.ts index bdf98b0c71..8bdf99f67f 100644 --- a/packages/@o3r/schematics/src/utility/gitignore.ts +++ b/packages/@o3r/schematics/src/utility/gitignore.ts @@ -1,5 +1,5 @@ import type { - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/schematics/src/utility/loaders.ts b/packages/@o3r/schematics/src/utility/loaders.ts index 6ff75aeb9d..48b4daed0b 100644 --- a/packages/@o3r/schematics/src/utility/loaders.ts +++ b/packages/@o3r/schematics/src/utility/loaders.ts @@ -1,24 +1,24 @@ import * as path from 'node:path'; import type { DirEntry, - FileEntry + FileEntry, } from '@angular-devkit/schematics'; import { SchematicsException, - Tree + Tree, } from '@angular-devkit/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { - minimatch + minimatch, } from 'minimatch'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { WorkspaceProject, - WorkspaceSchema + WorkspaceSchema, } from '../interfaces/index'; function findFilesInTreeRec(memory: Set, directory: DirEntry, fileMatchesCriteria: (file: string) => boolean, ignoreDirectories: string[]) { diff --git a/packages/@o3r/schematics/src/utility/matching-peers.ts b/packages/@o3r/schematics/src/utility/matching-peers.ts index e3fe917d6a..a94e15957d 100644 --- a/packages/@o3r/schematics/src/utility/matching-peers.ts +++ b/packages/@o3r/schematics/src/utility/matching-peers.ts @@ -1,6 +1,6 @@ import * as fs from 'node:fs'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/schematics/src/utility/migration/migration.spec.ts b/packages/@o3r/schematics/src/utility/migration/migration.spec.ts index f8fa8d79cc..2aa07b7a41 100644 --- a/packages/@o3r/schematics/src/utility/migration/migration.spec.ts +++ b/packages/@o3r/schematics/src/utility/migration/migration.spec.ts @@ -1,12 +1,12 @@ import { callRule, - Tree + Tree, } from '@angular-devkit/schematics'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - getMigrationRuleRunner + getMigrationRuleRunner, } from './migration'; describe('getMigrationRuleRunner', () => { diff --git a/packages/@o3r/schematics/src/utility/migration/migration.ts b/packages/@o3r/schematics/src/utility/migration/migration.ts index 6ebadf9de3..a7700e5c7d 100644 --- a/packages/@o3r/schematics/src/utility/migration/migration.ts +++ b/packages/@o3r/schematics/src/utility/migration/migration.ts @@ -1,14 +1,14 @@ import type { - LoggerApi + LoggerApi, } from '@angular-devkit/core/src/logger'; import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { intersects, Range, - validRange + validRange, } from 'semver'; /** Create the migration */ diff --git a/packages/@o3r/schematics/src/utility/modules.ts b/packages/@o3r/schematics/src/utility/modules.ts index a572ccdf0e..2f607be279 100644 --- a/packages/@o3r/schematics/src/utility/modules.ts +++ b/packages/@o3r/schematics/src/utility/modules.ts @@ -4,27 +4,27 @@ import { SchematicContext, SchematicsException, Tree, - UpdateRecorder + UpdateRecorder, } from '@angular-devkit/schematics'; import { addImportToModule, addProviderToModule, getRouterModuleDeclaration, insertImport, - isImported + isImported, } from '@schematics/angular/utility/ast-utils'; import { - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import * as ts from 'typescript'; import { - getExportedSymbolsFromFile + getExportedSymbolsFromFile, } from './ast'; import { - getWorkspaceConfig + getWorkspaceConfig, } from './loaders'; /** diff --git a/packages/@o3r/schematics/src/utility/monorepo.ts b/packages/@o3r/schematics/src/utility/monorepo.ts index 3262d9051d..21a00ffda3 100644 --- a/packages/@o3r/schematics/src/utility/monorepo.ts +++ b/packages/@o3r/schematics/src/utility/monorepo.ts @@ -1,21 +1,21 @@ import * as path from 'node:path'; import type { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { WorkspaceLayout, WorkspaceProject, - WorkspaceSchema + WorkspaceSchema, } from '../interfaces/index'; import { - getSchematicOptions + getSchematicOptions, } from './collection'; import { - getWorkspaceConfig + getWorkspaceConfig, } from './loaders'; /** diff --git a/packages/@o3r/schematics/src/utility/package-manager-runner.ts b/packages/@o3r/schematics/src/utility/package-manager-runner.ts index bfcd827024..5d8d3ca4c9 100644 --- a/packages/@o3r/schematics/src/utility/package-manager-runner.ts +++ b/packages/@o3r/schematics/src/utility/package-manager-runner.ts @@ -1,14 +1,14 @@ import { - execSync + execSync, } from 'node:child_process'; import { - posix + posix, } from 'node:path'; import { - logging + logging, } from '@angular-devkit/core'; import type { - WorkspaceSchema + WorkspaceSchema, } from '../interfaces/angular-workspace'; /** Support NPM package managers */ diff --git a/packages/@o3r/schematics/src/utility/package-version.ts b/packages/@o3r/schematics/src/utility/package-version.ts index 51380b3869..17d73ac945 100644 --- a/packages/@o3r/schematics/src/utility/package-version.ts +++ b/packages/@o3r/schematics/src/utility/package-version.ts @@ -1,17 +1,17 @@ import * as fs from 'node:fs'; import { - existsSync + existsSync, } from 'node:fs'; import { dirname, join, - posix + posix, } from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/schematics/src/utility/question.ts b/packages/@o3r/schematics/src/utility/question.ts index 969b097a7b..d083ee91b3 100644 --- a/packages/@o3r/schematics/src/utility/question.ts +++ b/packages/@o3r/schematics/src/utility/question.ts @@ -1,5 +1,5 @@ import { - createInterface + createInterface, } from 'node:readline'; /** diff --git a/packages/@o3r/schematics/src/utility/routes.ts b/packages/@o3r/schematics/src/utility/routes.ts index bfd1b0879b..05614ab5e9 100644 --- a/packages/@o3r/schematics/src/utility/routes.ts +++ b/packages/@o3r/schematics/src/utility/routes.ts @@ -1,6 +1,6 @@ import type { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import * as ts from 'typescript'; diff --git a/packages/@o3r/schematics/src/utility/sub-entry.ts b/packages/@o3r/schematics/src/utility/sub-entry.ts index 074bcf4ff1..cd86ac1c36 100644 --- a/packages/@o3r/schematics/src/utility/sub-entry.ts +++ b/packages/@o3r/schematics/src/utility/sub-entry.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import type { - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/schematics/src/utility/template-property.helper.ts b/packages/@o3r/schematics/src/utility/template-property.helper.ts index e281613879..4df513c30f 100644 --- a/packages/@o3r/schematics/src/utility/template-property.helper.ts +++ b/packages/@o3r/schematics/src/utility/template-property.helper.ts @@ -1,5 +1,5 @@ import { - strings + strings, } from '@angular-devkit/core'; /** diff --git a/packages/@o3r/schematics/src/utility/update-imports.spec.ts b/packages/@o3r/schematics/src/utility/update-imports.spec.ts index 3fb5629f20..f7b4d317a6 100644 --- a/packages/@o3r/schematics/src/utility/update-imports.spec.ts +++ b/packages/@o3r/schematics/src/utility/update-imports.spec.ts @@ -1,12 +1,12 @@ import { - logging + logging, } from '@angular-devkit/core'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import * as ts from 'typescript'; import { - updateImportsInFile + updateImportsInFile, } from '@o3r/schematics'; describe('updateImportsInFile', () => { diff --git a/packages/@o3r/schematics/src/utility/update-imports.ts b/packages/@o3r/schematics/src/utility/update-imports.ts index c4564f33e5..f854c7c87e 100644 --- a/packages/@o3r/schematics/src/utility/update-imports.ts +++ b/packages/@o3r/schematics/src/utility/update-imports.ts @@ -1,11 +1,11 @@ import { - logging + logging, } from '@angular-devkit/core'; import type { - Tree + Tree, } from '@angular-devkit/schematics'; import { - findNodes + findNodes, } from '@schematics/angular/utility/ast-utils'; import * as ts from 'typescript'; diff --git a/packages/@o3r/schematics/src/utility/update-pipes.ts b/packages/@o3r/schematics/src/utility/update-pipes.ts index 60ea042032..ea6082a82b 100644 --- a/packages/@o3r/schematics/src/utility/update-pipes.ts +++ b/packages/@o3r/schematics/src/utility/update-pipes.ts @@ -1,25 +1,25 @@ import { basename, dirname, - join + join, } from 'node:path'; import { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import * as ts from 'typescript'; import { DecoratorWithArg, - isDecoratorWithArg + isDecoratorWithArg, } from './ast'; import { getO3rComponentInfoOrThrowIfNotFound, isNgClassComponent, - isNgClassDecorator + isNgClassDecorator, } from './component'; import { - findFilesInTree + findFilesInTree, } from './loaders'; /** Dictionary of pipes to be updated */ diff --git a/packages/@o3r/schematics/src/utility/wrapper.ts b/packages/@o3r/schematics/src/utility/wrapper.ts index cbcce13004..945e43a21e 100644 --- a/packages/@o3r/schematics/src/utility/wrapper.ts +++ b/packages/@o3r/schematics/src/utility/wrapper.ts @@ -1,29 +1,29 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import { applyToSubtree, chain, noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - SchematicWrapper + SchematicWrapper, } from '@o3r/telemetry'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { prompt, - Question + Question, } from 'inquirer'; import { hasSetupInformation, - setupDependencies + setupDependencies, } from '../rule-factories'; const noopSchematicWrapper: SchematicWrapper = (fn) => fn; diff --git a/packages/@o3r/store-sync/eslint.local.config.mjs b/packages/@o3r/store-sync/eslint.local.config.mjs index 630fd34e4e..23c8583292 100644 --- a/packages/@o3r/store-sync/eslint.local.config.mjs +++ b/packages/@o3r/store-sync/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/store-sync/schematics/ng-add/index.ts b/packages/@o3r/store-sync/schematics/ng-add/index.ts index cdf7302d59..285e70c4b8 100644 --- a/packages/@o3r/store-sync/schematics/ng-add/index.ts +++ b/packages/@o3r/store-sync/schematics/ng-add/index.ts @@ -2,13 +2,13 @@ import * as path from 'node:path'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const devDependenciesToInstall = [ diff --git a/packages/@o3r/store-sync/schematics/ng-add/schema.ts b/packages/@o3r/store-sync/schematics/ng-add/schema.ts index 2d30071a82..d75b392f1e 100644 --- a/packages/@o3r/store-sync/schematics/ng-add/schema.ts +++ b/packages/@o3r/store-sync/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/store-sync/src/core/interfaces.ts b/packages/@o3r/store-sync/src/core/interfaces.ts index 936cb6e6d0..304244801a 100644 --- a/packages/@o3r/store-sync/src/core/interfaces.ts +++ b/packages/@o3r/store-sync/src/core/interfaces.ts @@ -1,8 +1,8 @@ import type { - Serializer + Serializer, } from '@o3r/core'; import type { - SyncStorageConfig + SyncStorageConfig, } from '../sync-storage'; /** diff --git a/packages/@o3r/store-sync/src/core/storage-sync.helpers.ts b/packages/@o3r/store-sync/src/core/storage-sync.helpers.ts index cd784c5b9a..07135c7a04 100644 --- a/packages/@o3r/store-sync/src/core/storage-sync.helpers.ts +++ b/packages/@o3r/store-sync/src/core/storage-sync.helpers.ts @@ -1,15 +1,15 @@ import { createAction, - props + props, } from '@ngrx/store'; import type { - Serializer + Serializer, } from '@o3r/core'; import type { - SyncStorageConfig + SyncStorageConfig, } from '../sync-storage'; import type { - StorageSyncOptions + StorageSyncOptions, } from './interfaces'; /** diff --git a/packages/@o3r/store-sync/src/core/storage-sync.ts b/packages/@o3r/store-sync/src/core/storage-sync.ts index 5de56784ab..24996e493c 100644 --- a/packages/@o3r/store-sync/src/core/storage-sync.ts +++ b/packages/@o3r/store-sync/src/core/storage-sync.ts @@ -1,24 +1,24 @@ import { INIT, - UPDATE + UPDATE, } from '@ngrx/store'; import equal from 'fast-deep-equal'; import { - deepFillWithDate + deepFillWithDate, } from '../deep-fill/deep-fill'; import { - syncStorage + syncStorage, } from '../sync-storage'; import type { - StorageSyncOptions + StorageSyncOptions, } from './interfaces'; import { - StorageSyncConstructorOptions + StorageSyncConstructorOptions, } from './interfaces'; import { isLocalStorageConfig, isSerializer, - rehydrateAction + rehydrateAction, } from './storage-sync.helpers'; /** @@ -80,7 +80,6 @@ export class StorageSync { * Returns a meta reducer that handles storage sync */ public localStorageSync = () => { - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const base = (reducer: any) => syncStorage({ ...this.options, rehydrate: false, diff --git a/packages/@o3r/store-sync/src/deep-fill/deep-fill.spec.ts b/packages/@o3r/store-sync/src/deep-fill/deep-fill.spec.ts index 034a738996..8531d981fd 100644 --- a/packages/@o3r/store-sync/src/deep-fill/deep-fill.spec.ts +++ b/packages/@o3r/store-sync/src/deep-fill/deep-fill.spec.ts @@ -1,8 +1,8 @@ import { - utils + utils, } from '@ama-sdk/core'; import { - deepFillWithDate + deepFillWithDate, } from './deep-fill'; describe('Deep fill function', () => { diff --git a/packages/@o3r/store-sync/src/deep-fill/deep-fill.ts b/packages/@o3r/store-sync/src/deep-fill/deep-fill.ts index 6c1fde8f8c..a87a643e96 100644 --- a/packages/@o3r/store-sync/src/deep-fill/deep-fill.ts +++ b/packages/@o3r/store-sync/src/deep-fill/deep-fill.ts @@ -1,9 +1,9 @@ import { - utils + utils, } from '@ama-sdk/core'; import { deepFill, - type PrimitiveReviverMapper + type PrimitiveReviverMapper, } from '@o3r/core'; const mapper: PrimitiveReviverMapper[] = [ diff --git a/packages/@o3r/store-sync/src/sync-storage/interfaces.ts b/packages/@o3r/store-sync/src/sync-storage/interfaces.ts index bbe54e4718..a040fdea7d 100644 --- a/packages/@o3r/store-sync/src/sync-storage/interfaces.ts +++ b/packages/@o3r/store-sync/src/sync-storage/interfaces.ts @@ -1,5 +1,5 @@ import type { - Logger + Logger, } from '@o3r/core'; /** diff --git a/packages/@o3r/store-sync/src/sync-storage/storage-sync.spec.ts b/packages/@o3r/store-sync/src/sync-storage/storage-sync.spec.ts index 811cbfb48a..2d3b73bbda 100644 --- a/packages/@o3r/store-sync/src/sync-storage/storage-sync.spec.ts +++ b/packages/@o3r/store-sync/src/sync-storage/storage-sync.spec.ts @@ -1,22 +1,21 @@ -/* eslint-disable unicorn/consistent-function-scoping -- lot of arrow functions with the same name that are dedicated only for their test */ import { - INIT + INIT, } from '@ngrx/store'; import type { - ActionReducer + ActionReducer, } from '@ngrx/store'; import { - deepFill + deepFill, } from '@o3r/core'; import { StorageKeys, - SyncStorageConfig + SyncStorageConfig, } from './interfaces'; import { dateReviver, rehydrateApplicationState, syncStateUpdate, - syncStorage + syncStorage, } from './storage-sync'; class TypeB { @@ -101,7 +100,7 @@ describe('ngrxLocalStorage', () => { const undefinedState: { state: any } = { state: undefined }; - const featureKeys: StorageKeys = [{ 'featureState': { syncForFeature: true } }]; + const featureKeys: StorageKeys = [{ featureState: { syncForFeature: true } }]; let featureUndefinedState: any; @@ -238,7 +237,7 @@ describe('ngrxLocalStorage', () => { const s = new MockStorage(); const skr = mockStorageKeySerializer; - const keys = [{ 'feature': { filter: ['astring', 'aclass'], syncForFeature: true } }]; + const keys = [{ feature: { filter: ['astring', 'aclass'], syncForFeature: true } }]; syncStateUpdate(featureInitialState, keys, s, skr, false, undefined, undefined); @@ -273,10 +272,10 @@ describe('ngrxLocalStorage', () => { ); const raw1 = s.getItem('feature1'); - expect(raw1).toEqual(JSON.stringify({ 'slice11': true, 'slice12': [1, 2] })); + expect(raw1).toEqual(JSON.stringify({ slice11: true, slice12: [1, 2] })); const raw2 = s.getItem('feature2'); - expect(raw2).toEqual(JSON.stringify({ 'slice21': true, 'slice22': [1, 2] })); + expect(raw2).toEqual(JSON.stringify({ slice21: true, slice22: [1, 2] })); }); it('filtered - multiple keys at root - should properly revive partial state (feature Store)', () => { @@ -312,10 +311,10 @@ describe('ngrxLocalStorage', () => { ); const raw1 = s.getItem('feature1'); - expect(raw1).toEqual(JSON.stringify({ 'slice11': true, 'slice12': [1, 2] })); + expect(raw1).toEqual(JSON.stringify({ slice11: true, slice12: [1, 2] })); const raw2 = s.getItem('feature2'); - expect(raw2).toEqual(JSON.stringify({ 'slice21': true, 'slice22': [1, 2] })); + expect(raw2).toEqual(JSON.stringify({ slice21: true, slice22: [1, 2] })); }); it('reviver', () => { @@ -340,7 +339,7 @@ describe('ngrxLocalStorage', () => { const s = new MockStorage(); const skr = mockStorageKeySerializer; - const keys = [{ 'feature': { reviver: TypeA.reviver, syncForFeature: true } }]; + const keys = [{ feature: { reviver: TypeA.reviver, syncForFeature: true } }]; syncStateUpdate(featureInitialState, keys, s, skr, false, undefined, undefined); @@ -372,7 +371,7 @@ describe('ngrxLocalStorage', () => { const s = new MockStorage(); const skr = mockStorageKeySerializer; - const keys = [{ 'feature': { reviver: TypeA.reviver, syncForFeature: true } }]; + const keys = [{ feature: { reviver: TypeA.reviver, syncForFeature: true } }]; syncStateUpdate(featureInitialState, keys, s, skr, false, undefined, undefined); @@ -560,7 +559,7 @@ describe('ngrxLocalStorage', () => { // This tests that the state slice is removed when the state it's undefined for a feature state const s = new MockStorage(); const skr = mockStorageKeySerializer; - syncStateUpdate(featureInitialState, [{ 'state': { syncForFeature: true } }], s, skr, true, undefined, undefined); + syncStateUpdate(featureInitialState, [{ state: { syncForFeature: true } }], s, skr, true, undefined, undefined); // do update let raw = s.getItem('state'); @@ -592,7 +591,7 @@ describe('ngrxLocalStorage', () => { // This tests that the state slice is keeped when the state it's undefined const s = new MockStorage(); const skr = mockStorageKeySerializer; - syncStateUpdate(featureInitialState, [{ 'state': { syncForFeature: true } }], s, skr, false, undefined, undefined); + syncStateUpdate(featureInitialState, [{ state: { syncForFeature: true } }], s, skr, false, undefined, undefined); // do update let raw = s.getItem('state'); @@ -624,9 +623,9 @@ describe('ngrxLocalStorage', () => { const featureInitalState = { ...t1Simple }; const skr = mockStorageKeySerializer; - syncStateUpdate(t1Simple, [{ 'state': { syncForFeature: true } }], s, skr, false, undefined, undefined); + syncStateUpdate(t1Simple, [{ state: { syncForFeature: true } }], s, skr, false, undefined, undefined); - const finalState: any = rehydrateApplicationState([{ 'state': { syncForFeature: true } }], s, skr, false, undefined); + const finalState: any = rehydrateApplicationState([{ state: { syncForFeature: true } }], s, skr, false, undefined); expect(finalState).toEqual(featureInitalState); }); @@ -650,12 +649,12 @@ describe('ngrxLocalStorage', () => { // This tests that storage key serializer are working. const s = new MockStorage(); const skr = (key: string | number) => `this_key${key}`; - syncStateUpdate(featureInitialState, [{ 'state': { syncForFeature: true } }], s, skr, false, undefined, undefined); + syncStateUpdate(featureInitialState, [{ state: { syncForFeature: true } }], s, skr, false, undefined, undefined); const raw = s.getItem('1232342'); expect(raw).toBeNull(); - const finalState: any = rehydrateApplicationState([{ 'state': { syncForFeature: true } }], s, skr, true, undefined); + const finalState: any = rehydrateApplicationState([{ state: { syncForFeature: true } }], s, skr, true, undefined); expect(JSON.stringify(finalState)).toEqual(featureInitialStateJson); expect(t1 instanceof TypeA).toBeTruthy(); @@ -714,12 +713,12 @@ describe('ngrxLocalStorage', () => { return false; }; - syncStateUpdate(featureInitialState, [{ 'state': { syncForFeature: true } }], s, skr, false, shouldNotSyncSelector, undefined); + syncStateUpdate(featureInitialState, [{ state: { syncForFeature: true } }], s, skr, false, shouldNotSyncSelector, undefined); let raw = s.getItem('state'); expect(raw).toEqual(null); - let finalState: any = rehydrateApplicationState([{ 'state': { syncForFeature: true } }], s, skr, true, undefined); + let finalState: any = rehydrateApplicationState([{ state: { syncForFeature: true } }], s, skr, true, undefined); expect(JSON.stringify(finalState)).toEqual('{}'); // Selector should error - so still no sync @@ -727,7 +726,7 @@ describe('ngrxLocalStorage', () => { return state.doesNotExist; }; - syncStateUpdate(featureInitialState, [{ 'state': { syncForFeature: true } }], s, skr, false, errorSelector, undefined); + syncStateUpdate(featureInitialState, [{ state: { syncForFeature: true } }], s, skr, false, errorSelector, undefined); raw = s.getItem('state'); expect(raw).toEqual(null); @@ -737,12 +736,12 @@ describe('ngrxLocalStorage', () => { return true; }; - syncStateUpdate(featureInitialState, [{ 'state': { syncForFeature: true } }], s, skr, false, shouldSyncSelector, undefined); + syncStateUpdate(featureInitialState, [{ state: { syncForFeature: true } }], s, skr, false, shouldSyncSelector, undefined); raw = s.getItem('state'); expect(raw).toEqual(t1Json); - finalState = rehydrateApplicationState([{ 'state': { syncForFeature: true } }], s, skr, true, undefined); + finalState = rehydrateApplicationState([{ state: { syncForFeature: true } }], s, skr, true, undefined); expect(JSON.stringify(finalState)).toEqual(featureInitialStateJson); }); @@ -768,7 +767,7 @@ describe('ngrxLocalStorage', () => { // Set up reducers const reducer = (state = initialState, _action: any) => state; - const metaReducer = syncStorage({ keys: [{ 'state': { syncForFeature: true } }], rehydrate: true }); + const metaReducer = syncStorage({ keys: [{ state: { syncForFeature: true } }], rehydrate: true }); const action = { type: INIT }; // Resultant state should merge the oldstring state and our initial state diff --git a/packages/@o3r/store-sync/src/sync-storage/storage-sync.ts b/packages/@o3r/store-sync/src/sync-storage/storage-sync.ts index e88ed6502f..9961541f3c 100644 --- a/packages/@o3r/store-sync/src/sync-storage/storage-sync.ts +++ b/packages/@o3r/store-sync/src/sync-storage/storage-sync.ts @@ -1,18 +1,18 @@ import { INIT, - UPDATE + UPDATE, } from '@ngrx/store'; import { - deepFill + deepFill, } from '@o3r/core'; import type { - Logger + Logger, } from '@o3r/core'; import type { StorageKeyConfiguration, StorageKeys, SyncStorageConfig, - SyncStorageSyncOptions + SyncStorageSyncOptions, } from './interfaces'; /** diff --git a/packages/@o3r/storybook/addon/helpers.spec.ts b/packages/@o3r/storybook/addon/helpers.spec.ts index 7dcea67180..6c4bf11666 100644 --- a/packages/@o3r/storybook/addon/helpers.spec.ts +++ b/packages/@o3r/storybook/addon/helpers.spec.ts @@ -1,5 +1,5 @@ import { - generateThemeCss + generateThemeCss, } from './helpers'; describe('generateThemeCss', () => { diff --git a/packages/@o3r/storybook/component-wrapper/component-wrapper.component.ts b/packages/@o3r/storybook/component-wrapper/component-wrapper.component.ts index 670a100161..1911a7d007 100644 --- a/packages/@o3r/storybook/component-wrapper/component-wrapper.component.ts +++ b/packages/@o3r/storybook/component-wrapper/component-wrapper.component.ts @@ -6,20 +6,20 @@ import { ChangeDetectionStrategy, Component, - OnDestroy + OnDestroy, } from '@angular/core'; import { - Store + Store, } from '@ngrx/store'; import { ConfigurationStore, - upsertConfigurationEntity + upsertConfigurationEntity, } from '@o3r/configuration'; import { - Subscription + Subscription, } from 'rxjs'; import { - ComponentWrapperService + ComponentWrapperService, } from './component-wrapper.service'; /** diff --git a/packages/@o3r/storybook/component-wrapper/component-wrapper.module.ts b/packages/@o3r/storybook/component-wrapper/component-wrapper.module.ts index 415b07f23c..1eeabb573c 100644 --- a/packages/@o3r/storybook/component-wrapper/component-wrapper.module.ts +++ b/packages/@o3r/storybook/component-wrapper/component-wrapper.module.ts @@ -1,15 +1,15 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - ConfigurationStoreModule + ConfigurationStoreModule, } from '@o3r/configuration'; import { - ComponentWrapper + ComponentWrapper, } from './component-wrapper.component'; import { ComponentWrapperService, - wrapperService + wrapperService, } from './component-wrapper.service'; @NgModule({ diff --git a/packages/@o3r/storybook/component-wrapper/component-wrapper.service.ts b/packages/@o3r/storybook/component-wrapper/component-wrapper.service.ts index 324e1b4b8d..cb758e3c75 100644 --- a/packages/@o3r/storybook/component-wrapper/component-wrapper.service.ts +++ b/packages/@o3r/storybook/component-wrapper/component-wrapper.service.ts @@ -1,10 +1,10 @@ import { - Configuration + Configuration, } from '@o3r/core'; import { Observable, ReplaySubject, - Subject + Subject, } from 'rxjs'; export class ComponentWrapperService { diff --git a/packages/@o3r/storybook/eslint.local.config.mjs b/packages/@o3r/storybook/eslint.local.config.mjs index ea083e19a3..ff184b40f4 100644 --- a/packages/@o3r/storybook/eslint.local.config.mjs +++ b/packages/@o3r/storybook/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; @@ -66,7 +66,7 @@ export default [ } }, rules: { - 'strict': 'off' + strict: 'off' } } ]; diff --git a/packages/@o3r/storybook/schematics/ng-add/index.ts b/packages/@o3r/storybook/schematics/ng-add/index.ts index 1458fd704e..551421bc20 100644 --- a/packages/@o3r/storybook/schematics/ng-add/index.ts +++ b/packages/@o3r/storybook/schematics/ng-add/index.ts @@ -2,10 +2,10 @@ import * as path from 'node:path'; import { chain, noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/storybook/schematics/ng-add/schema.ts b/packages/@o3r/storybook/schematics/ng-add/schema.ts index 997e2c8c93..c635ea411b 100644 --- a/packages/@o3r/storybook/schematics/ng-add/schema.ts +++ b/packages/@o3r/storybook/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/storybook/schematics/storybook-base/index.ts b/packages/@o3r/storybook/schematics/storybook-base/index.ts index 0896f8d1d4..604929f081 100644 --- a/packages/@o3r/storybook/schematics/storybook-base/index.ts +++ b/packages/@o3r/storybook/schematics/storybook-base/index.ts @@ -1,9 +1,9 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -14,17 +14,17 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { getPackageManagerRunner, getTemplateFolder, - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; import { addPackageJsonDependency, getPackageJsonDependency, - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import * as ts from 'typescript'; diff --git a/packages/@o3r/storybook/src/configuration/configuration-configs.interface.ts b/packages/@o3r/storybook/src/configuration/configuration-configs.interface.ts index 4fac9602eb..c75f6b06d6 100644 --- a/packages/@o3r/storybook/src/configuration/configuration-configs.interface.ts +++ b/packages/@o3r/storybook/src/configuration/configuration-configs.interface.ts @@ -1,5 +1,5 @@ import { - StorybookStoryConfiguration + StorybookStoryConfiguration, } from '../types'; /** Configuration argument name prefix */ diff --git a/packages/@o3r/storybook/src/configuration/configuration.helpers.ts b/packages/@o3r/storybook/src/configuration/configuration.helpers.ts index f2570760be..ba6383dc8b 100644 --- a/packages/@o3r/storybook/src/configuration/configuration.helpers.ts +++ b/packages/@o3r/storybook/src/configuration/configuration.helpers.ts @@ -1,12 +1,12 @@ import { - ComponentConfigOutput + ComponentConfigOutput, } from '@o3r/components'; import { CONFIGURATION_PREFIX, - ConfigurationConfigs + ConfigurationConfigs, } from './configuration-configs.interface'; import { - getConfigurationMetadata + getConfigurationMetadata, } from './metadata-manager'; /** diff --git a/packages/@o3r/storybook/src/configuration/configuration.spec.ts b/packages/@o3r/storybook/src/configuration/configuration.spec.ts index 53f696b624..766a57456e 100644 --- a/packages/@o3r/storybook/src/configuration/configuration.spec.ts +++ b/packages/@o3r/storybook/src/configuration/configuration.spec.ts @@ -1,13 +1,13 @@ import { - CONFIGURATION_PREFIX + CONFIGURATION_PREFIX, } from './configuration-configs.interface'; import { extractConfiguration, - retrieveConfigFromProps + retrieveConfigFromProps, } from './configuration.helpers'; import { getConfigurationMetadata, - setConfigurationMetadata + setConfigurationMetadata, } from './metadata-manager'; describe('Configuration Metadata setup', () => { diff --git a/packages/@o3r/storybook/src/configuration/metadata-manager.ts b/packages/@o3r/storybook/src/configuration/metadata-manager.ts index fed022fad3..06e15e0e8d 100644 --- a/packages/@o3r/storybook/src/configuration/metadata-manager.ts +++ b/packages/@o3r/storybook/src/configuration/metadata-manager.ts @@ -1,5 +1,5 @@ import type { - ComponentConfigOutput + ComponentConfigOutput, } from '@o3r/components'; declare global { diff --git a/packages/@o3r/storybook/src/localization/localization-configs.interface.ts b/packages/@o3r/storybook/src/localization/localization-configs.interface.ts index 55e5a37037..dfad14fb66 100644 --- a/packages/@o3r/storybook/src/localization/localization-configs.interface.ts +++ b/packages/@o3r/storybook/src/localization/localization-configs.interface.ts @@ -1,5 +1,5 @@ import { - StorybookStoryConfiguration + StorybookStoryConfiguration, } from '../types'; /** Localization argument name prefix */ diff --git a/packages/@o3r/storybook/src/localization/localization.helpers.ts b/packages/@o3r/storybook/src/localization/localization.helpers.ts index e8da3efcb3..ed792ab788 100644 --- a/packages/@o3r/storybook/src/localization/localization.helpers.ts +++ b/packages/@o3r/storybook/src/localization/localization.helpers.ts @@ -1,12 +1,12 @@ import type { - LocalizationMetadata + LocalizationMetadata, } from '@o3r/localization'; import { LOCALIZATION_PREFIX, - LocalizationConfigs + LocalizationConfigs, } from './localization-configs.interface'; import { - getLocalizationMetadata + getLocalizationMetadata, } from './metadata-manager'; /** diff --git a/packages/@o3r/storybook/src/localization/localization.spec.ts b/packages/@o3r/storybook/src/localization/localization.spec.ts index 7cd63e75d5..0f784297de 100644 --- a/packages/@o3r/storybook/src/localization/localization.spec.ts +++ b/packages/@o3r/storybook/src/localization/localization.spec.ts @@ -1,13 +1,13 @@ import { - LOCALIZATION_PREFIX + LOCALIZATION_PREFIX, } from './localization-configs.interface'; import { extractLocalization, - getLocalizations + getLocalizations, } from './localization.helpers'; import { getLocalizationMetadata, - setLocalizationMetadata + setLocalizationMetadata, } from './metadata-manager'; describe('Localization Metadata setup', () => { diff --git a/packages/@o3r/storybook/src/localization/metadata-manager.ts b/packages/@o3r/storybook/src/localization/metadata-manager.ts index e05574a85d..86f64dabfc 100644 --- a/packages/@o3r/storybook/src/localization/metadata-manager.ts +++ b/packages/@o3r/storybook/src/localization/metadata-manager.ts @@ -1,5 +1,5 @@ import type { - LocalizationMetadata + LocalizationMetadata, } from '@o3r/localization'; declare global { diff --git a/packages/@o3r/storybook/src/styling/metadata-manager.ts b/packages/@o3r/storybook/src/styling/metadata-manager.ts index 97f70ce635..ffd9283aff 100644 --- a/packages/@o3r/storybook/src/styling/metadata-manager.ts +++ b/packages/@o3r/storybook/src/styling/metadata-manager.ts @@ -1,5 +1,5 @@ import type { - CssMetadata + CssMetadata, } from '@o3r/styling'; declare global { diff --git a/packages/@o3r/storybook/src/styling/style-configs.interface.ts b/packages/@o3r/storybook/src/styling/style-configs.interface.ts index ff89e219b7..40ae05e890 100644 --- a/packages/@o3r/storybook/src/styling/style-configs.interface.ts +++ b/packages/@o3r/storybook/src/styling/style-configs.interface.ts @@ -1,5 +1,5 @@ import { - StorybookStoryConfiguration + StorybookStoryConfiguration, } from '../types'; /** Style argument name prefix */ diff --git a/packages/@o3r/storybook/src/styling/styling.helpers.ts b/packages/@o3r/storybook/src/styling/styling.helpers.ts index 5a7d89f342..82f1d8c093 100644 --- a/packages/@o3r/storybook/src/styling/styling.helpers.ts +++ b/packages/@o3r/storybook/src/styling/styling.helpers.ts @@ -1,13 +1,13 @@ import type { CssMetadata, - CssVariable + CssVariable, } from '@o3r/styling'; import { - getStyleMetadata + getStyleMetadata, } from './metadata-manager'; import { StyleConfigs, - STYLING_PREFIX + STYLING_PREFIX, } from './style-configs.interface'; /** RegExp to check if the value is a color*/ diff --git a/packages/@o3r/storybook/src/styling/styling.spec.ts b/packages/@o3r/storybook/src/styling/styling.spec.ts index 4296199a8d..7c88f52738 100644 --- a/packages/@o3r/storybook/src/styling/styling.spec.ts +++ b/packages/@o3r/storybook/src/styling/styling.spec.ts @@ -1,15 +1,15 @@ import { getStyleMetadata, - setStyleMetadata + setStyleMetadata, } from './metadata-manager'; import { - STYLING_PREFIX + STYLING_PREFIX, } from './style-configs.interface'; import { extractStyling, getThemeVariables, getTypeAndValue, - setCssVariable + setCssVariable, } from './styling.helpers'; describe('Styling Metadata setup', () => { diff --git a/packages/@o3r/storybook/src/types.ts b/packages/@o3r/storybook/src/types.ts index b855a19a34..e0d0415e54 100644 --- a/packages/@o3r/storybook/src/types.ts +++ b/packages/@o3r/storybook/src/types.ts @@ -1,5 +1,5 @@ import { - ArgTypes + ArgTypes, } from '@storybook/angular'; /** Configuration of Storybook stories */ diff --git a/packages/@o3r/stylelint-plugin/eslint.local.config.mjs b/packages/@o3r/stylelint-plugin/eslint.local.config.mjs index 27cfc6e618..f0a6ba2aec 100644 --- a/packages/@o3r/stylelint-plugin/eslint.local.config.mjs +++ b/packages/@o3r/stylelint-plugin/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/stylelint-plugin/schematics/index.it.spec.ts b/packages/@o3r/stylelint-plugin/schematics/index.it.spec.ts index 4ff82801c6..4c7b1593e2 100644 --- a/packages/@o3r/stylelint-plugin/schematics/index.it.spec.ts +++ b/packages/@o3r/stylelint-plugin/schematics/index.it.spec.ts @@ -6,7 +6,7 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { - writeFile + writeFile, } from 'node:fs/promises'; import * as path from 'node:path'; import { @@ -16,7 +16,7 @@ import { packageManagerExec, packageManagerExecOnProject, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add stylelint-plugin', () => { diff --git a/packages/@o3r/stylelint-plugin/schematics/ng-add/index.ts b/packages/@o3r/stylelint-plugin/schematics/ng-add/index.ts index 351a4d04d9..57e37a921b 100644 --- a/packages/@o3r/stylelint-plugin/schematics/ng-add/index.ts +++ b/packages/@o3r/stylelint-plugin/schematics/ng-add/index.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json'); diff --git a/packages/@o3r/stylelint-plugin/schematics/ng-add/schema.ts b/packages/@o3r/stylelint-plugin/schematics/ng-add/schema.ts index dfb87a84c2..94fa0790c9 100644 --- a/packages/@o3r/stylelint-plugin/schematics/ng-add/schema.ts +++ b/packages/@o3r/stylelint-plugin/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/stylelint-plugin/src/index.mts b/packages/@o3r/stylelint-plugin/src/index.mts index c36c5e317d..20b4279aba 100644 --- a/packages/@o3r/stylelint-plugin/src/index.mts +++ b/packages/@o3r/stylelint-plugin/src/index.mts @@ -1,9 +1,9 @@ import stylelint from 'stylelint'; import { - rules + rules, } from './rules/index.mjs'; import { - getNamespacedRuleName + getNamespacedRuleName, } from './utils/get-namespaced-rule-name.mjs'; const { createPlugin } = stylelint; diff --git a/packages/@o3r/stylelint-plugin/src/rules/index.mts b/packages/@o3r/stylelint-plugin/src/rules/index.mts index ce11e43bdc..1fe8c1dbb8 100644 --- a/packages/@o3r/stylelint-plugin/src/rules/index.mts +++ b/packages/@o3r/stylelint-plugin/src/rules/index.mts @@ -1,5 +1,5 @@ import { - rule as o3rVarParameterEqualVariableRule + rule as o3rVarParameterEqualVariableRule, } from './o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mjs'; export const rules = { diff --git a/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mts b/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mts index e0bc9959a8..e07a7fba4b 100644 --- a/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mts +++ b/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.mts @@ -2,11 +2,11 @@ import type * as PostCSS from 'postcss'; import type { PostcssResult, Problem, - RuleContext + RuleContext, } from 'stylelint'; import stylelint from 'stylelint'; import { - getNamespacedRuleName + getNamespacedRuleName, } from '../../utils/get-namespaced-rule-name.mjs'; const { utils } = stylelint; diff --git a/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.spec.ts b/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.spec.ts index 9e7a97403e..7e932865ed 100644 --- a/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.spec.ts +++ b/packages/@o3r/stylelint-plugin/src/rules/o3r-var-parameter-equal-variable/o3r-var-parameter-equal-variable.spec.ts @@ -1,11 +1,11 @@ import { - lint + lint, } from 'stylelint'; import plugins from '../../index.mts'; const config = { plugins, - 'rules': { + rules: { '@o3r/o3r-var-parameter-equal-variable': true } }; diff --git a/packages/@o3r/styling/builders/metadata-check/helpers/styling-metadata-comparison.helper.ts b/packages/@o3r/styling/builders/metadata-check/helpers/styling-metadata-comparison.helper.ts index 488f70396c..b86434ae1b 100644 --- a/packages/@o3r/styling/builders/metadata-check/helpers/styling-metadata-comparison.helper.ts +++ b/packages/@o3r/styling/builders/metadata-check/helpers/styling-metadata-comparison.helper.ts @@ -1,9 +1,9 @@ import type { - MetadataComparator + MetadataComparator, } from '@o3r/extractors'; import type { CssMetadata, - CssVariable + CssVariable, } from '@o3r/styling'; /** diff --git a/packages/@o3r/styling/builders/metadata-check/index.it.spec.ts b/packages/@o3r/styling/builders/metadata-check/index.it.spec.ts index 9ff7a744ce..2a8c4b81c4 100644 --- a/packages/@o3r/styling/builders/metadata-check/index.it.spec.ts +++ b/packages/@o3r/styling/builders/metadata-check/index.it.spec.ts @@ -8,22 +8,22 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { existsSync, promises, - readFileSync + readFileSync, } from 'node:fs'; import { dirname, - join + join, } from 'node:path'; import type { - MigrationFile + MigrationFile, } from '@o3r/extractors'; import { getExternalDependenciesVersionRange, - getPackageManager + getPackageManager, } from '@o3r/schematics'; import type { CssMetadata, - CssVariable + CssVariable, } from '@o3r/styling'; import { getDefaultExecSyncOptions, @@ -31,13 +31,13 @@ import { packageManagerAdd, packageManagerExec, packageManagerVersion, - publishToVerdaccio + publishToVerdaccio, } from '@o3r/test-helpers'; import { - inc + inc, } from 'semver'; import type { - MigrationStylingData + MigrationStylingData, } from './helpers/styling-metadata-comparison.helper'; const baseVersion = '1.2.0'; @@ -49,12 +49,12 @@ const defaultMigrationData: MigrationFile = { version, changes: [ { // Rename key name - 'contentType': 'STYLE', - 'before': { - 'name': 'css-var-name1' + contentType: 'STYLE', + before: { + name: 'css-var-name1' }, - 'after': { - 'name': 'new-css-var-name1' + after: { + name: 'new-css-var-name1' } } ] diff --git a/packages/@o3r/styling/builders/metadata-check/index.ts b/packages/@o3r/styling/builders/metadata-check/index.ts index e6fe213e70..c0e506957f 100644 --- a/packages/@o3r/styling/builders/metadata-check/index.ts +++ b/packages/@o3r/styling/builders/metadata-check/index.ts @@ -1,16 +1,16 @@ import { type BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { checkMetadataBuilder, - createBuilderWithMetricsIfInstalled + createBuilderWithMetricsIfInstalled, } from '@o3r/extractors'; import { - stylingMetadataComparator + stylingMetadataComparator, } from './helpers'; import type { - StylingMigrationMetadataCheckBuilderSchema + StylingMigrationMetadataCheckBuilderSchema, } from './schema'; export default createBuilder(createBuilderWithMetricsIfInstalled((options, context): Promise => { diff --git a/packages/@o3r/styling/builders/metadata-check/schema.ts b/packages/@o3r/styling/builders/metadata-check/schema.ts index e194495802..29adbdb5f9 100644 --- a/packages/@o3r/styling/builders/metadata-check/schema.ts +++ b/packages/@o3r/styling/builders/metadata-check/schema.ts @@ -1,5 +1,5 @@ import type { - MigrationMetadataCheckBuilderOptions + MigrationMetadataCheckBuilderOptions, } from '@o3r/extractors'; /** Migration metadata check builder schema */ diff --git a/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.spec.ts b/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.spec.ts index 80cf5a59a0..d49041eb1f 100644 --- a/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.spec.ts +++ b/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.spec.ts @@ -1,11 +1,11 @@ import { - resolve + resolve, } from 'node:path'; import { - Logger + Logger, } from 'sass'; import { - CssVariableExtractor + CssVariableExtractor, } from './css-variable.extractor'; const file = resolve(__dirname, '..', '..', '..', 'test.scss'); diff --git a/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.ts b/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.ts index a9b6b0f3db..7b225235a8 100644 --- a/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.ts +++ b/packages/@o3r/styling/builders/style-extractor/helpers/css-variable.extractor.ts @@ -1,18 +1,18 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - pathToFileURL + pathToFileURL, } from 'node:url'; import { - getLibraryCmsMetadata + getLibraryCmsMetadata, } from '@o3r/extractors'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import type { CssMetadata, CssVariable, - CssVariableType + CssVariableType, } from '@o3r/styling'; import { compileString, @@ -23,10 +23,10 @@ import { SassNumber, SassString, StringOptions, - Value + Value, } from 'sass'; import type { - StyleExtractorBuilderSchema + StyleExtractorBuilderSchema, } from '../schema'; /** diff --git a/packages/@o3r/styling/builders/style-extractor/index.spec.ts b/packages/@o3r/styling/builders/style-extractor/index.spec.ts index 7cb741d39a..d3f71b2034 100644 --- a/packages/@o3r/styling/builders/style-extractor/index.spec.ts +++ b/packages/@o3r/styling/builders/style-extractor/index.spec.ts @@ -1,20 +1,20 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Architect + Architect, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { cleanVirtualFileSystem, - useVirtualFileSystem + useVirtualFileSystem, } from '@o3r/test-helpers'; import { - StyleExtractorBuilderSchema + StyleExtractorBuilderSchema, } from './schema'; describe('Styling Extractor Builder', () => { diff --git a/packages/@o3r/styling/builders/style-extractor/index.ts b/packages/@o3r/styling/builders/style-extractor/index.ts index c732d13103..cc1d4edf3f 100644 --- a/packages/@o3r/styling/builders/style-extractor/index.ts +++ b/packages/@o3r/styling/builders/style-extractor/index.ts @@ -1,37 +1,37 @@ import * as fs from 'node:fs'; import { - EOL + EOL, } from 'node:os'; import * as path from 'node:path'; import { BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { CmsMetadataData, createBuilderWithMetricsIfInstalled, getLibraryCmsMetadata, - validateJson + validateJson, } from '@o3r/extractors'; import { - isO3rClassComponent + isO3rClassComponent, } from '@o3r/schematics'; import type { - CssMetadata + CssMetadata, } from '@o3r/styling'; import * as chokidar from 'chokidar'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import type { - Logger + Logger, } from 'sass'; import * as ts from 'typescript'; import { - CssVariableExtractor + CssVariableExtractor, } from './helpers/index'; import { - StyleExtractorBuilderSchema + StyleExtractorBuilderSchema, } from './schema'; export * from './schema'; diff --git a/packages/@o3r/styling/builders/style-extractor/schema.ts b/packages/@o3r/styling/builders/style-extractor/schema.ts index 074edf1fab..0ee20e5e83 100644 --- a/packages/@o3r/styling/builders/style-extractor/schema.ts +++ b/packages/@o3r/styling/builders/style-extractor/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface StyleExtractorBuilderSchema extends SchematicOptionObject { diff --git a/packages/@o3r/styling/eslint.local.config.mjs b/packages/@o3r/styling/eslint.local.config.mjs index cd86ca124f..d748cd4326 100644 --- a/packages/@o3r/styling/eslint.local.config.mjs +++ b/packages/@o3r/styling/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/packages/@o3r/styling/schematics/cms-adapter/index.ts b/packages/@o3r/styling/schematics/cms-adapter/index.ts index 925de8e57e..86339d1a67 100644 --- a/packages/@o3r/styling/schematics/cms-adapter/index.ts +++ b/packages/@o3r/styling/schematics/cms-adapter/index.ts @@ -4,13 +4,13 @@ import { noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, getPackageManagerRunner, getWorkspaceConfig, - readPackageJson + readPackageJson, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/styling/schematics/index.it.spec.ts b/packages/@o3r/styling/schematics/index.it.spec.ts index f07e49203d..5ff356335f 100644 --- a/packages/@o3r/styling/schematics/index.it.spec.ts +++ b/packages/@o3r/styling/schematics/index.it.spec.ts @@ -12,7 +12,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add styling', () => { diff --git a/packages/@o3r/styling/schematics/ng-add/index.ts b/packages/@o3r/styling/schematics/ng-add/index.ts index ad939e944d..770642990c 100644 --- a/packages/@o3r/styling/schematics/ng-add/index.ts +++ b/packages/@o3r/styling/schematics/ng-add/index.ts @@ -2,13 +2,13 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateCmsAdapter + updateCmsAdapter, } from '../cms-adapter'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const devDependenciesToInstall = [ diff --git a/packages/@o3r/styling/schematics/ng-add/schema.ts b/packages/@o3r/styling/schematics/ng-add/schema.ts index 9857bc4e1e..c0690f5b99 100644 --- a/packages/@o3r/styling/schematics/ng-add/schema.ts +++ b/packages/@o3r/styling/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/styling/schematics/ng-add/theme-files/index.ts b/packages/@o3r/styling/schematics/ng-add/theme-files/index.ts index 3c2fa2088a..d2cada6c79 100644 --- a/packages/@o3r/styling/schematics/ng-add/theme-files/index.ts +++ b/packages/@o3r/styling/schematics/ng-add/theme-files/index.ts @@ -1,6 +1,6 @@ import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -12,7 +12,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/styling/schematics/ng-add/updates-of-old-otter-scope/imports/update-imports-with-scope.spec.ts b/packages/@o3r/styling/schematics/ng-add/updates-of-old-otter-scope/imports/update-imports-with-scope.spec.ts index d6f12b2e90..558d531dd5 100644 --- a/packages/@o3r/styling/schematics/ng-add/updates-of-old-otter-scope/imports/update-imports-with-scope.spec.ts +++ b/packages/@o3r/styling/schematics/ng-add/updates-of-old-otter-scope/imports/update-imports-with-scope.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - updateSassImports + updateSassImports, } from '@o3r/schematics'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; const collectionPath = path.join(__dirname, '..', '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/styling/schematics/ng-update/index.ts b/packages/@o3r/styling/schematics/ng-update/index.ts index 76455b70c6..e0681b211f 100644 --- a/packages/@o3r/styling/schematics/ng-update/index.ts +++ b/packages/@o3r/styling/schematics/ng-update/index.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateScssImports + updateScssImports, } from './v10.0/update-scss-imports'; /** diff --git a/packages/@o3r/styling/schematics/ng-update/v10.0/index.spec.ts b/packages/@o3r/styling/schematics/ng-update/v10.0/index.spec.ts index 8ce29e8080..eb356e149a 100644 --- a/packages/@o3r/styling/schematics/ng-update/v10.0/index.spec.ts +++ b/packages/@o3r/styling/schematics/ng-update/v10.0/index.spec.ts @@ -1,16 +1,16 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - updateScssImports + updateScssImports, } from './update-scss-imports'; describe('Update v10', () => { diff --git a/packages/@o3r/styling/schematics/ng-update/v10.0/update-scss-imports.ts b/packages/@o3r/styling/schematics/ng-update/v10.0/update-scss-imports.ts index 7da5b5a290..820dd269e5 100644 --- a/packages/@o3r/styling/schematics/ng-update/v10.0/update-scss-imports.ts +++ b/packages/@o3r/styling/schematics/ng-update/v10.0/update-scss-imports.ts @@ -1,8 +1,8 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - getFilesWithExtensionFromTree + getFilesWithExtensionFromTree, } from '@o3r/schematics'; export const updateScssImports = (): Rule => { diff --git a/packages/@o3r/styling/schematics/theming-to-component/index.spec.ts b/packages/@o3r/styling/schematics/theming-to-component/index.spec.ts index bbdd8f631d..dece00e1e7 100644 --- a/packages/@o3r/styling/schematics/theming-to-component/index.spec.ts +++ b/packages/@o3r/styling/schematics/theming-to-component/index.spec.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/styling/schematics/theming-to-component/index.ts b/packages/@o3r/styling/schematics/theming-to-component/index.ts index b436e7b4b6..a7d85e00c1 100644 --- a/packages/@o3r/styling/schematics/theming-to-component/index.ts +++ b/packages/@o3r/styling/schematics/theming-to-component/index.ts @@ -1,6 +1,6 @@ import { basename, - dirname + dirname, } from 'node:path'; import { apply, @@ -13,18 +13,18 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { applyToUpdateRecorder, - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import type { - NgAddThemingSchematicsSchema + NgAddThemingSchematicsSchema, } from './schema'; const checkTheming = (stylePath: string, tree: Tree) => { diff --git a/packages/@o3r/styling/schematics/theming-to-component/schema.ts b/packages/@o3r/styling/schematics/theming-to-component/schema.ts index e8ec977faa..9f922c6e24 100644 --- a/packages/@o3r/styling/schematics/theming-to-component/schema.ts +++ b/packages/@o3r/styling/schematics/theming-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddThemingSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/styling/scss/theming/functions.spec.ts b/packages/@o3r/styling/scss/theming/functions.spec.ts index 3d3388a502..39263e070f 100644 --- a/packages/@o3r/styling/scss/theming/functions.spec.ts +++ b/packages/@o3r/styling/scss/theming/functions.spec.ts @@ -1,8 +1,8 @@ import { - resolve + resolve, } from 'node:path'; import { - compileString + compileString, } from 'sass'; const url = new URL('.', 'file://' + resolve(__dirname, 'test.scss')); diff --git a/packages/@o3r/styling/scss/theming/mixins.spec.ts b/packages/@o3r/styling/scss/theming/mixins.spec.ts index 0da8f471e6..359a367fed 100644 --- a/packages/@o3r/styling/scss/theming/mixins.spec.ts +++ b/packages/@o3r/styling/scss/theming/mixins.spec.ts @@ -1,8 +1,8 @@ import { - resolve + resolve, } from 'node:path'; import { - compileString + compileString, } from 'sass'; const url = new URL('.', 'file://' + resolve(__dirname, 'test.scss')); diff --git a/packages/@o3r/styling/scss/utils/functions.spec.ts b/packages/@o3r/styling/scss/utils/functions.spec.ts index 0b01a6d708..dbb6007e82 100644 --- a/packages/@o3r/styling/scss/utils/functions.spec.ts +++ b/packages/@o3r/styling/scss/utils/functions.spec.ts @@ -1,9 +1,9 @@ import { - resolve + resolve, } from 'node:path'; import { compileString, - Logger + Logger, } from 'sass'; const url = new URL('.', 'file://' + resolve(__dirname, 'test.scss')); diff --git a/packages/@o3r/styling/src/breakpoints.ts b/packages/@o3r/styling/src/breakpoints.ts index c161c9b1a8..a84b1fa510 100644 --- a/packages/@o3r/styling/src/breakpoints.ts +++ b/packages/@o3r/styling/src/breakpoints.ts @@ -1,5 +1,5 @@ import { - Breakpoints + Breakpoints, } from '@angular/cdk/layout'; /** diff --git a/packages/@o3r/styling/src/core/styles.interface.ts b/packages/@o3r/styling/src/core/styles.interface.ts index e6a460b457..306fd342f0 100644 --- a/packages/@o3r/styling/src/core/styles.interface.ts +++ b/packages/@o3r/styling/src/core/styles.interface.ts @@ -1,5 +1,5 @@ import type { - ItemIdentifier + ItemIdentifier, } from '@o3r/core'; export type CssVariableType = 'string' | 'color'; diff --git a/packages/@o3r/styling/src/devkit/styling-devkit.interface.ts b/packages/@o3r/styling/src/devkit/styling-devkit.interface.ts index b383809a8f..c8488f098e 100644 --- a/packages/@o3r/styling/src/devkit/styling-devkit.interface.ts +++ b/packages/@o3r/styling/src/devkit/styling-devkit.interface.ts @@ -3,10 +3,10 @@ import type { DevtoolsCommonOptions, MessageDataTypes, OtterMessageContent, - RequestMessagesContentMessage + RequestMessagesContentMessage, } from '@o3r/core'; import { - CssVariable + CssVariable, } from '../core/index'; /** diff --git a/packages/@o3r/styling/src/devkit/styling-devtools.message.service.ts b/packages/@o3r/styling/src/devkit/styling-devtools.message.service.ts index 68b2678254..811ddd246b 100644 --- a/packages/@o3r/styling/src/devkit/styling-devtools.message.service.ts +++ b/packages/@o3r/styling/src/devkit/styling-devtools.message.service.ts @@ -3,30 +3,30 @@ import { Inject, Injectable, OnDestroy, - Optional + Optional, } from '@angular/core'; import { filterMessageContent, - sendOtterMessage + sendOtterMessage, } from '@o3r/core'; import { - LoggerService + LoggerService, } from '@o3r/logger'; import { fromEvent, - Subscription + Subscription, } from 'rxjs'; import { AvailableStylingMessageContents, StylingDevtoolsServiceOptions, - StylingMessageDataTypes + StylingMessageDataTypes, } from './styling-devkit.interface'; import { - OtterStylingDevtools + OtterStylingDevtools, } from './styling-devtools.service'; import { OTTER_STYLING_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_STYLING_DEVTOOLS_OPTIONS + OTTER_STYLING_DEVTOOLS_OPTIONS, } from './styling-devtools.token'; const isStylingMessage = (message: any): message is AvailableStylingMessageContents => { diff --git a/packages/@o3r/styling/src/devkit/styling-devtools.module.ts b/packages/@o3r/styling/src/devkit/styling-devtools.module.ts index 08221d3c02..30e475cece 100644 --- a/packages/@o3r/styling/src/devkit/styling-devtools.module.ts +++ b/packages/@o3r/styling/src/devkit/styling-devtools.module.ts @@ -1,19 +1,19 @@ import { ModuleWithProviders, - NgModule + NgModule, } from '@angular/core'; import type { - StylingDevtoolsServiceOptions + StylingDevtoolsServiceOptions, } from './styling-devkit.interface'; import { - StylingDevtoolsMessageService + StylingDevtoolsMessageService, } from './styling-devtools.message.service'; import { - OtterStylingDevtools + OtterStylingDevtools, } from './styling-devtools.service'; import { OTTER_STYLING_DEVTOOLS_DEFAULT_OPTIONS, - OTTER_STYLING_DEVTOOLS_OPTIONS + OTTER_STYLING_DEVTOOLS_OPTIONS, } from './styling-devtools.token'; @NgModule({ diff --git a/packages/@o3r/styling/src/devkit/styling-devtools.service.ts b/packages/@o3r/styling/src/devkit/styling-devtools.service.ts index 11483a687e..13bf7e9bf8 100644 --- a/packages/@o3r/styling/src/devkit/styling-devtools.service.ts +++ b/packages/@o3r/styling/src/devkit/styling-devtools.service.ts @@ -1,12 +1,12 @@ import { - DOCUMENT + DOCUMENT, } from '@angular/common'; import { inject, - Injectable + Injectable, } from '@angular/core'; import type { - CssMetadata + CssMetadata, } from '../core/index'; /** diff --git a/packages/@o3r/styling/src/devkit/styling-devtools.token.ts b/packages/@o3r/styling/src/devkit/styling-devtools.token.ts index 7c5267ebde..ae8a40f082 100644 --- a/packages/@o3r/styling/src/devkit/styling-devtools.token.ts +++ b/packages/@o3r/styling/src/devkit/styling-devtools.token.ts @@ -1,8 +1,8 @@ import { - InjectionToken + InjectionToken, } from '@angular/core'; import type { - StylingDevtoolsServiceOptions + StylingDevtoolsServiceOptions, } from './styling-devkit.interface'; /** diff --git a/packages/@o3r/styling/src/services/styling/style-lazy-loader.module.ts b/packages/@o3r/styling/src/services/styling/style-lazy-loader.module.ts index 01de41adb5..8b209f4cc0 100644 --- a/packages/@o3r/styling/src/services/styling/style-lazy-loader.module.ts +++ b/packages/@o3r/styling/src/services/styling/style-lazy-loader.module.ts @@ -1,8 +1,8 @@ import { - NgModule + NgModule, } from '@angular/core'; import { - DynamicContentModule + DynamicContentModule, } from '@o3r/dynamic-content'; /** diff --git a/packages/@o3r/styling/src/services/styling/style-lazy-loader.service.ts b/packages/@o3r/styling/src/services/styling/style-lazy-loader.service.ts index 4fbf34ecc6..d40fc4b4e0 100644 --- a/packages/@o3r/styling/src/services/styling/style-lazy-loader.service.ts +++ b/packages/@o3r/styling/src/services/styling/style-lazy-loader.service.ts @@ -1,14 +1,14 @@ import { - Injectable + Injectable, } from '@angular/core'; import { - DynamicContentService + DynamicContentService, } from '@o3r/dynamic-content'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - StyleLazyLoaderModule + StyleLazyLoaderModule, } from './style-lazy-loader.module'; /** diff --git a/packages/@o3r/telemetry/eslint.local.config.mjs b/packages/@o3r/telemetry/eslint.local.config.mjs index acdcb4e446..6627ddffb9 100644 --- a/packages/@o3r/telemetry/eslint.local.config.mjs +++ b/packages/@o3r/telemetry/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/telemetry/schematics/ng-add/index.ts b/packages/@o3r/telemetry/schematics/ng-add/index.ts index df3ea035da..8b396a9119 100644 --- a/packages/@o3r/telemetry/schematics/ng-add/index.ts +++ b/packages/@o3r/telemetry/schematics/ng-add/index.ts @@ -1,11 +1,11 @@ import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/telemetry/schematics/ng-update/index.ts b/packages/@o3r/telemetry/schematics/ng-update/index.ts index 30193b4cf4..913d4fe459 100644 --- a/packages/@o3r/telemetry/schematics/ng-update/index.ts +++ b/packages/@o3r/telemetry/schematics/ng-update/index.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - updateO3rMetricsConfig + updateO3rMetricsConfig, } from './v11.3/index'; /** diff --git a/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.spec.ts b/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.spec.ts index d7cda556cf..84142a7e78 100644 --- a/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.spec.ts +++ b/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.spec.ts @@ -1,16 +1,16 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - updateO3rMetricsConfig + updateO3rMetricsConfig, } from './index'; describe('Update v11.3', () => { diff --git a/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.ts b/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.ts index 2b06744e8a..2020d0fdd6 100644 --- a/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.ts +++ b/packages/@o3r/telemetry/schematics/ng-update/v11.3/index.ts @@ -1,5 +1,5 @@ import { - type Rule + type Rule, } from '@angular-devkit/schematics'; export const updateO3rMetricsConfig: Rule = (tree) => { diff --git a/packages/@o3r/telemetry/src/builders/index.spec.ts b/packages/@o3r/telemetry/src/builders/index.spec.ts index 82bbb1e11f..0d609e385d 100644 --- a/packages/@o3r/telemetry/src/builders/index.spec.ts +++ b/packages/@o3r/telemetry/src/builders/index.spec.ts @@ -1,17 +1,17 @@ import { Architect, BuilderOutput, - createBuilder + createBuilder, } from '@angular-devkit/architect'; import { - TestingArchitectHost + TestingArchitectHost, } from '@angular-devkit/architect/testing'; import { - schema + schema, } from '@angular-devkit/core'; import { BuilderWrapper, - createBuilderWithMetrics + createBuilderWithMetrics, } from './index'; jest.mock('../environment/index', () => { @@ -86,7 +86,6 @@ describe('Builder with metrics', () => { it('should works if we chain builder wrapper', async () => { const expectedOutput = { success: true }; const originalBuilderFn = jest.fn((): BuilderOutput => expectedOutput); - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const noopBuilderWrapper: BuilderWrapper = (builderFn) => (opts, ctx) => builderFn(opts, ctx); const builder = createBuilder(noopBuilderWrapper(createBuilderWithMetrics(originalBuilderFn))); architectHost.addBuilder('.:builder', builder); diff --git a/packages/@o3r/telemetry/src/builders/index.ts b/packages/@o3r/telemetry/src/builders/index.ts index d15cb81ee1..38e17d12a8 100644 --- a/packages/@o3r/telemetry/src/builders/index.ts +++ b/packages/@o3r/telemetry/src/builders/index.ts @@ -1,22 +1,22 @@ import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - performance + performance, } from 'node:perf_hooks'; import type { BuilderContext, - BuilderOutput + BuilderOutput, } from '@angular-devkit/architect'; import { - getEnvironmentInfo + getEnvironmentInfo, } from '../environment/index'; import { BuilderMetricData, sendData as defaultSendData, - type SendDataFn + type SendDataFn, } from '../sender'; type BuilderWrapperFn = diff --git a/packages/@o3r/telemetry/src/cli/index.spec.ts b/packages/@o3r/telemetry/src/cli/index.spec.ts index fd50c5eff2..a42b5f0771 100644 --- a/packages/@o3r/telemetry/src/cli/index.spec.ts +++ b/packages/@o3r/telemetry/src/cli/index.spec.ts @@ -19,7 +19,7 @@ jest.mock('node:perf_hooks', () => { }); import { - createCliWithMetrics + createCliWithMetrics, } from './index'; const expectedOutput = { success: true }; diff --git a/packages/@o3r/telemetry/src/cli/index.ts b/packages/@o3r/telemetry/src/cli/index.ts index ff6f6cf7d7..45bdbf7e49 100644 --- a/packages/@o3r/telemetry/src/cli/index.ts +++ b/packages/@o3r/telemetry/src/cli/index.ts @@ -1,19 +1,19 @@ import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import path from 'node:path'; import minimist from 'minimist'; import type { - Opts as MinimistOptions + Opts as MinimistOptions, } from 'minimist'; import { - getEnvironmentInfo + getEnvironmentInfo, } from '../environment'; import { type CliMetricData, sendData as defaultSendData, - type SendDataFn + type SendDataFn, } from '../sender'; /** Simple Logger interface */ diff --git a/packages/@o3r/telemetry/src/environment/index.ts b/packages/@o3r/telemetry/src/environment/index.ts index 879e4d8baa..4cd0f866c6 100644 --- a/packages/@o3r/telemetry/src/environment/index.ts +++ b/packages/@o3r/telemetry/src/environment/index.ts @@ -1,5 +1,5 @@ import { - execSync + execSync, } from 'node:child_process'; import * as fs from 'node:fs'; import * as os from 'node:os'; diff --git a/packages/@o3r/telemetry/src/schematics/index.spec.ts b/packages/@o3r/telemetry/src/schematics/index.spec.ts index 3873544bb0..91da451df3 100644 --- a/packages/@o3r/telemetry/src/schematics/index.spec.ts +++ b/packages/@o3r/telemetry/src/schematics/index.spec.ts @@ -2,14 +2,14 @@ import { callRule, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { createSchematicWithMetrics, - SchematicWrapper + SchematicWrapper, } from './index'; jest.mock('../environment/index', () => { @@ -77,7 +77,6 @@ describe('createSchematicWithMetricsIfInstalled', () => { const rule = jest.fn((tree: Tree) => tree); const originalSchematic = jest.fn((_opts: any): Rule => rule); - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function const noopSchematicWrapper: SchematicWrapper = (schematicFn) => (opts) => schematicFn(opts); const schematic = noopSchematicWrapper(createSchematicWithMetrics(originalSchematic)); const options = { diff --git a/packages/@o3r/telemetry/src/schematics/index.ts b/packages/@o3r/telemetry/src/schematics/index.ts index 7206ff7466..7f37d519a1 100644 --- a/packages/@o3r/telemetry/src/schematics/index.ts +++ b/packages/@o3r/telemetry/src/schematics/index.ts @@ -1,19 +1,19 @@ import { - performance + performance, } from 'node:perf_hooks'; import type { - JsonObject + JsonObject, } from '@angular-devkit/core'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - getEnvironmentInfo + getEnvironmentInfo, } from '../environment/index'; import { sendData as defaultSendData, SchematicMetricData, - type SendDataFn + type SendDataFn, } from '../sender'; /** diff --git a/packages/@o3r/telemetry/src/sender/index.ts b/packages/@o3r/telemetry/src/sender/index.ts index db71c8e09a..11d36584f5 100644 --- a/packages/@o3r/telemetry/src/sender/index.ts +++ b/packages/@o3r/telemetry/src/sender/index.ts @@ -1,5 +1,5 @@ import { - EnvironmentMetricData + EnvironmentMetricData, } from '../environment'; export interface BaseMetricData { diff --git a/packages/@o3r/test-helpers/eslint.local.config.mjs b/packages/@o3r/test-helpers/eslint.local.config.mjs index 06295f2dad..b94e8ccaff 100644 --- a/packages/@o3r/test-helpers/eslint.local.config.mjs +++ b/packages/@o3r/test-helpers/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/test-helpers/schematics/ng-add/index.ts b/packages/@o3r/test-helpers/schematics/ng-add/index.ts index e6fbc10739..5122c8322f 100644 --- a/packages/@o3r/test-helpers/schematics/ng-add/index.ts +++ b/packages/@o3r/test-helpers/schematics/ng-add/index.ts @@ -2,13 +2,13 @@ import * as path from 'node:path'; import { chain, noop, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - DependencyToAdd + DependencyToAdd, } from '@o3r/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const doCustomAction: Rule = (tree, _context) => { diff --git a/packages/@o3r/test-helpers/schematics/ng-add/schema.ts b/packages/@o3r/test-helpers/schematics/ng-add/schema.ts index 2d30071a82..d75b392f1e 100644 --- a/packages/@o3r/test-helpers/schematics/ng-add/schema.ts +++ b/packages/@o3r/test-helpers/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/test-helpers/src/jest-environment/index.ts b/packages/@o3r/test-helpers/src/jest-environment/index.ts index 6edca40f7d..97951b74fc 100644 --- a/packages/@o3r/test-helpers/src/jest-environment/index.ts +++ b/packages/@o3r/test-helpers/src/jest-environment/index.ts @@ -1,26 +1,26 @@ import { - execSync + execSync, } from 'node:child_process'; import { - rm + rm, } from 'node:fs/promises'; import { - join + join, } from 'node:path'; import type { EnvironmentContext, - JestEnvironmentConfig + JestEnvironmentConfig, } from '@jest/environment'; import type { - Circus + Circus, } from '@jest/types'; import { - TestEnvironment as NodeTestEnvironment + TestEnvironment as NodeTestEnvironment, } from 'jest-environment-node'; import pidFromPort from 'pid-from-port'; import { prepareTestEnv, - type PrepareTestEnvType + type PrepareTestEnvType, } from '../prepare-test-env'; /** diff --git a/packages/@o3r/test-helpers/src/prepare-test-env.ts b/packages/@o3r/test-helpers/src/prepare-test-env.ts index 0fec60a948..a7fc73332b 100644 --- a/packages/@o3r/test-helpers/src/prepare-test-env.ts +++ b/packages/@o3r/test-helpers/src/prepare-test-env.ts @@ -1,25 +1,25 @@ import type { - ExecSyncOptions + ExecSyncOptions, } from 'node:child_process'; import { cpSync, existsSync, mkdirSync, readFileSync, - rmSync + rmSync, } from 'node:fs'; import * as path from 'node:path'; import { - O3rCliError + O3rCliError, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - createTestEnvironmentBlank + createTestEnvironmentBlank, } from './test-environments/create-test-environment-blank'; import { - createTestEnvironmentOtterProjectWithAppAndLib + createTestEnvironmentOtterProjectWithAppAndLib, } from './test-environments/create-test-environment-otter-project'; import { createWithLock, @@ -28,7 +28,7 @@ import { type Logger, packageManagerInstallWithFrozenLock, setPackagerManagerConfig, - setupGit + setupGit, } from './utilities/index'; /** diff --git a/packages/@o3r/test-helpers/src/test-environments/create-test-environment-blank.ts b/packages/@o3r/test-helpers/src/test-environments/create-test-environment-blank.ts index 371b580ddd..8edda92399 100644 --- a/packages/@o3r/test-helpers/src/test-environments/create-test-environment-blank.ts +++ b/packages/@o3r/test-helpers/src/test-environments/create-test-environment-blank.ts @@ -1,9 +1,9 @@ import { - ExecSyncOptions + ExecSyncOptions, } from 'node:child_process'; import { existsSync, - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { @@ -11,7 +11,7 @@ import { type CreateWithLockOptions, type Logger, PackageManagerConfig, - setPackagerManagerConfig + setPackagerManagerConfig, } from '../utilities'; export interface CreateTestEnvironmentBlankOptions extends CreateWithLockOptions, PackageManagerConfig { diff --git a/packages/@o3r/test-helpers/src/test-environments/create-test-environment-otter-project.ts b/packages/@o3r/test-helpers/src/test-environments/create-test-environment-otter-project.ts index a58a723b86..75199a439c 100644 --- a/packages/@o3r/test-helpers/src/test-environments/create-test-environment-otter-project.ts +++ b/packages/@o3r/test-helpers/src/test-environments/create-test-environment-otter-project.ts @@ -1,12 +1,12 @@ import { - ExecSyncOptions + ExecSyncOptions, } from 'node:child_process'; import { existsSync, mkdirSync, readFileSync, rmSync, - writeFileSync + writeFileSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -18,7 +18,7 @@ import { packageManagerCreate, packageManagerExec, packageManagerInstall, - setPackagerManagerConfig + setPackagerManagerConfig, } from '../utilities'; export interface CreateTestEnvironmentOtterProjectWithAppAndLibOptions extends CreateWithLockOptions, PackageManagerConfig { diff --git a/packages/@o3r/test-helpers/src/utilities/add-package.ts b/packages/@o3r/test-helpers/src/utilities/add-package.ts index 42f48aedbf..ff8a198695 100644 --- a/packages/@o3r/test-helpers/src/utilities/add-package.ts +++ b/packages/@o3r/test-helpers/src/utilities/add-package.ts @@ -1,6 +1,6 @@ import { readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; /** diff --git a/packages/@o3r/test-helpers/src/utilities/angular.ts b/packages/@o3r/test-helpers/src/utilities/angular.ts index 48c74cc3de..90bad71e25 100644 --- a/packages/@o3r/test-helpers/src/utilities/angular.ts +++ b/packages/@o3r/test-helpers/src/utilities/angular.ts @@ -1,9 +1,9 @@ import { - existsSync + existsSync, } from 'node:fs'; import { readFile, - writeFile + writeFile, } from 'node:fs/promises'; import * as path from 'node:path'; diff --git a/packages/@o3r/test-helpers/src/utilities/create-with-lock.ts b/packages/@o3r/test-helpers/src/utilities/create-with-lock.ts index 13a0fe9ee3..4411faaaef 100644 --- a/packages/@o3r/test-helpers/src/utilities/create-with-lock.ts +++ b/packages/@o3r/test-helpers/src/utilities/create-with-lock.ts @@ -1,17 +1,17 @@ import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { - satisfies + satisfies, } from 'semver'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { Locker, - LockerOptions + LockerOptions, } from './locker'; export interface CreateWithLockOptions extends Partial { diff --git a/packages/@o3r/test-helpers/src/utilities/exec.ts b/packages/@o3r/test-helpers/src/utilities/exec.ts index 63381c850e..35e879fbff 100644 --- a/packages/@o3r/test-helpers/src/utilities/exec.ts +++ b/packages/@o3r/test-helpers/src/utilities/exec.ts @@ -1,5 +1,5 @@ import { - ExecSyncOptions + ExecSyncOptions, } from 'node:child_process'; /** diff --git a/packages/@o3r/test-helpers/src/utilities/git.ts b/packages/@o3r/test-helpers/src/utilities/git.ts index 4f7988982e..1a72009e45 100644 --- a/packages/@o3r/test-helpers/src/utilities/git.ts +++ b/packages/@o3r/test-helpers/src/utilities/git.ts @@ -1,7 +1,7 @@ import { execFileSync, ExecFileSyncOptionsWithStringEncoding, - execSync + execSync, } from 'node:child_process'; /** diff --git a/packages/@o3r/test-helpers/src/utilities/locker.ts b/packages/@o3r/test-helpers/src/utilities/locker.ts index e7480a3e14..b8805dbea6 100644 --- a/packages/@o3r/test-helpers/src/utilities/locker.ts +++ b/packages/@o3r/test-helpers/src/utilities/locker.ts @@ -4,7 +4,7 @@ import { rmSync, statSync, watch, - writeFileSync + writeFileSync, } from 'node:fs'; import * as path from 'node:path'; diff --git a/packages/@o3r/test-helpers/src/utilities/package-manager.ts b/packages/@o3r/test-helpers/src/utilities/package-manager.ts index 768cf5fded..1c841a699f 100644 --- a/packages/@o3r/test-helpers/src/utilities/package-manager.ts +++ b/packages/@o3r/test-helpers/src/utilities/package-manager.ts @@ -1,19 +1,19 @@ import { execFileSync, - ExecSyncOptions + ExecSyncOptions, } from 'node:child_process'; import { existsSync, - rmSync + rmSync, } from 'node:fs'; import { - join + join, } from 'node:path'; import { - performance + performance, } from 'node:perf_hooks'; import { - type SupportedPackageManagers + type SupportedPackageManagers, } from '@o3r/schematics'; declare global { diff --git a/packages/@o3r/test-helpers/src/utilities/verdaccio.ts b/packages/@o3r/test-helpers/src/utilities/verdaccio.ts index 1e98f93a23..83abc0ca47 100644 --- a/packages/@o3r/test-helpers/src/utilities/verdaccio.ts +++ b/packages/@o3r/test-helpers/src/utilities/verdaccio.ts @@ -1,18 +1,18 @@ import { execFileSync, execSync, - type ExecSyncOptions + type ExecSyncOptions, } from 'node:child_process'; import { existsSync, - promises + promises, } from 'node:fs'; import { - join + join, } from 'node:path'; import pidFromPort from 'pid-from-port'; import { - packageManagerPublish + packageManagerPublish, } from './package-manager'; /** diff --git a/packages/@o3r/test-helpers/src/utilities/virtual-fs.ts b/packages/@o3r/test-helpers/src/utilities/virtual-fs.ts index d5328545ff..44b7e11ff6 100644 --- a/packages/@o3r/test-helpers/src/utilities/virtual-fs.ts +++ b/packages/@o3r/test-helpers/src/utilities/virtual-fs.ts @@ -1,12 +1,12 @@ import * as actualFileSystem from 'node:fs'; import { - Volume + Volume, } from 'memfs'; import type { - Volume as VolumeInterface + Volume as VolumeInterface, } from 'memfs/lib/volume'; import { - Union + Union, } from 'unionfs'; /** diff --git a/packages/@o3r/testing/eslint.local.config.mjs b/packages/@o3r/testing/eslint.local.config.mjs index 4d607eebef..a28100dd4e 100644 --- a/packages/@o3r/testing/eslint.local.config.mjs +++ b/packages/@o3r/testing/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/testing/schematics/add-functions-to-fixture/helpers.ts b/packages/@o3r/testing/schematics/add-functions-to-fixture/helpers.ts index 6b32ec769e..6f89937442 100644 --- a/packages/@o3r/testing/schematics/add-functions-to-fixture/helpers.ts +++ b/packages/@o3r/testing/schematics/add-functions-to-fixture/helpers.ts @@ -1,6 +1,6 @@ import { MethodType, - returnType + returnType, } from './models'; const getMethodName = (selector: string, method: MethodType) => { diff --git a/packages/@o3r/testing/schematics/add-functions-to-fixture/index.spec.ts b/packages/@o3r/testing/schematics/add-functions-to-fixture/index.spec.ts index 097db283e7..fe08b408c5 100644 --- a/packages/@o3r/testing/schematics/add-functions-to-fixture/index.spec.ts +++ b/packages/@o3r/testing/schematics/add-functions-to-fixture/index.spec.ts @@ -1,10 +1,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/testing/schematics/add-functions-to-fixture/index.ts b/packages/@o3r/testing/schematics/add-functions-to-fixture/index.ts index a00a60bfe4..19a1b18e8d 100644 --- a/packages/@o3r/testing/schematics/add-functions-to-fixture/index.ts +++ b/packages/@o3r/testing/schematics/add-functions-to-fixture/index.ts @@ -2,23 +2,23 @@ import { chain, noop, Rule, - Tree + Tree, } from '@angular-devkit/schematics'; import { applyEsLintFix, createSchematicWithMetricsIfInstalled, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import * as ts from 'typescript'; import { getImplementation, - getSignature + getSignature, } from './helpers'; import { - description + description, } from './models'; import { - NgAddFunctionsToFixtureSchematicsSchema + NgAddFunctionsToFixtureSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/testing/schematics/add-functions-to-fixture/schema.ts b/packages/@o3r/testing/schematics/add-functions-to-fixture/schema.ts index fe6b4ec11a..95707029a1 100644 --- a/packages/@o3r/testing/schematics/add-functions-to-fixture/schema.ts +++ b/packages/@o3r/testing/schematics/add-functions-to-fixture/schema.ts @@ -1,8 +1,8 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; import { - MethodType + MethodType, } from './models'; export interface NgAddFunctionsToFixtureSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/testing/schematics/fixture-to-component/index.spec.ts b/packages/@o3r/testing/schematics/fixture-to-component/index.spec.ts index a851ba1a28..88686f1273 100644 --- a/packages/@o3r/testing/schematics/fixture-to-component/index.spec.ts +++ b/packages/@o3r/testing/schematics/fixture-to-component/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddFixtureFn + ngAddFixtureFn, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/testing/schematics/fixture-to-component/index.ts b/packages/@o3r/testing/schematics/fixture-to-component/index.ts index e92a3479fa..0f4c354c99 100644 --- a/packages/@o3r/testing/schematics/fixture-to-component/index.ts +++ b/packages/@o3r/testing/schematics/fixture-to-component/index.ts @@ -1,7 +1,7 @@ import { basename, dirname, - posix + posix, } from 'node:path'; import { apply, @@ -16,7 +16,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addImportsRule, @@ -25,15 +25,15 @@ import { createSchematicWithMetricsIfInstalled, getO3rComponentInfoOrThrowIfNotFound, NoOtterComponent, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { applyToUpdateRecorder, - InsertChange + InsertChange, } from '@schematics/angular/utility/change'; import * as ts from 'typescript'; import type { - NgAddFixtureSchematicsSchema + NgAddFixtureSchematicsSchema, } from './schema'; const checkFixture = (componentPath: string, tree: Tree, baseFileName: string) => { diff --git a/packages/@o3r/testing/schematics/fixture-to-component/schema.ts b/packages/@o3r/testing/schematics/fixture-to-component/schema.ts index ff6b499d2d..af242988b2 100644 --- a/packages/@o3r/testing/schematics/fixture-to-component/schema.ts +++ b/packages/@o3r/testing/schematics/fixture-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddFixtureSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/testing/schematics/index.it.spec.ts b/packages/@o3r/testing/schematics/index.it.spec.ts index 356abdc002..2d9d0a0bca 100644 --- a/packages/@o3r/testing/schematics/index.it.spec.ts +++ b/packages/@o3r/testing/schematics/index.it.spec.ts @@ -13,7 +13,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('ng add testing', () => { diff --git a/packages/@o3r/testing/schematics/ng-add/fixture/index.ts b/packages/@o3r/testing/schematics/ng-add/fixture/index.ts index 16f48041b4..f7ae53dd8f 100644 --- a/packages/@o3r/testing/schematics/ng-add/fixture/index.ts +++ b/packages/@o3r/testing/schematics/ng-add/fixture/index.ts @@ -2,10 +2,10 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import type { - TsConfigJson + TsConfigJson, } from 'type-fest'; import * as ts from 'typescript'; diff --git a/packages/@o3r/testing/schematics/ng-add/index.ts b/packages/@o3r/testing/schematics/ng-add/index.ts index 668cd630e5..00c50d8939 100644 --- a/packages/@o3r/testing/schematics/ng-add/index.ts +++ b/packages/@o3r/testing/schematics/ng-add/index.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - askConfirmation + askConfirmation, } from '@angular/cli/src/utilities/prompt'; import { apply, @@ -15,7 +15,7 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { addVsCodeRecommendations, @@ -30,22 +30,22 @@ import { registerPackageCollectionSchematics, removePackages, setupDependencies, - setupSchematicsParamsForProject + setupSchematicsParamsForProject, } from '@o3r/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from '../../schematics/ng-add/schema'; import { - updateFixtureConfig + updateFixtureConfig, } from './fixture'; import { - updatePlaywright + updatePlaywright, } from './playwright'; const devDependenciesToInstall = [ diff --git a/packages/@o3r/testing/schematics/ng-add/playwright/index.ts b/packages/@o3r/testing/schematics/ng-add/playwright/index.ts index 17d973ff25..df1dcab50c 100644 --- a/packages/@o3r/testing/schematics/ng-add/playwright/index.ts +++ b/packages/@o3r/testing/schematics/ng-add/playwright/index.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -13,18 +13,18 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { type DependencyToAdd, getWorkspaceConfig, - NgAddPackageOptions + NgAddPackageOptions, } from '@o3r/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; /** diff --git a/packages/@o3r/testing/schematics/ng-add/schema.ts b/packages/@o3r/testing/schematics/ng-add/schema.ts index ffbcb18f15..f96658f198 100644 --- a/packages/@o3r/testing/schematics/ng-add/schema.ts +++ b/packages/@o3r/testing/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/testing/schematics/ng-update/v9-0/index.ts b/packages/@o3r/testing/schematics/ng-update/v9-0/index.ts index d83d6e5c86..74b16c2f6b 100644 --- a/packages/@o3r/testing/schematics/ng-update/v9-0/index.ts +++ b/packages/@o3r/testing/schematics/ng-update/v9-0/index.ts @@ -1,15 +1,15 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { - updateLocalizationImports + updateLocalizationImports, } from './localization-imports/localization-imports'; import { - updateThrowOnUndefinedCalls + updateThrowOnUndefinedCalls, } from './throw-on-undefined/throw-on-undefined'; /** diff --git a/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports-map.ts b/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports-map.ts index 3e9b52b43a..333a7b1a76 100644 --- a/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports-map.ts +++ b/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports-map.ts @@ -1,5 +1,5 @@ import type { - ImportsMapping + ImportsMapping, } from '@o3r/schematics'; /** Map to be used to double check that localization mocks from o3r testing package are well imported from the /localization subentry */ diff --git a/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.spec.ts b/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.spec.ts index c59416b5cf..531322403d 100644 --- a/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.spec.ts +++ b/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - updateLocalizationImports + updateLocalizationImports, } from './localization-imports'; const collectionPath = path.join(__dirname, '..', '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.ts b/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.ts index 91fefeda17..68d3f4f9b8 100644 --- a/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.ts +++ b/packages/@o3r/testing/schematics/ng-update/v9-0/localization-imports/localization-imports.ts @@ -1,13 +1,13 @@ import { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - updateImports + updateImports, } from '@o3r/schematics'; import { - mapImportLocalizationMocks + mapImportLocalizationMocks, } from './localization-imports-map'; /** diff --git a/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.spec.ts b/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.spec.ts index c31c09df78..11e42d5ebe 100644 --- a/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.spec.ts +++ b/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - lastValueFrom + lastValueFrom, } from 'rxjs'; import { - updateThrowOnUndefinedCalls + updateThrowOnUndefinedCalls, } from './throw-on-undefined'; const collectionPath = path.join(__dirname, '..', '..', '..', '..', 'migration.json'); diff --git a/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.ts b/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.ts index b654227e8e..6828fc886b 100644 --- a/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.ts +++ b/packages/@o3r/testing/schematics/ng-update/v9-0/throw-on-undefined/throw-on-undefined.ts @@ -1,9 +1,9 @@ import { chain, - Rule + Rule, } from '@angular-devkit/schematics'; import { - getFilesInFolderFromWorkspaceProjectsInTree + getFilesInFolderFromWorkspaceProjectsInTree, } from '@o3r/schematics'; const update: Rule = (tree) => { diff --git a/packages/@o3r/testing/schematics/playwright/sanity/index.spec.ts b/packages/@o3r/testing/schematics/playwright/sanity/index.spec.ts index 34acdd3de5..774c87d7a3 100644 --- a/packages/@o3r/testing/schematics/playwright/sanity/index.spec.ts +++ b/packages/@o3r/testing/schematics/playwright/sanity/index.spec.ts @@ -1,14 +1,14 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; import { - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/testing/schematics/playwright/sanity/index.ts b/packages/@o3r/testing/schematics/playwright/sanity/index.ts index 53c933f9b9..83244f18a8 100644 --- a/packages/@o3r/testing/schematics/playwright/sanity/index.ts +++ b/packages/@o3r/testing/schematics/playwright/sanity/index.ts @@ -1,5 +1,5 @@ import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -11,16 +11,16 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, getDestinationPath, getWorkspaceConfig, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { - NgGeneratePlaywrightSanitySchematicsSchema + NgGeneratePlaywrightSanitySchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/testing/schematics/playwright/sanity/schema.ts b/packages/@o3r/testing/schematics/playwright/sanity/schema.ts index a42eb80c43..1ca356cbdb 100644 --- a/packages/@o3r/testing/schematics/playwright/sanity/schema.ts +++ b/packages/@o3r/testing/schematics/playwright/sanity/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGeneratePlaywrightSanitySchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/testing/schematics/playwright/scenario/index.spec.ts b/packages/@o3r/testing/schematics/playwright/scenario/index.spec.ts index 2da332382a..fe5549870f 100644 --- a/packages/@o3r/testing/schematics/playwright/scenario/index.spec.ts +++ b/packages/@o3r/testing/schematics/playwright/scenario/index.spec.ts @@ -1,14 +1,14 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; import { - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; const collectionPath = path.join(__dirname, '..', '..', '..', 'collection.json'); diff --git a/packages/@o3r/testing/schematics/playwright/scenario/index.ts b/packages/@o3r/testing/schematics/playwright/scenario/index.ts index 76dbc51f46..a816848061 100644 --- a/packages/@o3r/testing/schematics/playwright/scenario/index.ts +++ b/packages/@o3r/testing/schematics/playwright/scenario/index.ts @@ -1,5 +1,5 @@ import { - strings + strings, } from '@angular-devkit/core'; import { apply, @@ -11,16 +11,16 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, getDestinationPath, getWorkspaceConfig, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { - NgGeneratePlaywrightScenarioSchematicsSchema + NgGeneratePlaywrightScenarioSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/testing/schematics/playwright/scenario/schema.ts b/packages/@o3r/testing/schematics/playwright/scenario/schema.ts index 9e31adf008..eee061bff4 100644 --- a/packages/@o3r/testing/schematics/playwright/scenario/schema.ts +++ b/packages/@o3r/testing/schematics/playwright/scenario/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGeneratePlaywrightScenarioSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/testing/src/core/angular-materials/autocomplete-material.ts b/packages/@o3r/testing/src/core/angular-materials/autocomplete-material.ts index 150f00b522..8060efbf21 100644 --- a/packages/@o3r/testing/src/core/angular-materials/autocomplete-material.ts +++ b/packages/@o3r/testing/src/core/angular-materials/autocomplete-material.ts @@ -1,9 +1,9 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { ElementProfile, - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/angular-materials/select-material.ts b/packages/@o3r/testing/src/core/angular-materials/select-material.ts index 9c82845b0a..df0db913e5 100644 --- a/packages/@o3r/testing/src/core/angular-materials/select-material.ts +++ b/packages/@o3r/testing/src/core/angular-materials/select-material.ts @@ -1,11 +1,11 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { - O3rElement + O3rElement, } from '../element'; import { - SelectElementProfile + SelectElementProfile, } from '../elements'; /** diff --git a/packages/@o3r/testing/src/core/angular-materials/slider-material.ts b/packages/@o3r/testing/src/core/angular-materials/slider-material.ts index 33d9f6d116..4082874d61 100644 --- a/packages/@o3r/testing/src/core/angular-materials/slider-material.ts +++ b/packages/@o3r/testing/src/core/angular-materials/slider-material.ts @@ -1,8 +1,8 @@ import { - O3rElement + O3rElement, } from '../element'; import type { - SliderElementProfile + SliderElementProfile, } from '../elements'; /** diff --git a/packages/@o3r/testing/src/core/angular/angular-materials/autocomplete-material.ts b/packages/@o3r/testing/src/core/angular/angular-materials/autocomplete-material.ts index d1b1f9f798..84b05351b2 100644 --- a/packages/@o3r/testing/src/core/angular/angular-materials/autocomplete-material.ts +++ b/packages/@o3r/testing/src/core/angular/angular-materials/autocomplete-material.ts @@ -1,11 +1,11 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - MatAutocompleteProfile + MatAutocompleteProfile, } from '../../angular-materials'; import { - O3rElement + O3rElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/angular/angular-materials/select-material.ts b/packages/@o3r/testing/src/core/angular/angular-materials/select-material.ts index 181fd19792..372fea622e 100644 --- a/packages/@o3r/testing/src/core/angular/angular-materials/select-material.ts +++ b/packages/@o3r/testing/src/core/angular/angular-materials/select-material.ts @@ -1,14 +1,14 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - By + By, } from '@angular/platform-browser'; import { - MatSelectProfile + MatSelectProfile, } from '../../angular-materials'; import { - O3rElement + O3rElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/angular/angular-materials/slider-material.ts b/packages/@o3r/testing/src/core/angular/angular-materials/slider-material.ts index 995a67b14b..525c090456 100644 --- a/packages/@o3r/testing/src/core/angular/angular-materials/slider-material.ts +++ b/packages/@o3r/testing/src/core/angular/angular-materials/slider-material.ts @@ -1,17 +1,17 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import type { - cssClasses + cssClasses, } from '@material/slider'; import type { - MatSliderProfile + MatSliderProfile, } from '../../angular-materials'; import { - O3rElement + O3rElement, } from '../element'; import { - O3rSliderElement + O3rSliderElement, } from '../elements'; const TRACK_CLASS: typeof cssClasses.TRACK = 'mdc-slider__track'; diff --git a/packages/@o3r/testing/src/core/angular/component-fixture.ts b/packages/@o3r/testing/src/core/angular/component-fixture.ts index 6725cd68e4..5c85a770dd 100644 --- a/packages/@o3r/testing/src/core/angular/component-fixture.ts +++ b/packages/@o3r/testing/src/core/angular/component-fixture.ts @@ -1,22 +1,22 @@ import { - By + By, } from '@angular/platform-browser'; import { - FixtureUsageError + FixtureUsageError, } from '../../errors/index'; import type { - ComponentFixtureProfile + ComponentFixtureProfile, } from '../component-fixture'; import { - withTimeout + withTimeout, } from '../helpers'; import { O3rElement, - O3rElementConstructor + O3rElementConstructor, } from './element'; import { O3rGroup, - O3rGroupConstructor + O3rGroupConstructor, } from './group'; export type { ComponentFixtureProfile, Constructable, FixtureWithCustom } from '../component-fixture'; diff --git a/packages/@o3r/testing/src/core/angular/element.ts b/packages/@o3r/testing/src/core/angular/element.ts index 4eb55d64d8..289496d62b 100644 --- a/packages/@o3r/testing/src/core/angular/element.ts +++ b/packages/@o3r/testing/src/core/angular/element.ts @@ -1,8 +1,8 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - ElementProfile + ElementProfile, } from '../element'; export { ElementProfile } from '../element'; diff --git a/packages/@o3r/testing/src/core/angular/elements/checkbox-element.ts b/packages/@o3r/testing/src/core/angular/elements/checkbox-element.ts index 42cbe0c06a..6c589d242b 100644 --- a/packages/@o3r/testing/src/core/angular/elements/checkbox-element.ts +++ b/packages/@o3r/testing/src/core/angular/elements/checkbox-element.ts @@ -1,11 +1,11 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - CheckboxElementProfile + CheckboxElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/angular/elements/radio-element.ts b/packages/@o3r/testing/src/core/angular/elements/radio-element.ts index 4bde8c22f4..417cd3f8c2 100644 --- a/packages/@o3r/testing/src/core/angular/elements/radio-element.ts +++ b/packages/@o3r/testing/src/core/angular/elements/radio-element.ts @@ -1,11 +1,11 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - RadioElementProfile + RadioElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/angular/elements/select-element.ts b/packages/@o3r/testing/src/core/angular/elements/select-element.ts index 3d95014726..6a3d402a1c 100644 --- a/packages/@o3r/testing/src/core/angular/elements/select-element.ts +++ b/packages/@o3r/testing/src/core/angular/elements/select-element.ts @@ -1,14 +1,14 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - By + By, } from '@angular/platform-browser'; import { - SelectElementProfile + SelectElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/angular/elements/slider-element.ts b/packages/@o3r/testing/src/core/angular/elements/slider-element.ts index ee00fb51a7..d8a7b8d4d7 100644 --- a/packages/@o3r/testing/src/core/angular/elements/slider-element.ts +++ b/packages/@o3r/testing/src/core/angular/elements/slider-element.ts @@ -1,14 +1,14 @@ import { - DebugElement + DebugElement, } from '@angular/core'; import { - By + By, } from '@angular/platform-browser'; import type { - SliderElementProfile + SliderElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/angular/group.ts b/packages/@o3r/testing/src/core/angular/group.ts index 44e3a21ab6..4170f1641a 100644 --- a/packages/@o3r/testing/src/core/angular/group.ts +++ b/packages/@o3r/testing/src/core/angular/group.ts @@ -1,9 +1,9 @@ import { - GroupProfile + GroupProfile, } from '../group'; import { ElementProfile, - O3rElement + O3rElement, } from './element'; export { GroupProfile } from '../group'; diff --git a/packages/@o3r/testing/src/core/angular/groups/radio-group.ts b/packages/@o3r/testing/src/core/angular/groups/radio-group.ts index 6d00d7daf2..d412dd5459 100644 --- a/packages/@o3r/testing/src/core/angular/groups/radio-group.ts +++ b/packages/@o3r/testing/src/core/angular/groups/radio-group.ts @@ -1,11 +1,11 @@ import { - RadioGroupProfile + RadioGroupProfile, } from '../../groups/radio-group'; import { - O3rRadioElement + O3rRadioElement, } from '../elements/radio-element'; import { - O3rGroup + O3rGroup, } from '../group'; /** diff --git a/packages/@o3r/testing/src/core/angular/page-fixture.ts b/packages/@o3r/testing/src/core/angular/page-fixture.ts index d5f1ae49c4..27c214ec34 100644 --- a/packages/@o3r/testing/src/core/angular/page-fixture.ts +++ b/packages/@o3r/testing/src/core/angular/page-fixture.ts @@ -1,14 +1,14 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { - PageFixtureProfile + PageFixtureProfile, } from '../page-fixture'; import { - O3rComponentFixture + O3rComponentFixture, } from './component-fixture'; import { - O3rElement + O3rElement, } from './element'; export { PageFixtureProfile } from '../page-fixture'; diff --git a/packages/@o3r/testing/src/core/component-fixture.ts b/packages/@o3r/testing/src/core/component-fixture.ts index 41bcb0944a..59e4fc25d2 100644 --- a/packages/@o3r/testing/src/core/component-fixture.ts +++ b/packages/@o3r/testing/src/core/component-fixture.ts @@ -1,14 +1,14 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../errors/index'; import { ElementProfile, O3rElement, - O3rElementConstructor + O3rElementConstructor, } from './element'; import { GroupProfile, - O3rGroupConstructor + O3rGroupConstructor, } from './group'; /** diff --git a/packages/@o3r/testing/src/core/element.ts b/packages/@o3r/testing/src/core/element.ts index 3e99037b50..09aa9d146d 100644 --- a/packages/@o3r/testing/src/core/element.ts +++ b/packages/@o3r/testing/src/core/element.ts @@ -1,5 +1,5 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../errors/index'; /** diff --git a/packages/@o3r/testing/src/core/elements/checkbox-element.ts b/packages/@o3r/testing/src/core/elements/checkbox-element.ts index 0ebc9b7b46..9df64f9ee7 100644 --- a/packages/@o3r/testing/src/core/elements/checkbox-element.ts +++ b/packages/@o3r/testing/src/core/elements/checkbox-element.ts @@ -1,9 +1,9 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { ElementProfile, - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/elements/radio-element.ts b/packages/@o3r/testing/src/core/elements/radio-element.ts index 1bdd6dadc4..dcb3cb09a7 100644 --- a/packages/@o3r/testing/src/core/elements/radio-element.ts +++ b/packages/@o3r/testing/src/core/elements/radio-element.ts @@ -1,9 +1,9 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { ElementProfile, - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/elements/select-element.ts b/packages/@o3r/testing/src/core/elements/select-element.ts index 9c1e98dc23..23208d80eb 100644 --- a/packages/@o3r/testing/src/core/elements/select-element.ts +++ b/packages/@o3r/testing/src/core/elements/select-element.ts @@ -1,9 +1,9 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { ElementProfile, - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/elements/slider-element.ts b/packages/@o3r/testing/src/core/elements/slider-element.ts index 76fa224937..f32b59b5a3 100644 --- a/packages/@o3r/testing/src/core/elements/slider-element.ts +++ b/packages/@o3r/testing/src/core/elements/slider-element.ts @@ -1,6 +1,6 @@ import { ElementProfile, - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/group.ts b/packages/@o3r/testing/src/core/group.ts index f2589b3d37..a1b1272fcc 100644 --- a/packages/@o3r/testing/src/core/group.ts +++ b/packages/@o3r/testing/src/core/group.ts @@ -1,9 +1,9 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../errors/index'; import { ElementProfile, - O3rElement + O3rElement, } from './element'; /** diff --git a/packages/@o3r/testing/src/core/groups/radio-group.ts b/packages/@o3r/testing/src/core/groups/radio-group.ts index 0e07c806f2..285ba870a9 100644 --- a/packages/@o3r/testing/src/core/groups/radio-group.ts +++ b/packages/@o3r/testing/src/core/groups/radio-group.ts @@ -1,13 +1,13 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../../errors/index'; import { O3rRadioElement, - RadioElementProfile + RadioElementProfile, } from '../elements/radio-element'; import { GroupProfile, - O3rGroup + O3rGroup, } from '../group'; /** diff --git a/packages/@o3r/testing/src/core/page-fixture.ts b/packages/@o3r/testing/src/core/page-fixture.ts index 258b54e798..e306a9b906 100644 --- a/packages/@o3r/testing/src/core/page-fixture.ts +++ b/packages/@o3r/testing/src/core/page-fixture.ts @@ -1,13 +1,13 @@ import { - TranspilationPurposeOnlyError + TranspilationPurposeOnlyError, } from '../errors/index'; import { ComponentFixtureProfile, - O3rComponentFixture + O3rComponentFixture, } from './component-fixture'; import { ElementProfile, - O3rElement + O3rElement, } from './element'; /** diff --git a/packages/@o3r/testing/src/core/playwright/angular-materials/autocomplete-material.ts b/packages/@o3r/testing/src/core/playwright/angular-materials/autocomplete-material.ts index 84a93854f9..6fa97be6aa 100644 --- a/packages/@o3r/testing/src/core/playwright/angular-materials/autocomplete-material.ts +++ b/packages/@o3r/testing/src/core/playwright/angular-materials/autocomplete-material.ts @@ -1,10 +1,10 @@ import { - MatAutocompleteProfile + MatAutocompleteProfile, } from '../../angular-materials'; import { getPlainText, O3rElement, - PlaywrightSourceElement + PlaywrightSourceElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/playwright/angular-materials/select-material.ts b/packages/@o3r/testing/src/core/playwright/angular-materials/select-material.ts index 0561887bad..7678af53a8 100644 --- a/packages/@o3r/testing/src/core/playwright/angular-materials/select-material.ts +++ b/packages/@o3r/testing/src/core/playwright/angular-materials/select-material.ts @@ -1,9 +1,9 @@ import { - MatSelectProfile + MatSelectProfile, } from '../../angular-materials'; import { O3rElement, - PlaywrightSourceElement + PlaywrightSourceElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/playwright/angular-materials/slider-material.ts b/packages/@o3r/testing/src/core/playwright/angular-materials/slider-material.ts index 97e04f2e14..f74a394729 100644 --- a/packages/@o3r/testing/src/core/playwright/angular-materials/slider-material.ts +++ b/packages/@o3r/testing/src/core/playwright/angular-materials/slider-material.ts @@ -1,15 +1,15 @@ import type { - cssClasses + cssClasses, } from '@material/slider'; import type { - MatSliderProfile + MatSliderProfile, } from '../../angular-materials'; import { O3rElement, - type PlaywrightSourceElement + type PlaywrightSourceElement, } from '../element'; import { - O3rSliderElement + O3rSliderElement, } from '../elements'; const TRACK_CLASS: typeof cssClasses.TRACK = 'mdc-slider__track'; diff --git a/packages/@o3r/testing/src/core/playwright/component-fixture.ts b/packages/@o3r/testing/src/core/playwright/component-fixture.ts index 6aef0ec627..e9be15ffc6 100644 --- a/packages/@o3r/testing/src/core/playwright/component-fixture.ts +++ b/packages/@o3r/testing/src/core/playwright/component-fixture.ts @@ -1,20 +1,20 @@ import { - FixtureUsageError + FixtureUsageError, } from '../../errors/index'; import type { - ComponentFixtureProfile + ComponentFixtureProfile, } from '../component-fixture'; import { - withTimeout + withTimeout, } from '../helpers'; import { O3rElement, O3rElementConstructor, - PlaywrightSourceElement + PlaywrightSourceElement, } from './element'; import { O3rGroup, - O3rGroupConstructor + O3rGroupConstructor, } from './group'; export type { ComponentFixtureProfile, Constructable, FixtureWithCustom } from '../component-fixture'; diff --git a/packages/@o3r/testing/src/core/playwright/element.ts b/packages/@o3r/testing/src/core/playwright/element.ts index d91d5f2ce6..dc49fa0b9d 100644 --- a/packages/@o3r/testing/src/core/playwright/element.ts +++ b/packages/@o3r/testing/src/core/playwright/element.ts @@ -1,9 +1,9 @@ import type { Locator, - Page + Page, } from '@playwright/test'; import { - ElementProfile + ElementProfile, } from '../element'; export { ElementProfile } from '../element'; diff --git a/packages/@o3r/testing/src/core/playwright/elements/checkbox-element.ts b/packages/@o3r/testing/src/core/playwright/elements/checkbox-element.ts index f0e971e950..4339d7f2a7 100644 --- a/packages/@o3r/testing/src/core/playwright/elements/checkbox-element.ts +++ b/packages/@o3r/testing/src/core/playwright/elements/checkbox-element.ts @@ -1,9 +1,9 @@ import { - CheckboxElementProfile + CheckboxElementProfile, } from '../../elements'; import { O3rElement, - PlaywrightSourceElement + PlaywrightSourceElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/playwright/elements/radio-element.ts b/packages/@o3r/testing/src/core/playwright/elements/radio-element.ts index 0376de63ba..23354fc2a9 100644 --- a/packages/@o3r/testing/src/core/playwright/elements/radio-element.ts +++ b/packages/@o3r/testing/src/core/playwright/elements/radio-element.ts @@ -1,9 +1,9 @@ import { - RadioElementProfile + RadioElementProfile, } from '../../elements'; import { O3rElement, - PlaywrightSourceElement + PlaywrightSourceElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/playwright/elements/select-element.ts b/packages/@o3r/testing/src/core/playwright/elements/select-element.ts index 5efd408e31..afdb1de9c3 100644 --- a/packages/@o3r/testing/src/core/playwright/elements/select-element.ts +++ b/packages/@o3r/testing/src/core/playwright/elements/select-element.ts @@ -1,6 +1,6 @@ import { O3rElement, - PlaywrightSourceElement + PlaywrightSourceElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/playwright/elements/slider-element.ts b/packages/@o3r/testing/src/core/playwright/elements/slider-element.ts index 75f24bf6b4..56032e2031 100644 --- a/packages/@o3r/testing/src/core/playwright/elements/slider-element.ts +++ b/packages/@o3r/testing/src/core/playwright/elements/slider-element.ts @@ -1,9 +1,9 @@ import type { - SliderElementProfile + SliderElementProfile, } from '../../elements'; import { O3rElement, - type PlaywrightSourceElement + type PlaywrightSourceElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/playwright/group.ts b/packages/@o3r/testing/src/core/playwright/group.ts index 2e93227310..bad4bce8a5 100644 --- a/packages/@o3r/testing/src/core/playwright/group.ts +++ b/packages/@o3r/testing/src/core/playwright/group.ts @@ -1,9 +1,9 @@ import { - GroupProfile + GroupProfile, } from '../group'; import { ElementProfile, - O3rElement + O3rElement, } from './element'; export { GroupProfile } from '../group'; diff --git a/packages/@o3r/testing/src/core/playwright/groups/radio-group.ts b/packages/@o3r/testing/src/core/playwright/groups/radio-group.ts index 986dcf5e95..5fcc99fdbb 100644 --- a/packages/@o3r/testing/src/core/playwright/groups/radio-group.ts +++ b/packages/@o3r/testing/src/core/playwright/groups/radio-group.ts @@ -1,11 +1,11 @@ import { - RadioGroupProfile + RadioGroupProfile, } from '../../groups/radio-group'; import { - O3rRadioElement + O3rRadioElement, } from '../elements/radio-element'; import { - O3rGroup + O3rGroup, } from '../group'; /** diff --git a/packages/@o3r/testing/src/core/playwright/page-fixture.ts b/packages/@o3r/testing/src/core/playwright/page-fixture.ts index 5cd0a8359f..83631f5e04 100644 --- a/packages/@o3r/testing/src/core/playwright/page-fixture.ts +++ b/packages/@o3r/testing/src/core/playwright/page-fixture.ts @@ -1,11 +1,11 @@ import { - PageFixtureProfile + PageFixtureProfile, } from '../page-fixture'; import { - O3rComponentFixture + O3rComponentFixture, } from './component-fixture'; import { - O3rElement + O3rElement, } from './element'; export { PageFixtureProfile } from '../page-fixture'; diff --git a/packages/@o3r/testing/src/core/protractor/angular-materials/autocomplete-material.ts b/packages/@o3r/testing/src/core/protractor/angular-materials/autocomplete-material.ts index 05533200b5..c8f3a605fe 100644 --- a/packages/@o3r/testing/src/core/protractor/angular-materials/autocomplete-material.ts +++ b/packages/@o3r/testing/src/core/protractor/angular-materials/autocomplete-material.ts @@ -1,13 +1,13 @@ import { By, element, - ElementFinder + ElementFinder, } from 'protractor'; import { - MatAutocompleteProfile + MatAutocompleteProfile, } from '../../angular-materials'; import { - O3rElement + O3rElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/protractor/angular-materials/select-material.ts b/packages/@o3r/testing/src/core/protractor/angular-materials/select-material.ts index 21d5bd55e1..251fc4782c 100644 --- a/packages/@o3r/testing/src/core/protractor/angular-materials/select-material.ts +++ b/packages/@o3r/testing/src/core/protractor/angular-materials/select-material.ts @@ -1,13 +1,13 @@ import { By, element, - ElementFinder + ElementFinder, } from 'protractor'; import { - MatSelectProfile + MatSelectProfile, } from '../../angular-materials'; import { - O3rElement + O3rElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/protractor/component-fixture.ts b/packages/@o3r/testing/src/core/protractor/component-fixture.ts index 010948eecb..5432ebe666 100644 --- a/packages/@o3r/testing/src/core/protractor/component-fixture.ts +++ b/packages/@o3r/testing/src/core/protractor/component-fixture.ts @@ -2,27 +2,27 @@ import { browser, By, element, - ElementFinder + ElementFinder, } from 'protractor'; import { - FixtureUsageError + FixtureUsageError, } from '../../errors/index'; import type { - ComponentFixtureProfile + ComponentFixtureProfile, } from '../component-fixture'; import { - withTimeout + withTimeout, } from '../helpers'; import { O3rElement, - O3rElementConstructor + O3rElementConstructor, } from './element'; import { O3rGroup, - O3rGroupConstructor + O3rGroupConstructor, } from './group'; import { - convertPromise + convertPromise, } from './utils'; /** diff --git a/packages/@o3r/testing/src/core/protractor/element.ts b/packages/@o3r/testing/src/core/protractor/element.ts index 871923e132..2967961509 100644 --- a/packages/@o3r/testing/src/core/protractor/element.ts +++ b/packages/@o3r/testing/src/core/protractor/element.ts @@ -1,18 +1,18 @@ import { browser, - ElementFinder + ElementFinder, } from 'protractor'; import { - protractor as ptor + protractor as ptor, } from 'protractor/built/ptor'; import { - waitForOtterStable + waitForOtterStable, } from '../../tools/protractor'; import { - ElementProfile + ElementProfile, } from '../element'; import { - convertPromise + convertPromise, } from './utils'; export { ElementProfile } from '../element'; diff --git a/packages/@o3r/testing/src/core/protractor/elements/checkbox-element.ts b/packages/@o3r/testing/src/core/protractor/elements/checkbox-element.ts index 1eb7dcb424..f2493d5b73 100644 --- a/packages/@o3r/testing/src/core/protractor/elements/checkbox-element.ts +++ b/packages/@o3r/testing/src/core/protractor/elements/checkbox-element.ts @@ -1,11 +1,11 @@ import { - ElementFinder + ElementFinder, } from 'protractor'; import { - CheckboxElementProfile + CheckboxElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/protractor/elements/radio-element.ts b/packages/@o3r/testing/src/core/protractor/elements/radio-element.ts index 98423b93eb..083edcd8cf 100644 --- a/packages/@o3r/testing/src/core/protractor/elements/radio-element.ts +++ b/packages/@o3r/testing/src/core/protractor/elements/radio-element.ts @@ -1,11 +1,11 @@ import { - ElementFinder + ElementFinder, } from 'protractor'; import { - RadioElementProfile + RadioElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; /** diff --git a/packages/@o3r/testing/src/core/protractor/elements/select-element.ts b/packages/@o3r/testing/src/core/protractor/elements/select-element.ts index b17b216a97..dfb1c715d7 100644 --- a/packages/@o3r/testing/src/core/protractor/elements/select-element.ts +++ b/packages/@o3r/testing/src/core/protractor/elements/select-element.ts @@ -1,12 +1,12 @@ import { By, - ElementFinder + ElementFinder, } from 'protractor'; import { - SelectElementProfile + SelectElementProfile, } from '../../elements'; import { - O3rElement + O3rElement, } from '../element'; export { SelectElementProfile } from '../../elements'; diff --git a/packages/@o3r/testing/src/core/protractor/group.ts b/packages/@o3r/testing/src/core/protractor/group.ts index 635e5916d8..9793d233a2 100644 --- a/packages/@o3r/testing/src/core/protractor/group.ts +++ b/packages/@o3r/testing/src/core/protractor/group.ts @@ -1,9 +1,9 @@ import { - GroupProfile + GroupProfile, } from '../group'; import { ElementProfile, - O3rElement + O3rElement, } from './element'; export { GroupProfile } from '../group'; diff --git a/packages/@o3r/testing/src/core/protractor/groups/radio-group.ts b/packages/@o3r/testing/src/core/protractor/groups/radio-group.ts index f74b02012f..d74ed3bc8b 100644 --- a/packages/@o3r/testing/src/core/protractor/groups/radio-group.ts +++ b/packages/@o3r/testing/src/core/protractor/groups/radio-group.ts @@ -1,11 +1,11 @@ import { - RadioGroupProfile + RadioGroupProfile, } from '../../groups/radio-group'; import { - O3rRadioElement + O3rRadioElement, } from '../elements/radio-element'; import { - O3rGroup + O3rGroup, } from '../group'; /** diff --git a/packages/@o3r/testing/src/core/protractor/page-fixture.ts b/packages/@o3r/testing/src/core/protractor/page-fixture.ts index 86b8f0136e..9754d2f33a 100644 --- a/packages/@o3r/testing/src/core/protractor/page-fixture.ts +++ b/packages/@o3r/testing/src/core/protractor/page-fixture.ts @@ -1,17 +1,17 @@ import { - browser + browser, } from 'protractor'; import { - PageFixtureProfile + PageFixtureProfile, } from '../page-fixture'; import { - O3rComponentFixture + O3rComponentFixture, } from './component-fixture'; import { - O3rElement + O3rElement, } from './element'; import { - convertPromise + convertPromise, } from './utils'; export { PageFixtureProfile } from '../page-fixture'; diff --git a/packages/@o3r/testing/src/core/protractor/utils.ts b/packages/@o3r/testing/src/core/protractor/utils.ts index 032a2f6fef..e067e7dc6f 100644 --- a/packages/@o3r/testing/src/core/protractor/utils.ts +++ b/packages/@o3r/testing/src/core/protractor/utils.ts @@ -1,5 +1,5 @@ import { - promise as pPromise + promise as pPromise, } from 'protractor'; /** diff --git a/packages/@o3r/testing/src/kassette/update-dates-in-mocks.ts b/packages/@o3r/testing/src/kassette/update-dates-in-mocks.ts index 8224e1d6d0..72198cac2c 100644 --- a/packages/@o3r/testing/src/kassette/update-dates-in-mocks.ts +++ b/packages/@o3r/testing/src/kassette/update-dates-in-mocks.ts @@ -1,8 +1,8 @@ import type { - IMock + IMock, } from '@amadeus-it-group/kassette'; import { - Temporal + Temporal, } from 'temporal-polyfill'; /** diff --git a/packages/@o3r/testing/src/localization/localization-mock.ts b/packages/@o3r/testing/src/localization/localization-mock.ts index e947e6f730..88729cff91 100644 --- a/packages/@o3r/testing/src/localization/localization-mock.ts +++ b/packages/@o3r/testing/src/localization/localization-mock.ts @@ -3,19 +3,19 @@ import { NgModule, Pipe, PipeTransform, - Provider + Provider, } from '@angular/core'; import { TranslateLoader, - TranslateModule + TranslateModule, } from '@ngx-translate/core'; import { LocalizationConfiguration, LocalizationModule, - LocalizationTranslatePipe + LocalizationTranslatePipe, } from '@o3r/localization'; import { - of + of, } from 'rxjs'; const defaultLocalizationConfiguration: Partial = { diff --git a/packages/@o3r/testing/src/mocks/mock-component-generator.ts b/packages/@o3r/testing/src/mocks/mock-component-generator.ts index 2234a9ac02..0c5b3aca77 100644 --- a/packages/@o3r/testing/src/mocks/mock-component-generator.ts +++ b/packages/@o3r/testing/src/mocks/mock-component-generator.ts @@ -2,10 +2,10 @@ import { Component, EventEmitter, forwardRef, - Type + Type, } from '@angular/core'; import { - NG_VALUE_ACCESSOR + NG_VALUE_ACCESSOR, } from '@angular/forms'; import * as ts from 'typescript'; diff --git a/packages/@o3r/testing/src/store/testable-select.ts b/packages/@o3r/testing/src/store/testable-select.ts index a371a279f9..7c7c2b1527 100644 --- a/packages/@o3r/testing/src/store/testable-select.ts +++ b/packages/@o3r/testing/src/store/testable-select.ts @@ -1,15 +1,15 @@ import { - select as baseSelect + select as baseSelect, } from '@ngrx/store'; import { Observable, - of + of, } from 'rxjs'; import { FakeSelectCall, isSelectorSpyCall, SelectorFunction, - SelectorSpy + SelectorSpy, } from './typings'; // eslint-disable-next-line import/export -- legacy code diff --git a/packages/@o3r/testing/src/store/typings.ts b/packages/@o3r/testing/src/store/typings.ts index 35f117e275..22a7cacc8e 100644 --- a/packages/@o3r/testing/src/store/typings.ts +++ b/packages/@o3r/testing/src/store/typings.ts @@ -1,5 +1,5 @@ import { - Observable + Observable, } from 'rxjs'; /** Specifies a fake select call */ diff --git a/packages/@o3r/testing/src/tools/path-replacement/path-replacement.ts b/packages/@o3r/testing/src/tools/path-replacement/path-replacement.ts index b61c3a48d6..296ddf745d 100644 --- a/packages/@o3r/testing/src/tools/path-replacement/path-replacement.ts +++ b/packages/@o3r/testing/src/tools/path-replacement/path-replacement.ts @@ -1,14 +1,14 @@ import * as fs from 'node:fs'; import { - Module + Module, } from 'node:module'; import * as path from 'node:path'; import { TransformOptions, - transformSync + transformSync, } from 'esbuild'; import { - requireFromString + requireFromString, } from 'module-from-string'; /** * Switch to the needed implementation of core testing, when running e2e tests diff --git a/packages/@o3r/testing/src/tools/protractor/fetch-manager/utils.ts b/packages/@o3r/testing/src/tools/protractor/fetch-manager/utils.ts index 397eb1deb4..da1af2a31d 100644 --- a/packages/@o3r/testing/src/tools/protractor/fetch-manager/utils.ts +++ b/packages/@o3r/testing/src/tools/protractor/fetch-manager/utils.ts @@ -1,7 +1,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - browser + browser, } from 'protractor'; /** diff --git a/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/_post-message-interceptor.ts b/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/_post-message-interceptor.ts index 8d60b46ec5..6a66ea5577 100644 --- a/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/_post-message-interceptor.ts +++ b/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/_post-message-interceptor.ts @@ -4,7 +4,7 @@ import { ConditionFn, - PostMessageCall + PostMessageCall, } from './core'; // TODO: Move to PollyJS when the winter comes diff --git a/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/post-message-interceptor.ts b/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/post-message-interceptor.ts index 043cd8115c..4fefb68c62 100644 --- a/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/post-message-interceptor.ts +++ b/packages/@o3r/testing/src/tools/protractor/post-message-interceptor/post-message-interceptor.ts @@ -1,11 +1,11 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - browser + browser, } from 'protractor'; import { ConditionFn, - PostMessageCall + PostMessageCall, } from './core'; /** diff --git a/packages/@o3r/testing/src/visual-test/visual-test.ts b/packages/@o3r/testing/src/visual-test/visual-test.ts index 36412f04b1..cd468b2cfb 100644 --- a/packages/@o3r/testing/src/visual-test/visual-test.ts +++ b/packages/@o3r/testing/src/visual-test/visual-test.ts @@ -2,12 +2,12 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import * as pixelmatch from 'pixelmatch'; import { - PNG + PNG, } from 'pngjs'; export { prepareVisualTesting, - toggleVisualTestingRender + toggleVisualTestingRender, } from './utils'; /** Error types returned by visual testing comparison */ diff --git a/packages/@o3r/third-party/eslint.local.config.mjs b/packages/@o3r/third-party/eslint.local.config.mjs index b208420a40..082bd208b2 100644 --- a/packages/@o3r/third-party/eslint.local.config.mjs +++ b/packages/@o3r/third-party/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/third-party/schematics/iframe-to-component/index.spec.ts b/packages/@o3r/third-party/schematics/iframe-to-component/index.spec.ts index 0f09ee486b..9a7be9e7d4 100644 --- a/packages/@o3r/third-party/schematics/iframe-to-component/index.spec.ts +++ b/packages/@o3r/third-party/schematics/iframe-to-component/index.spec.ts @@ -1,16 +1,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { - ngAddIframeFn + ngAddIframeFn, } from './index'; const collectionPath = path.join(__dirname, '..', '..', 'collection.json'); diff --git a/packages/@o3r/third-party/schematics/iframe-to-component/index.ts b/packages/@o3r/third-party/schematics/iframe-to-component/index.ts index fd973d281c..f45bbcda89 100644 --- a/packages/@o3r/third-party/schematics/iframe-to-component/index.ts +++ b/packages/@o3r/third-party/schematics/iframe-to-component/index.ts @@ -1,6 +1,6 @@ import { dirname, - posix + posix, } from 'node:path'; import { chain, @@ -8,7 +8,7 @@ import { noop, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { addCommentsOnClassProperties, @@ -25,11 +25,11 @@ import { getSimpleUpdatedMethod, NoOtterComponent, O3rCliError, - sortClassElement + sortClassElement, } from '@o3r/schematics'; import * as ts from 'typescript'; import type { - NgAddIframeSchematicsSchema + NgAddIframeSchematicsSchema, } from './schema'; const iframeProperties = [ diff --git a/packages/@o3r/third-party/schematics/iframe-to-component/schema.ts b/packages/@o3r/third-party/schematics/iframe-to-component/schema.ts index 0a7ea7226e..f676f15d33 100644 --- a/packages/@o3r/third-party/schematics/iframe-to-component/schema.ts +++ b/packages/@o3r/third-party/schematics/iframe-to-component/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddIframeSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/third-party/schematics/index.it.spec.ts b/packages/@o3r/third-party/schematics/index.it.spec.ts index 6eac531491..9d23c96190 100644 --- a/packages/@o3r/third-party/schematics/index.it.spec.ts +++ b/packages/@o3r/third-party/schematics/index.it.spec.ts @@ -12,7 +12,7 @@ import { getGitDiff, packageManagerExec, packageManagerInstall, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; describe('new Angular application', () => { diff --git a/packages/@o3r/third-party/schematics/ng-add/index.ts b/packages/@o3r/third-party/schematics/ng-add/index.ts index 4fe7477d99..aff127e7de 100644 --- a/packages/@o3r/third-party/schematics/ng-add/index.ts +++ b/packages/@o3r/third-party/schematics/ng-add/index.ts @@ -2,10 +2,10 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; const reportMissingSchematicsDep = (logger: { error: (message: string) => any }) => (reason: any) => { diff --git a/packages/@o3r/third-party/schematics/ng-add/schema.ts b/packages/@o3r/third-party/schematics/ng-add/schema.ts index d60692a91b..57eaf4bbb2 100644 --- a/packages/@o3r/third-party/schematics/ng-add/schema.ts +++ b/packages/@o3r/third-party/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgAddSchematicsSchema extends SchematicOptionObject { diff --git a/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.spec.ts b/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.spec.ts index c0e2eb9d8c..c04f11336b 100644 --- a/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.spec.ts +++ b/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.spec.ts @@ -1,9 +1,9 @@ import { - firstValueFrom + firstValueFrom, } from 'rxjs'; import { AbTestBridge, - AbTestBridgeInterface + AbTestBridgeInterface, } from './ab-testing-bridge'; describe('A/B testing bridge', () => { diff --git a/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.ts b/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.ts index 6b4e8392c2..38e07ba5c2 100644 --- a/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.ts +++ b/packages/@o3r/third-party/src/bridge/ab-testing/ab-testing-bridge.ts @@ -1,10 +1,10 @@ import type { - Logger + Logger, } from '@o3r/core'; import { BehaviorSubject, distinctUntilChanged, - Observable + Observable, } from 'rxjs'; /** diff --git a/packages/@o3r/third-party/src/bridge/iframe/bridge.ts b/packages/@o3r/third-party/src/bridge/iframe/bridge.ts index 3320dcb474..baded8a759 100644 --- a/packages/@o3r/third-party/src/bridge/iframe/bridge.ts +++ b/packages/@o3r/third-party/src/bridge/iframe/bridge.ts @@ -1,25 +1,25 @@ import { firstValueFrom, fromEvent, - Observable + Observable, } from 'rxjs'; import { filter, map, share, - timeout + timeout, } from 'rxjs/operators'; import { - v4 + v4, } from 'uuid'; import { IFrameBridgeOptions, IframeMessage, - InternalIframeMessage + InternalIframeMessage, } from './contracts'; import { IFRAME_BRIDGE_DEFAULT_OPTIONS, - isSupportedMessage + isSupportedMessage, } from './helpers'; /** diff --git a/packages/@o3r/third-party/src/bridge/iframe/helpers.ts b/packages/@o3r/third-party/src/bridge/iframe/helpers.ts index 6ad683012b..c1dbad5ea5 100644 --- a/packages/@o3r/third-party/src/bridge/iframe/helpers.ts +++ b/packages/@o3r/third-party/src/bridge/iframe/helpers.ts @@ -1,6 +1,6 @@ import { IFrameBridgeOptions, - InternalIframeMessage + InternalIframeMessage, } from './contracts'; /** diff --git a/packages/@o3r/workspace/eslint.local.config.mjs b/packages/@o3r/workspace/eslint.local.config.mjs index 784fdb1a5e..fe82da2e01 100644 --- a/packages/@o3r/workspace/eslint.local.config.mjs +++ b/packages/@o3r/workspace/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/packages/@o3r/workspace/schematics/application/index.spec.ts b/packages/@o3r/workspace/schematics/application/index.spec.ts index 0a30373db8..f67ad422eb 100644 --- a/packages/@o3r/workspace/schematics/application/index.spec.ts +++ b/packages/@o3r/workspace/schematics/application/index.spec.ts @@ -1,11 +1,11 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { SchematicTestRunner, - UnitTestTree + UnitTestTree, } from '@angular-devkit/schematics/testing'; jest.mock('@o3r/schematics', () => ({ @@ -20,9 +20,7 @@ jest.mock('@angular-devkit/schematics', () => { const originalModule = jest.requireActual('@angular-devkit/schematics'); return { ...originalModule, - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function externalSchematic: jest.fn().mockImplementation(() => (tree: Tree) => tree), - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function schematic: jest.fn().mockImplementation(() => (tree: Tree) => tree) }; }); diff --git a/packages/@o3r/workspace/schematics/application/index.ts b/packages/@o3r/workspace/schematics/application/index.ts index 11addf518c..1b2bc8d9e9 100644 --- a/packages/@o3r/workspace/schematics/application/index.ts +++ b/packages/@o3r/workspace/schematics/application/index.ts @@ -12,7 +12,7 @@ import { Schematic, strings, template, - url + url, } from '@angular-devkit/schematics'; import { createSchematicWithMetricsIfInstalled, @@ -20,25 +20,25 @@ import { getPackagesBaseRootFolder, getWorkspaceConfig, isNxContext, - setupDependencies + setupDependencies, } from '@o3r/schematics'; import { - type Schema as ApplicationOptions + type Schema as ApplicationOptions, } from '@schematics/angular/application/schema'; import { - Style + Style, } from '@schematics/angular/application/schema'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - updateProjectTsConfig + updateProjectTsConfig, } from '../rule-factories/index'; import type { - NgGenerateApplicationSchema + NgGenerateApplicationSchema, } from './schema'; /** diff --git a/packages/@o3r/workspace/schematics/application/schema.ts b/packages/@o3r/workspace/schematics/application/schema.ts index 983b67fb1c..b99d83d4ce 100644 --- a/packages/@o3r/workspace/schematics/application/schema.ts +++ b/packages/@o3r/workspace/schematics/application/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateApplicationSchema extends SchematicOptionObject { diff --git a/packages/@o3r/workspace/schematics/index.it.spec.ts b/packages/@o3r/workspace/schematics/index.it.spec.ts index 6fbcad4718..bcc0750764 100644 --- a/packages/@o3r/workspace/schematics/index.it.spec.ts +++ b/packages/@o3r/workspace/schematics/index.it.spec.ts @@ -7,7 +7,7 @@ const o3rEnvironment = globalThis.o3rEnvironment; import { existsSync, - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { @@ -16,10 +16,10 @@ import { packageManagerExec, packageManagerInstall, packageManagerRun, - packageManagerRunOnProject + packageManagerRunOnProject, } from '@o3r/test-helpers'; import type { - PackageJson + PackageJson, } from 'type-fest'; const mocksFolder = path.join(__dirname, '..', 'testing', 'mocks'); diff --git a/packages/@o3r/workspace/schematics/library/index.spec.ts b/packages/@o3r/workspace/schematics/library/index.spec.ts index 5351887725..e8ea8ad7e0 100644 --- a/packages/@o3r/workspace/schematics/library/index.spec.ts +++ b/packages/@o3r/workspace/schematics/library/index.spec.ts @@ -1,16 +1,15 @@ import * as path from 'node:path'; import { - Tree + Tree, } from '@angular-devkit/schematics'; import { - SchematicTestRunner + SchematicTestRunner, } from '@angular-devkit/schematics/testing'; jest.mock('@angular-devkit/schematics', () => { const originalModule = jest.requireActual('@angular-devkit/schematics'); return { ...originalModule, - // eslint-disable-next-line unicorn/consistent-function-scoping -- higher-order function externalSchematic: jest.fn().mockImplementation(() => (tree: Tree) => { return tree; }) diff --git a/packages/@o3r/workspace/schematics/library/index.ts b/packages/@o3r/workspace/schematics/library/index.ts index 8ea1125f98..0c7b42b6c9 100644 --- a/packages/@o3r/workspace/schematics/library/index.ts +++ b/packages/@o3r/workspace/schematics/library/index.ts @@ -4,10 +4,10 @@ import { chain, noop, Rule, - strings + strings, } from '@angular-devkit/schematics'; import { - RunSchematicTask + RunSchematicTask, } from '@angular-devkit/schematics/tasks'; import { applyEsLintFix, @@ -17,22 +17,22 @@ import { getWorkspaceConfig, isNxContext, O3rCliError, - setupDependencies + setupDependencies, } from '@o3r/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import { - PackageJson + PackageJson, } from 'type-fest'; import { - ngGenerateModule + ngGenerateModule, } from './rules/rules.ng'; import { - nxGenerateModule + nxGenerateModule, } from './rules/rules.nx'; import { - NgGenerateModuleSchema + NgGenerateModuleSchema, } from './schema'; /** diff --git a/packages/@o3r/workspace/schematics/library/rules/rules.ng.ts b/packages/@o3r/workspace/schematics/library/rules/rules.ng.ts index 50f1593ab3..6384dd4447 100644 --- a/packages/@o3r/workspace/schematics/library/rules/rules.ng.ts +++ b/packages/@o3r/workspace/schematics/library/rules/rules.ng.ts @@ -1,5 +1,5 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -12,24 +12,24 @@ import { renameTemplateFiles, Rule, template, - url + url, } from '@angular-devkit/schematics'; import { - findConfigFileRelativePath + findConfigFileRelativePath, } from '@o3r/schematics'; import type { PackageJson, - TsConfigJson + TsConfigJson, } from 'type-fest'; import { - updateProjectTsConfig + updateProjectTsConfig, } from '../../rule-factories/index'; import type { - NgGenerateModuleSchema + NgGenerateModuleSchema, } from '../schema'; import { updateNgPackagrFactory, - updatePackageDependenciesFactory + updatePackageDependenciesFactory, } from './shared'; /** diff --git a/packages/@o3r/workspace/schematics/library/rules/rules.nx.ts b/packages/@o3r/workspace/schematics/library/rules/rules.nx.ts index e5d3e06445..d3a2e37f48 100644 --- a/packages/@o3r/workspace/schematics/library/rules/rules.nx.ts +++ b/packages/@o3r/workspace/schematics/library/rules/rules.nx.ts @@ -1,5 +1,5 @@ import { - readFileSync + readFileSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -13,22 +13,22 @@ import { Rule, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { findConfigFileRelativePath, getPackageManagerRunner, - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - NgGenerateModuleSchema + NgGenerateModuleSchema, } from '../schema'; import { updateNgPackagrFactory, - updatePackageDependenciesFactory + updatePackageDependenciesFactory, } from './shared'; /** diff --git a/packages/@o3r/workspace/schematics/library/rules/shared.ts b/packages/@o3r/workspace/schematics/library/rules/shared.ts index f9ba643e82..2307fd7714 100644 --- a/packages/@o3r/workspace/schematics/library/rules/shared.ts +++ b/packages/@o3r/workspace/schematics/library/rules/shared.ts @@ -1,16 +1,16 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { getPackageManagerRunner, - getWorkspaceConfig + getWorkspaceConfig, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - NgGenerateModuleSchema + NgGenerateModuleSchema, } from '../schema'; /** @@ -58,18 +58,18 @@ export function updatePackageDependenciesFactory( '@typescript-eslint/eslint-plugin': o3rCorePackageJson.generatorDependencies!['@typescript-eslint/parser'], '@typescript-eslint/parser': o3rCorePackageJson.generatorDependencies!['@typescript-eslint/parser'], 'cpy-cli': o3rCorePackageJson.generatorDependencies!['cpy-cli'], - 'eslint': o3rCorePackageJson.generatorDependencies!.eslint, + eslint: o3rCorePackageJson.generatorDependencies!.eslint, 'eslint-import-resolver-node': o3rCorePackageJson.generatorDependencies!['eslint-import-resolver-node'], 'eslint-plugin-jest': o3rCorePackageJson.generatorDependencies!['eslint-plugin-jest'], 'eslint-plugin-jsdoc': o3rCorePackageJson.generatorDependencies!['eslint-plugin-jsdoc'], 'eslint-plugin-prefer-arrow': o3rCorePackageJson.generatorDependencies!['eslint-plugin-prefer-arrow'], 'eslint-plugin-unicorn': o3rCorePackageJson.generatorDependencies!['eslint-plugin-unicorn'], - 'jest': o3rCorePackageJson.generatorDependencies!.jest, + jest: o3rCorePackageJson.generatorDependencies!.jest, 'jest-environment-jsdom': o3rCorePackageJson.generatorDependencies!.jest, 'jest-junit': o3rCorePackageJson.generatorDependencies!['jest-junit'], 'jest-preset-angular': o3rCorePackageJson.generatorDependencies!['jest-preset-angular'], - 'rxjs': o3rCorePackageJson.peerDependencies!.rxjs, - 'typescript': o3rCorePackageJson.peerDependencies!.typescript, + rxjs: o3rCorePackageJson.peerDependencies!.rxjs, + typescript: o3rCorePackageJson.peerDependencies!.typescript, 'zone.js': o3rCorePackageJson.generatorDependencies!['zone.js'] }; tree.overwrite(path.posix.join(targetPath, 'package.json'), JSON.stringify(packageJson, null, 2)); diff --git a/packages/@o3r/workspace/schematics/library/schema.ts b/packages/@o3r/workspace/schematics/library/schema.ts index a54d8f2e3b..18fd6d95c7 100644 --- a/packages/@o3r/workspace/schematics/library/schema.ts +++ b/packages/@o3r/workspace/schematics/library/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateModuleSchema extends SchematicOptionObject { diff --git a/packages/@o3r/workspace/schematics/ng-add/helpers/gitignore-update.ts b/packages/@o3r/workspace/schematics/ng-add/helpers/gitignore-update.ts index 497ae5857e..cd9c14062b 100644 --- a/packages/@o3r/workspace/schematics/ng-add/helpers/gitignore-update.ts +++ b/packages/@o3r/workspace/schematics/ng-add/helpers/gitignore-update.ts @@ -1,11 +1,11 @@ import type { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { getPackageManager, - WorkspaceSchema + WorkspaceSchema, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/workspace/schematics/ng-add/helpers/linter.ts b/packages/@o3r/workspace/schematics/ng-add/helpers/linter.ts index 0f56b6eed9..71d5cb1c49 100644 --- a/packages/@o3r/workspace/schematics/ng-add/helpers/linter.ts +++ b/packages/@o3r/workspace/schematics/ng-add/helpers/linter.ts @@ -1,9 +1,9 @@ import { - askConfirmation + askConfirmation, } from '@angular/cli/src/utilities/prompt'; import type { SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; /** diff --git a/packages/@o3r/workspace/schematics/ng-add/helpers/npm-workspace.ts b/packages/@o3r/workspace/schematics/ng-add/helpers/npm-workspace.ts index d5e56f4758..03507e70b3 100644 --- a/packages/@o3r/workspace/schematics/ng-add/helpers/npm-workspace.ts +++ b/packages/@o3r/workspace/schematics/ng-add/helpers/npm-workspace.ts @@ -1,11 +1,11 @@ import { chain, - SchematicsException + SchematicsException, } from '@angular-devkit/schematics'; import type { Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { DEFAULT_ROOT_FOLDERS, @@ -13,13 +13,13 @@ import { isNxContext, setupSchematicsParamsForProject, WorkspaceLayout, - WorkspaceSchematics + WorkspaceSchematics, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import type { - MonorepoManager + MonorepoManager, } from '../schema'; /** @@ -106,18 +106,18 @@ export function addMonorepoManager(o3rWorkspacePackageJson: PackageJson & { gene const rootPackageJsonObject = tree.readJson(rootPackageJsonPath) as PackageJson; rootPackageJsonObject.devDependencies = { ...rootPackageJsonObject.devDependencies, - 'lerna': o3rWorkspacePackageJson.generatorDependencies.lerna + lerna: o3rWorkspacePackageJson.generatorDependencies.lerna }; rootPackageJsonObject.scripts = { ...rootPackageJsonObject.scripts, - 'build': 'lerna run build', - 'test': 'lerna run test', - 'lint': 'lerna run lint' + build: 'lerna run build', + test: 'lerna run test', + lint: 'lerna run lint' }; const lernaJson: { $schema: string; version: string; npmClient?: string } = { - '$schema': 'https://github.com/lerna/lerna/blob/main/packages/lerna/schemas/lerna-schema.json', - 'version': rootPackageJsonObject.version || '0.0.0-placeholder' + $schema: 'https://github.com/lerna/lerna/blob/main/packages/lerna/schemas/lerna-schema.json', + version: rootPackageJsonObject.version || '0.0.0-placeholder' }; if (getPackageManager() === 'yarn') { lernaJson.npmClient = 'yarn'; diff --git a/packages/@o3r/workspace/schematics/ng-add/helpers/renovate/index.ts b/packages/@o3r/workspace/schematics/ng-add/helpers/renovate/index.ts index 88352f522e..afde701e13 100644 --- a/packages/@o3r/workspace/schematics/ng-add/helpers/renovate/index.ts +++ b/packages/@o3r/workspace/schematics/ng-add/helpers/renovate/index.ts @@ -7,11 +7,11 @@ import { SchematicContext, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { getPackageManager, - getTemplateFolder + getTemplateFolder, } from '@o3r/schematics'; /** diff --git a/packages/@o3r/workspace/schematics/ng-add/index.ts b/packages/@o3r/workspace/schematics/ng-add/index.ts index 140693962c..8b02911901 100644 --- a/packages/@o3r/workspace/schematics/ng-add/index.ts +++ b/packages/@o3r/workspace/schematics/ng-add/index.ts @@ -4,25 +4,25 @@ import { chain, Rule, SchematicContext, - Tree + Tree, } from '@angular-devkit/schematics'; import { - RepositoryInitializerTask + RepositoryInitializerTask, } from '@angular-devkit/schematics/tasks'; import { createSchematicWithMetricsIfInstalled, getPackageManagerExecutor, getWorkspaceConfig, - registerPackageCollectionSchematics + registerPackageCollectionSchematics, } from '@o3r/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - prepareProject + prepareProject, } from './project-setup'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/workspace/schematics/ng-add/project-setup.ts b/packages/@o3r/workspace/schematics/ng-add/project-setup.ts index 8d049cbca6..5f5b90fc7d 100644 --- a/packages/@o3r/workspace/schematics/ng-add/project-setup.ts +++ b/packages/@o3r/workspace/schematics/ng-add/project-setup.ts @@ -3,41 +3,41 @@ import * as path from 'node:path'; import { chain, noop, - Rule + Rule, } from '@angular-devkit/schematics'; import { addVsCodeRecommendations, applyEsLintFix, getO3rPeerDeps, getWorkspaceConfig, - setupDependencies + setupDependencies, } from '@o3r/schematics'; import type { - DependencyToAdd + DependencyToAdd, } from '@o3r/schematics'; import { - NodeDependencyType + NodeDependencyType, } from '@schematics/angular/utility/dependencies'; import type { - PackageJson + PackageJson, } from 'type-fest'; import { - updateGitIgnore + updateGitIgnore, } from './helpers/gitignore-update'; import { isUsingFlatConfig, - shouldOtterLinterBeInstalled + shouldOtterLinterBeInstalled, } from './helpers/linter'; import { addMonorepoManager, addWorkspacesToProject, - filterPackageJsonScripts + filterPackageJsonScripts, } from './helpers/npm-workspace'; import { - generateRenovateConfig + generateRenovateConfig, } from './helpers/renovate'; import type { - NgAddSchematicsSchema + NgAddSchematicsSchema, } from './schema'; /** diff --git a/packages/@o3r/workspace/schematics/ng-add/schema.ts b/packages/@o3r/workspace/schematics/ng-add/schema.ts index 5e118fd3d6..8f9b06c380 100644 --- a/packages/@o3r/workspace/schematics/ng-add/schema.ts +++ b/packages/@o3r/workspace/schematics/ng-add/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; /** Monorepo manager to use */ diff --git a/packages/@o3r/workspace/schematics/ng-update/index.ts b/packages/@o3r/workspace/schematics/ng-update/index.ts index b4b6d9a6c0..a0b62bd17e 100644 --- a/packages/@o3r/workspace/schematics/ng-update/index.ts +++ b/packages/@o3r/workspace/schematics/ng-update/index.ts @@ -1,12 +1,12 @@ import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import { - createSchematicWithMetricsIfInstalled + createSchematicWithMetricsIfInstalled, } from '@o3r/schematics'; import { - addPresetsRenovate + addPresetsRenovate, } from './v10.1/add-presets-renovate'; /** diff --git a/packages/@o3r/workspace/schematics/ng-update/v10.1/add-presets-renovate.ts b/packages/@o3r/workspace/schematics/ng-update/v10.1/add-presets-renovate.ts index 8776f29c5b..a73af62ce5 100644 --- a/packages/@o3r/workspace/schematics/ng-update/v10.1/add-presets-renovate.ts +++ b/packages/@o3r/workspace/schematics/ng-update/v10.1/add-presets-renovate.ts @@ -1,5 +1,5 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; const renovatePresets = [ diff --git a/packages/@o3r/workspace/schematics/rule-factories/project-configs.ts b/packages/@o3r/workspace/schematics/rule-factories/project-configs.ts index 0ef8aac6c9..56492ba52e 100644 --- a/packages/@o3r/workspace/schematics/rule-factories/project-configs.ts +++ b/packages/@o3r/workspace/schematics/rule-factories/project-configs.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { - findConfigFileRelativePath + findConfigFileRelativePath, } from '@o3r/schematics'; import * as ts from 'typescript'; diff --git a/packages/@o3r/workspace/schematics/sdk/index.ts b/packages/@o3r/workspace/schematics/sdk/index.ts index b35faad5a1..973fbbb81a 100644 --- a/packages/@o3r/workspace/schematics/sdk/index.ts +++ b/packages/@o3r/workspace/schematics/sdk/index.ts @@ -1,5 +1,5 @@ import { - existsSync + existsSync, } from 'node:fs'; import * as path from 'node:path'; import { @@ -16,11 +16,11 @@ import { strings, template, Tree, - url + url, } from '@angular-devkit/schematics'; import { NodePackageInstallTask, - RunSchematicTask + RunSchematicTask, } from '@angular-devkit/schematics/tasks'; import { createSchematicWithMetricsIfInstalled, @@ -29,22 +29,22 @@ import { getWorkspaceConfig, isNxContext, NpmExecTask, - O3rCliError + O3rCliError, } from '@o3r/schematics'; import { - cleanStandaloneFiles + cleanStandaloneFiles, } from './rules/clean-standalone.rule'; import { - ngRegisterProjectTasks + ngRegisterProjectTasks, } from './rules/rules.ng'; import { - nxRegisterProjectTasks + nxRegisterProjectTasks, } from './rules/rules.nx'; import { - updateTsConfig + updateTsConfig, } from './rules/update-ts-paths.rule'; import { - NgGenerateSdkSchema + NgGenerateSdkSchema, } from './schema'; /** diff --git a/packages/@o3r/workspace/schematics/sdk/rules/clean-standalone.rule.ts b/packages/@o3r/workspace/schematics/sdk/rules/clean-standalone.rule.ts index 22867d9943..103e72136a 100644 --- a/packages/@o3r/workspace/schematics/sdk/rules/clean-standalone.rule.ts +++ b/packages/@o3r/workspace/schematics/sdk/rules/clean-standalone.rule.ts @@ -1,12 +1,12 @@ import { - posix + posix, } from 'node:path'; import { chain, - type Rule + type Rule, } from '@angular-devkit/schematics'; import type { - PackageJson + PackageJson, } from 'type-fest'; const deleteIfExists = (paths: string[]): Rule => (tree, context) => { diff --git a/packages/@o3r/workspace/schematics/sdk/rules/rules.ng.ts b/packages/@o3r/workspace/schematics/sdk/rules/rules.ng.ts index 72dd1e0812..53fed84663 100644 --- a/packages/@o3r/workspace/schematics/sdk/rules/rules.ng.ts +++ b/packages/@o3r/workspace/schematics/sdk/rules/rules.ng.ts @@ -1,13 +1,13 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import { getWorkspaceConfig, - WorkspaceProject + WorkspaceProject, } from '@o3r/schematics'; import type { - NgGenerateSdkSchema + NgGenerateSdkSchema, } from '../schema'; /** diff --git a/packages/@o3r/workspace/schematics/sdk/rules/rules.nx.ts b/packages/@o3r/workspace/schematics/sdk/rules/rules.nx.ts index 446c23be32..3f0aae61cf 100644 --- a/packages/@o3r/workspace/schematics/sdk/rules/rules.nx.ts +++ b/packages/@o3r/workspace/schematics/sdk/rules/rules.nx.ts @@ -1,9 +1,9 @@ import * as path from 'node:path'; import type { - Rule + Rule, } from '@angular-devkit/schematics'; import type { - NgGenerateSdkSchema + NgGenerateSdkSchema, } from '../schema'; /** diff --git a/packages/@o3r/workspace/schematics/sdk/rules/update-ts-paths.rule.ts b/packages/@o3r/workspace/schematics/sdk/rules/update-ts-paths.rule.ts index 85e6836e84..6a2812277d 100644 --- a/packages/@o3r/workspace/schematics/sdk/rules/update-ts-paths.rule.ts +++ b/packages/@o3r/workspace/schematics/sdk/rules/update-ts-paths.rule.ts @@ -1,5 +1,5 @@ import type { - Rule + Rule, } from '@angular-devkit/schematics'; import * as ts from 'typescript'; diff --git a/packages/@o3r/workspace/schematics/sdk/schema.ts b/packages/@o3r/workspace/schematics/sdk/schema.ts index 253d706fb6..a12f58eb36 100644 --- a/packages/@o3r/workspace/schematics/sdk/schema.ts +++ b/packages/@o3r/workspace/schematics/sdk/schema.ts @@ -1,5 +1,5 @@ import type { - SchematicOptionObject + SchematicOptionObject, } from '@o3r/schematics'; export interface NgGenerateSdkSchema extends SchematicOptionObject { diff --git a/packages/@o3r/workspace/src/cli/set-version.cts b/packages/@o3r/workspace/src/cli/set-version.cts index a97a29fa86..38c2ea4a1a 100644 --- a/packages/@o3r/workspace/src/cli/set-version.cts +++ b/packages/@o3r/workspace/src/cli/set-version.cts @@ -3,16 +3,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import type { - CliWrapper + CliWrapper, } from '@o3r/telemetry'; import { - program + program, } from 'commander'; import { - sync as globbySync + sync as globbySync, } from 'globby'; import { - clean + clean, } from 'semver'; import * as winston from 'winston'; diff --git a/packages/@o3r/workspace/src/utils/jest.helpers.ts b/packages/@o3r/workspace/src/utils/jest.helpers.ts index da4f6f8d96..2b036b213d 100644 --- a/packages/@o3r/workspace/src/utils/jest.helpers.ts +++ b/packages/@o3r/workspace/src/utils/jest.helpers.ts @@ -1,13 +1,13 @@ import { existsSync, - readFileSync + readFileSync, } from 'node:fs'; import { posix, - resolve + resolve, } from 'node:path'; import { - sync as globbySync + sync as globbySync, } from 'globby'; /** diff --git a/packages/@o3r/workspace/testing/mocks/app.routing.module.mocks.ts b/packages/@o3r/workspace/testing/mocks/app.routing.module.mocks.ts index fd94e725b7..38a36c6f46 100644 --- a/packages/@o3r/workspace/testing/mocks/app.routing.module.mocks.ts +++ b/packages/@o3r/workspace/testing/mocks/app.routing.module.mocks.ts @@ -1,9 +1,9 @@ import { - NgModule + NgModule, } from '@angular/core'; import { RouterModule, - Routes + Routes, } from '@angular/router'; const appRoutes: Routes = [ diff --git a/tools/@o3r/build-helpers/eslint.local.config.mjs b/tools/@o3r/build-helpers/eslint.local.config.mjs index 01495fe974..51fd0db62b 100644 --- a/tools/@o3r/build-helpers/eslint.local.config.mjs +++ b/tools/@o3r/build-helpers/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/tools/@o3r/build-helpers/scripts/clear-package-json-dev-dependencies.mjs b/tools/@o3r/build-helpers/scripts/clear-package-json-dev-dependencies.mjs index 735b220d19..9dec88ec20 100755 --- a/tools/@o3r/build-helpers/scripts/clear-package-json-dev-dependencies.mjs +++ b/tools/@o3r/build-helpers/scripts/clear-package-json-dev-dependencies.mjs @@ -4,11 +4,11 @@ import { readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/cp-build.mjs b/tools/@o3r/build-helpers/scripts/cp-build.mjs index 7f6c386a78..9acfe60f68 100755 --- a/tools/@o3r/build-helpers/scripts/cp-build.mjs +++ b/tools/@o3r/build-helpers/scripts/cp-build.mjs @@ -3,11 +3,11 @@ */ import { - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import { - globby as glob + globby as glob, } from 'globby'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/cp-package-json.mjs b/tools/@o3r/build-helpers/scripts/cp-package-json.mjs index 1abd145c47..c1687d83d1 100755 --- a/tools/@o3r/build-helpers/scripts/cp-package-json.mjs +++ b/tools/@o3r/build-helpers/scripts/cp-package-json.mjs @@ -3,11 +3,11 @@ */ import { - copyFileSync + copyFileSync, } from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/generate-cjs-manifest.mjs b/tools/@o3r/build-helpers/scripts/generate-cjs-manifest.mjs index 841774ac45..3f79477527 100644 --- a/tools/@o3r/build-helpers/scripts/generate-cjs-manifest.mjs +++ b/tools/@o3r/build-helpers/scripts/generate-cjs-manifest.mjs @@ -4,7 +4,7 @@ import { existsSync, - promises as fs + promises as fs, } from 'node:fs'; import * as path from 'node:path'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/patch-package-json-exports.mjs b/tools/@o3r/build-helpers/scripts/patch-package-json-exports.mjs index a4d72e1faa..07f3d03aee 100755 --- a/tools/@o3r/build-helpers/scripts/patch-package-json-exports.mjs +++ b/tools/@o3r/build-helpers/scripts/patch-package-json-exports.mjs @@ -5,11 +5,11 @@ import { readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/patch-package-json-main.mjs b/tools/@o3r/build-helpers/scripts/patch-package-json-main.mjs index d4fd7e4d54..09de5a44ec 100755 --- a/tools/@o3r/build-helpers/scripts/patch-package-json-main.mjs +++ b/tools/@o3r/build-helpers/scripts/patch-package-json-main.mjs @@ -5,13 +5,13 @@ import { existsSync, readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import { join, posix, relative, - resolve + resolve, } from 'node:path'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/prepare-publish.mjs b/tools/@o3r/build-helpers/scripts/prepare-publish.mjs index b5bb7952d1..fa759803e0 100644 --- a/tools/@o3r/build-helpers/scripts/prepare-publish.mjs +++ b/tools/@o3r/build-helpers/scripts/prepare-publish.mjs @@ -10,14 +10,14 @@ import { existsSync, readdirSync, readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import { delimiter, dirname, join, normalize, - resolve + resolve, } from 'node:path'; import minimist from 'minimist'; diff --git a/tools/@o3r/build-helpers/scripts/write-git-hash.mjs b/tools/@o3r/build-helpers/scripts/write-git-hash.mjs index 90b089ab1d..7b5b64d4da 100644 --- a/tools/@o3r/build-helpers/scripts/write-git-hash.mjs +++ b/tools/@o3r/build-helpers/scripts/write-git-hash.mjs @@ -6,11 +6,11 @@ import { readFileSync, - writeFileSync + writeFileSync, } from 'node:fs'; import { join, - resolve + resolve, } from 'node:path'; import minimist from 'minimist'; diff --git a/tools/github-actions/audit/eslint.local.config.mjs b/tools/github-actions/audit/eslint.local.config.mjs index 04ad0d1c32..c81bd910b9 100644 --- a/tools/github-actions/audit/eslint.local.config.mjs +++ b/tools/github-actions/audit/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/tools/github-actions/audit/src/main.ts b/tools/github-actions/audit/src/main.ts index b870ac85d7..d3631d8edc 100644 --- a/tools/github-actions/audit/src/main.ts +++ b/tools/github-actions/audit/src/main.ts @@ -3,10 +3,10 @@ import * as os from 'node:os'; import * as path from 'node:path'; import * as core from '@actions/core'; import { - getExecOutput + getExecOutput, } from '@actions/exec'; import type { - Severity + Severity, } from 'audit-types'; import { computeNpmReport, @@ -16,7 +16,7 @@ import { OtterAdvisory, OtterAuditReport, OtterAuditReporter, - severities + severities, } from './reports'; const colors = ['', 'green', 'yellow', 'orange', 'red']; diff --git a/tools/github-actions/audit/src/reports.spec.ts b/tools/github-actions/audit/src/reports.spec.ts index b2f51f3f35..6737b36528 100644 --- a/tools/github-actions/audit/src/reports.spec.ts +++ b/tools/github-actions/audit/src/reports.spec.ts @@ -1,14 +1,14 @@ import { - readFile + readFile, } from 'node:fs/promises'; import { - join + join, } from 'node:path'; import { computeNpmReport, computeYarn1Report, computeYarn3Report, - computeYarn4Report + computeYarn4Report, } from './reports'; jest.mock('@actions/core'); diff --git a/tools/github-actions/audit/src/reports.ts b/tools/github-actions/audit/src/reports.ts index 34104e06b6..563b0b48bb 100644 --- a/tools/github-actions/audit/src/reports.ts +++ b/tools/github-actions/audit/src/reports.ts @@ -5,7 +5,7 @@ import type { NPMAuditReportV2, Severity, YarnAudit, - YarnNpmAuditReport + YarnNpmAuditReport, } from 'audit-types'; type Audit = NPMAuditReportV1.Audit; diff --git a/tools/github-actions/cascading/eslint.local.config.mjs b/tools/github-actions/cascading/eslint.local.config.mjs index af03946ba1..629185f0b1 100644 --- a/tools/github-actions/cascading/eslint.local.config.mjs +++ b/tools/github-actions/cascading/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/tools/github-actions/cascading/src/cascading.ts b/tools/github-actions/cascading/src/cascading.ts index e2809dee86..8d65ef2cd1 100644 --- a/tools/github-actions/cascading/src/cascading.ts +++ b/tools/github-actions/cascading/src/cascading.ts @@ -1,20 +1,20 @@ import { - exec + exec, } from 'node:child_process'; import { - promisify + promisify, } from 'node:util'; import * as github from '@actions/github'; import * as Context from '@actions/github/lib/context'; import { - GitHub + GitHub, } from '@actions/github/lib/utils'; import { extractBranchesFromGitOutput, extractPackageChanges, handlePromisifiedExecLog, notIgnorablePackages, - sortBranches + sortBranches, } from './helpers'; const promisifiedExec = promisify(exec); diff --git a/tools/github-actions/cascading/src/helpers.spec.ts b/tools/github-actions/cascading/src/helpers.spec.ts index d5ae420616..0f4236250f 100644 --- a/tools/github-actions/cascading/src/helpers.spec.ts +++ b/tools/github-actions/cascading/src/helpers.spec.ts @@ -2,7 +2,7 @@ import { extractBranchesFromGitOutput, extractPackageLine, extractPackages, - sortBranches + sortBranches, } from './helpers'; describe('helpers', () => { diff --git a/tools/github-actions/cascading/src/helpers.ts b/tools/github-actions/cascading/src/helpers.ts index eaaa774dc2..3ff0c46ddd 100644 --- a/tools/github-actions/cascading/src/helpers.ts +++ b/tools/github-actions/cascading/src/helpers.ts @@ -1,5 +1,5 @@ import type { - BaseLogger + BaseLogger, } from './cascading'; /** diff --git a/tools/github-actions/cascading/src/main.ts b/tools/github-actions/cascading/src/main.ts index 3afe744a74..32ebfd4536 100644 --- a/tools/github-actions/cascading/src/main.ts +++ b/tools/github-actions/cascading/src/main.ts @@ -1,17 +1,17 @@ import { - exec + exec, } from 'node:child_process'; import { inspect, - promisify + promisify, } from 'node:util'; import * as core from '@actions/core'; import { - getOctokit + getOctokit, } from '@actions/github'; import * as github from '@actions/github'; import { - Cascading + Cascading, } from './cascading'; const promisifiedExec = promisify(exec); diff --git a/tools/github-actions/get-npm-tag/eslint.local.config.mjs b/tools/github-actions/get-npm-tag/eslint.local.config.mjs index b22e0d81ec..c79a8853ab 100644 --- a/tools/github-actions/get-npm-tag/eslint.local.config.mjs +++ b/tools/github-actions/get-npm-tag/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; const __filename = fileURLToPath(import.meta.url); diff --git a/tools/github-actions/get-npm-tag/src/main.ts b/tools/github-actions/get-npm-tag/src/main.ts index af9e094688..e163c25128 100644 --- a/tools/github-actions/get-npm-tag/src/main.ts +++ b/tools/github-actions/get-npm-tag/src/main.ts @@ -1,13 +1,13 @@ import * as core from '@actions/core'; import { - getOctokit + getOctokit, } from '@actions/github'; import { clean, compare, major, prerelease, - valid + valid, } from 'semver'; async function run(): Promise { diff --git a/tools/github-actions/new-version/eslint.local.config.mjs b/tools/github-actions/new-version/eslint.local.config.mjs index b2bba13c74..86ec14c7d7 100644 --- a/tools/github-actions/new-version/eslint.local.config.mjs +++ b/tools/github-actions/new-version/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/tools/github-actions/new-version/src/main.ts b/tools/github-actions/new-version/src/main.ts index 4e871c92ec..df8494f69a 100644 --- a/tools/github-actions/new-version/src/main.ts +++ b/tools/github-actions/new-version/src/main.ts @@ -1,7 +1,7 @@ import * as core from '@actions/core'; import * as github from '@actions/github'; import { - NewVersion + NewVersion, } from '@o3r/new-version'; async function run(): Promise { diff --git a/tools/github-actions/release/eslint.local.config.mjs b/tools/github-actions/release/eslint.local.config.mjs index bece969e07..fa5b3fa563 100644 --- a/tools/github-actions/release/eslint.local.config.mjs +++ b/tools/github-actions/release/eslint.local.config.mjs @@ -1,8 +1,8 @@ import { - dirname + dirname, } from 'node:path'; import { - fileURLToPath + fileURLToPath, } from 'node:url'; import globals from 'globals'; diff --git a/tools/github-actions/release/src/get-previous-version.cts b/tools/github-actions/release/src/get-previous-version.cts index 9d57008b89..b2fe389515 100755 --- a/tools/github-actions/release/src/get-previous-version.cts +++ b/tools/github-actions/release/src/get-previous-version.cts @@ -3,7 +3,7 @@ import * as minimist from 'minimist'; import { gt, lt, - valid + valid, } from 'semver'; const argv = minimist(process.argv.slice(2));