mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
Title: Use none component view encapsulation
|
||||
Added: v6.0.0
|
||||
Status: Active
|
||||
Last reviewed: 2023-05-23
|
||||
---
|
||||
|
||||
# [Use none component view encapsulation](../../../lib/eslint-angular/src/rules/use-none-component-view-encapsulation/use-none-component-view-encapsulation.ts "Defined in use-none-component-view-encapsulation.ts")
|
||||
|
||||
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.
|
||||
|
||||
```json
|
||||
{
|
||||
"rules": {
|
||||
"@alfresco/eslint-angular/use-none-component-view-encapsulation": "error"
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user