@simplysm/lint 14.0.4 → 14.0.6
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 +20 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,3 +105,23 @@ export default [
|
|
|
105
105
|
},
|
|
106
106
|
];
|
|
107
107
|
```
|
|
108
|
+
|
|
109
|
+
### Customize `ng-template-sd-require-binding-attrs` options
|
|
110
|
+
|
|
111
|
+
```javascript
|
|
112
|
+
{
|
|
113
|
+
rules: {
|
|
114
|
+
"@simplysm/ng-template-sd-require-binding-attrs": ["error", {
|
|
115
|
+
selectorPrefixes: ["sd-", "app-"], // default: ["sd-"]
|
|
116
|
+
allowAttributes: ["id", "class", "style"], // default: ["id", "class", "style", "title", "tabindex", "role"]
|
|
117
|
+
allowAttributePrefixes: ["aria-", "data-"], // default: ["aria-", "data-", "sd-"]
|
|
118
|
+
}],
|
|
119
|
+
},
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Internal Utility
|
|
124
|
+
|
|
125
|
+
### `createRule`
|
|
126
|
+
|
|
127
|
+
Factory function for creating ESLint rules. Wraps `@typescript-eslint/utils` `RuleCreator` with auto-generated documentation URLs. This utility is used internally by all rule implementations but is **not publicly exported** via package entrypoints.
|