@yoo-digital/eslint-plugin-angular 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# YOO ESLint plugin Angular
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Aim
|
|
4
4
|
|
|
5
|
-
Here should live all custom Angular lint rules that eslint does not already provide.
|
|
5
|
+
Here should live all ***custom Angular lint rules*** that eslint does not already provide.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Use
|
|
8
8
|
|
|
9
9
|
Wrong code is yellow/red underlined in VScode, it can also be raised running : `npm run lint`, autofixing them with : `npm run lint:fix`
|
|
10
10
|
|
|
@@ -15,6 +15,7 @@ TypeScript rule that enforces `booleanAttribute` transform on boolean inputs
|
|
|
15
15
|
### Setting
|
|
16
16
|
```json
|
|
17
17
|
{
|
|
18
|
+
"files": ['**/*.ts'],
|
|
18
19
|
"rules": {
|
|
19
20
|
"@yoo-digital/eslint-plugin-angular/boolean-attribute-shorthand": "error"
|
|
20
21
|
}
|
|
@@ -47,6 +48,7 @@ HTML rule that enforces shorthand syntax for `[attr]="true"` bindings
|
|
|
47
48
|
### Setting
|
|
48
49
|
```json
|
|
49
50
|
{
|
|
51
|
+
"files": ['**/*.html'],
|
|
50
52
|
"rules": {
|
|
51
53
|
"@yoo-digital/eslint-plugin-angular/boolean-attribute-shorthand": "error"
|
|
52
54
|
}
|
package/package.json
CHANGED