alfresco-ng2-components/docs/eslint-angular/rules/use-none-component-view-encapsulation.md
AleksanderSklorz 86e9f3f22e
[ACS-5290] create eslint rule to ensure components use none value for encapsulation (#8585)
* ACS-5290 Create rule which prevent using different encapsulation in components than None

* ACS-5290 Added documentation

* ACS-5290 Updated scripts

* ACS-5290 Updated documentation

* ACS-5290 Added autofix

* ACS-5290 Formated code

* ACS-5290 Fixed lint - removed redundant comma

* ACS-5290 Renaming

* ACS-5290 Renaming
2023-06-02 08:04:50 +02:00

674 B

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Use none component view encapsulation v6.0.0 Active 2023-05-23

Use none component view encapsulation

Custom ESLint rule which check if component uses ViewEncapsulation.None. It has been implemented because None encapsulation makes themes styling easier. It also allows to autofix.

Basic Usage

Put this rule in eslintrc.json in rules.

{
  "rules": {
    "@alfresco/eslint-angular/use-none-component-view-encapsulation": "error"
  }
}