@angular-eslint/eslint-plugin-template 16.0.4-alpha.6 → 16.0.4-alpha.8

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.
@@ -98,6 +98,12 @@ function isNil(value) {
98
98
  function isString(value) {
99
99
  return typeof value == 'string';
100
100
  }
101
+ function isMixed(value) {
102
+ return isString(value) && value === 'mixed';
103
+ }
104
+ function isTristate(value) {
105
+ return isMixed(value) || isBooleanLike(value) || isNil(value);
106
+ }
101
107
  function isValidAriaPropertyValue({ allowundefined, type, values }, attributeValue) {
102
108
  if (allowundefined && isNil(attributeValue))
103
109
  return true;
@@ -105,7 +111,7 @@ function isValidAriaPropertyValue({ allowundefined, type, values }, attributeVal
105
111
  case 'boolean':
106
112
  return isBooleanLike(attributeValue);
107
113
  case 'tristate':
108
- return isBooleanLike(attributeValue) || isNil(attributeValue);
114
+ return isTristate(attributeValue);
109
115
  case 'id':
110
116
  case 'idlist':
111
117
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin-template",
3
- "version": "16.0.4-alpha.6+94e4d4e",
3
+ "version": "16.0.4-alpha.8+e7c762a",
4
4
  "description": "ESLint plugin for Angular Templates",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -17,8 +17,8 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "dependencies": {
20
- "@angular-eslint/bundled-angular-compiler": "16.0.4-alpha.6+94e4d4e",
21
- "@angular-eslint/utils": "16.0.4-alpha.6+94e4d4e",
20
+ "@angular-eslint/bundled-angular-compiler": "16.0.4-alpha.8+e7c762a",
21
+ "@angular-eslint/utils": "16.0.4-alpha.8+e7c762a",
22
22
  "@typescript-eslint/type-utils": "5.59.8",
23
23
  "@typescript-eslint/utils": "5.59.8",
24
24
  "aria-query": "5.1.3",
@@ -31,5 +31,5 @@
31
31
  "eslint": "^7.20.0 || ^8.0.0",
32
32
  "typescript": "*"
33
33
  },
34
- "gitHead": "94e4d4e88f91d262baed21c42a52ad0c823970fa"
34
+ "gitHead": "e7c762a33177fd915f5c3c9cb3a36292ba126e61"
35
35
  }