1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { UISyntaxRule } from './ui-syntax-rule'; 17import BuildRootNode from './build-root-node'; 18import CheckConstructPrivateParameter from './check-construct-private-parameter'; 19import CheckDecoratedPropertyType from './check-decorated-property-type'; 20import ComponentComponentV2MixUseCheck from './component-componentV2-mix-use-check'; 21import ComponentV2MixCheck from './componentV2-mix-check'; 22import ConsumerProviderDecoratorCheck from './consumer-provider-decorator-check'; 23import ComponentV2StateUsageValidation from './componentV2-state-usage-validation'; 24import ConstructParameterLiteral from './construct-parameter-literal'; 25import CustomDialogMissingController from './custom-dialog-missing-controller'; 26import DecoratorsInUIComponentOnly from './decorators-in-ui-component-only'; 27import EntryLoacalStorageCheck from './entry-localstorage-check'; 28import EntryStructNoExport from './entry-struct-no-export'; 29import LocalBuilderCheck from './local-builder-check'; 30import MonitorDecoratorCheck from './monitor-decorator-check'; 31import NestedRelationship from './nested-relationship'; 32import NoChildInButton from './no-child-in-button'; 33import NoDuplicateDecorators from './no-duplicate-decorators'; 34import NoDuplicateEntry from './no-duplicate-entry'; 35import NoDuplicatePreview from './no-duplicate-preview'; 36import NoDuplicateStateManager from './no-duplicate-state-manager'; 37import NoPropLinkObjectlinkInEntry from './no-prop-link-objectlink-in-entry'; 38import NoSameAsBuiltInAttribute from './no-same-as-built-in-attribute'; 39import ReuseAttributeCheck from './reuse-attribute-check'; 40import StructMissingDecorator from './struct-missing-decorator'; 41import StructPropertyDecorator from './struct-property-decorator'; 42import StructVariableInitialization from './struct-variable-initialization'; 43import TrackDecoratorCheck from './track-decorator-check'; 44import TypeDecoratorCheck from './type-decorator-check'; 45import ValidateBuildInStruct from './validate-build-in-struct'; 46import VariableInitializationViaComponentCons from './variable-initialization-via-component-cons'; 47import WatchDecoratorFunction from './watch-decorator-function'; 48import WatchDecoratorRegular from './watch-decorator-regular'; 49import WrapBuilderCheck from './wrap-builder-check'; 50import ObservedHeritageCompatibleCheck from './observed-heritage-compatible-check'; 51import ObservedObservedV2 from './observed-observedV2-check'; 52import ObservedV2TraceUsageValidation from './observedV2-trace-usage-validation'; 53import OnceDecoratorCheck from './once-decorator-check'; 54import OneDecoratorOnFunctionMethod from './one-decorator-on-function-method'; 55import OldNewDecoratorMixUseCheck from './old-new-decorator-mix-use-check'; 56 57const rules: UISyntaxRule[] = [ 58 BuildRootNode, 59 CheckConstructPrivateParameter, 60 CheckDecoratedPropertyType, 61 ComponentComponentV2MixUseCheck, 62 ComponentV2MixCheck, 63 ConsumerProviderDecoratorCheck, 64 ComponentV2StateUsageValidation, 65 ConstructParameterLiteral, 66 CustomDialogMissingController, 67 DecoratorsInUIComponentOnly, 68 EntryLoacalStorageCheck, 69 EntryStructNoExport, 70 LocalBuilderCheck, 71 MonitorDecoratorCheck, 72 NestedRelationship, 73 NoChildInButton, 74 NoDuplicateDecorators, 75 NoDuplicateEntry, 76 NoDuplicatePreview, 77 NoDuplicateStateManager, 78 NoPropLinkObjectlinkInEntry, 79 NoSameAsBuiltInAttribute, 80 ReuseAttributeCheck, 81 StructMissingDecorator, 82 StructPropertyDecorator, 83 StructVariableInitialization, 84 TrackDecoratorCheck, 85 TypeDecoratorCheck, 86 ValidateBuildInStruct, 87 VariableInitializationViaComponentCons, 88 WatchDecoratorFunction, 89 WatchDecoratorRegular, 90 WrapBuilderCheck, 91 ObservedHeritageCompatibleCheck, 92 ObservedObservedV2, 93 ObservedV2TraceUsageValidation, 94 OnceDecoratorCheck, 95 OneDecoratorOnFunctionMethod, 96 OldNewDecoratorMixUseCheck, 97]; 98 99export default rules; 100