Wojciech Duda 0a1fd8dd2e
AAE-20779 add custom eslint rule for material selectors (#9427)
* AAE-20779 create custom eslint rule

* AAE-20779 add dynamic error messages depending on the filetype

* AAE-20779 update regex for classes

* AAE-20779 remove console log, fix default message

* AAE-20779 lint fix

* AAE-20779 simplified error messages
2024-03-14 14:52:48 +01:00

31 lines
1.2 KiB
TypeScript

/*!
* @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import useNoneEncapsulationRule, {
RULE_NAME as useNoneEncapsulationRuleName
} from './src/rules/use-none-component-view-encapsulation/use-none-component-view-encapsulation';
import noAngularMaterialSelectors, {
RULE_NAME as noAngularMaterialSelectorsRuleName
} from './src/rules/no-angular-material-selectors/no-angular-material-selectors';
export = {
rules: {
[useNoneEncapsulationRuleName]: useNoneEncapsulationRule,
[noAngularMaterialSelectorsRuleName]: noAngularMaterialSelectors
}
};