@angular-eslint/eslint-plugin-template 16.2.1-alpha.7 → 17.0.0-alpha.0

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.
@@ -11,7 +11,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
11
11
  type: 'suggestion',
12
12
  docs: {
13
13
  description: '[Accessibility] Enforces alternate text for elements which require the alt, aria-label, aria-labelledby attributes.',
14
- recommended: false,
15
14
  },
16
15
  schema: [],
17
16
  messages: {
@@ -23,7 +23,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
23
23
  type: 'layout',
24
24
  docs: {
25
25
  description: 'Ensures that HTML attributes and Angular bindings are sorted based on an expected order',
26
- recommended: false,
27
26
  },
28
27
  fixable: 'code',
29
28
  schema: [
@@ -37,6 +36,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
37
36
  order: {
38
37
  type: 'array',
39
38
  items: {
39
+ type: 'string',
40
40
  enum: DEFAULT_OPTIONS.order,
41
41
  },
42
42
  default: DEFAULT_OPTIONS.order,
@@ -13,7 +13,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
13
13
  type: 'suggestion',
14
14
  docs: {
15
15
  description: 'Ensures that the two-way data binding syntax is correct',
16
- recommended: 'error',
16
+ recommended: 'recommended',
17
17
  },
18
18
  fixable: 'code',
19
19
  schema: [],
@@ -15,7 +15,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
15
15
  type: 'suggestion',
16
16
  docs: {
17
17
  description: 'Ensures that a button has a valid type specified',
18
- recommended: false,
19
18
  },
20
19
  schema: [],
21
20
  messages: {
@@ -14,7 +14,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
14
14
  type: 'suggestion',
15
15
  docs: {
16
16
  description: '[Accessibility] Ensures that the click event is accompanied with at least one key event keyup, keydown or keypress.',
17
- recommended: false,
18
17
  },
19
18
  schema: [],
20
19
  messages: {
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: 'The conditional complexity should not exceed a rational limit',
15
- recommended: false,
16
15
  },
17
16
  schema: [
18
17
  {
@@ -11,7 +11,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
11
11
  type: 'suggestion',
12
12
  docs: {
13
13
  description: `Checks cyclomatic complexity against a specified limit. It is a quantitative measure of the number of linearly independent paths through a program's source code`,
14
- recommended: false,
15
14
  },
16
15
  schema: [
17
16
  {
@@ -22,7 +22,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
22
22
  type: 'suggestion',
23
23
  docs: {
24
24
  description: '[Accessibility] Ensures that the heading, anchor and button elements have content in it',
25
- recommended: false,
26
25
  },
27
26
  schema: [
28
27
  {
@@ -13,7 +13,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
13
13
  type: 'suggestion',
14
14
  docs: {
15
15
  description: 'Requires `===` and `!==` in place of `==` and `!=`',
16
- recommended: 'error',
16
+ recommended: 'recommended',
17
17
  },
18
18
  hasSuggestions: true,
19
19
  fixable: 'code',
@@ -70,7 +70,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
70
70
  'texts. ' +
71
71
  'Can also check for texts without i18n attribute, elements that do not ' +
72
72
  'use custom ID (@@) feature and duplicate custom IDs',
73
- recommended: false,
74
73
  },
75
74
  fixable: 'code',
76
75
  hasSuggestions: true,
@@ -16,7 +16,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
16
16
  type: 'suggestion',
17
17
  docs: {
18
18
  description: '[Accessibility] Ensures that elements with interactive handlers like `(click)` are focusable.',
19
- recommended: false,
20
19
  },
21
20
  schema: [],
22
21
  messages: {
@@ -26,7 +26,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
26
26
  type: 'suggestion',
27
27
  docs: {
28
28
  description: '[Accessibility] Ensures that a label element/component is associated with a form element',
29
- recommended: false,
30
29
  },
31
30
  schema: [
32
31
  {
@@ -13,7 +13,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
13
13
  type: 'suggestion',
14
14
  docs: {
15
15
  description: `[Accessibility] Ensures that the mouse events \`${"mouseout" /* MouseEvents.MouseOut */}\` and \`${"mouseover" /* MouseEvents.MouseOver */}\` are accompanied by \`${"focus" /* KeyEvents.Focus */}\` and \`${"blur" /* KeyEvents.Blur */}\` events respectively. Coding for the keyboard is important for users with physical disabilities who cannot use a mouse, AT compatibility, and screenreader users. See more at ${STYLE_GUIDE_LINK}`,
16
- recommended: false,
17
16
  },
18
17
  schema: [],
19
18
  messages: {
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: `The use of "${ANY_TYPE_CAST_FUNCTION_NAME}" nullifies the compile-time benefits of Angular's type system`,
15
- recommended: false,
16
15
  },
17
16
  hasSuggestions: true,
18
17
  schema: [],
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: '[Accessibility] Ensures that the `autofocus` attribute is not used',
15
- recommended: false,
16
15
  },
17
16
  fixable: 'code',
18
17
  schema: [],
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: 'Disallows calling expressions in templates, except for output handlers',
15
- recommended: false,
16
15
  },
17
16
  schema: [
18
17
  {
@@ -10,7 +10,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
10
10
  type: 'suggestion',
11
11
  docs: {
12
12
  description: '[Accessibility] Enforces that no distracting elements are used',
13
- recommended: false,
14
13
  },
15
14
  fixable: 'code',
16
15
  schema: [],
@@ -16,7 +16,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
16
16
  type: 'problem',
17
17
  docs: {
18
18
  description: 'Ensures that there are no duplicate input properties or output event listeners',
19
- recommended: false,
20
19
  },
21
20
  hasSuggestions: true,
22
21
  schema: [
@@ -14,7 +14,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
14
14
  type: 'suggestion',
15
15
  docs: {
16
16
  description: 'Disallows the use of inline styles in HTML templates',
17
- recommended: false,
18
17
  },
19
18
  schema: [
20
19
  {
@@ -10,7 +10,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
10
10
  type: 'suggestion',
11
11
  docs: {
12
12
  description: 'Ensures that property-binding is used instead of interpolation in attributes.',
13
- recommended: false,
14
13
  },
15
14
  schema: [],
16
15
  messages: {
@@ -10,7 +10,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
10
10
  type: 'suggestion',
11
11
  docs: {
12
12
  description: 'Ensures that async pipe results are not negated',
13
- recommended: 'error',
13
+ recommended: 'recommended',
14
14
  },
15
15
  hasSuggestions: true,
16
16
  schema: [],
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: 'Ensures that the `tabindex` attribute is not positive',
15
- recommended: false,
16
15
  },
17
16
  hasSuggestions: true,
18
17
  schema: [],
@@ -10,7 +10,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
10
10
  type: 'suggestion',
11
11
  docs: {
12
12
  description: 'Ensures ngSrc is used instead of src for img elements',
13
- recommended: false,
14
13
  },
15
14
  schema: [],
16
15
  messages: {
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'layout',
13
13
  docs: {
14
14
  description: 'Ensures that self-closing tags are used for elements with a closing tag but no content.',
15
- recommended: false,
16
15
  },
17
16
  fixable: 'code',
18
17
  schema: [],
@@ -14,7 +14,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
14
14
  type: 'suggestion',
15
15
  docs: {
16
16
  description: '[Accessibility] Ensures elements with ARIA roles have all required properties for that role.',
17
- recommended: false,
18
17
  },
19
18
  hasSuggestions: true,
20
19
  schema: [],
@@ -12,7 +12,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: '[Accessibility] Ensures that the `scope` attribute is only used on the `<th>` element',
15
- recommended: false,
16
15
  },
17
16
  fixable: 'code',
18
17
  schema: [],
@@ -11,7 +11,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
11
11
  type: 'suggestion',
12
12
  docs: {
13
13
  description: 'Ensures trackBy function is used',
14
- recommended: false,
15
14
  },
16
15
  schema: [
17
16
  {
@@ -14,7 +14,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
14
14
  type: 'suggestion',
15
15
  docs: {
16
16
  description: '[Accessibility] Ensures that correct ARIA attributes and respective values are used',
17
- recommended: false,
18
17
  },
19
18
  hasSuggestions: true,
20
19
  schema: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin-template",
3
- "version": "16.2.1-alpha.7+354d394",
3
+ "version": "17.0.0-alpha.0",
4
4
  "description": "ESLint plugin for Angular Templates",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -17,19 +17,19 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "dependencies": {
20
- "@angular-eslint/bundled-angular-compiler": "16.2.1-alpha.7+354d394",
21
- "@angular-eslint/utils": "16.2.1-alpha.7+354d394",
22
- "@typescript-eslint/type-utils": "5.62.0",
23
- "@typescript-eslint/utils": "5.62.0",
20
+ "@angular-eslint/bundled-angular-compiler": "17.0.0-alpha.0",
21
+ "@angular-eslint/utils": "17.0.0-alpha.0",
22
+ "@typescript-eslint/type-utils": "6.10.0",
23
+ "@typescript-eslint/utils": "6.10.0",
24
24
  "aria-query": "5.3.0",
25
25
  "axobject-query": "3.2.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/aria-query": "5.0.2"
28
+ "@types/aria-query": "5.0.3"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "eslint": "^7.20.0 || ^8.0.0",
32
32
  "typescript": "*"
33
33
  },
34
- "gitHead": "354d394d2ea866b4f21cbbad84d84b2e102066f5"
34
+ "gitHead": "e0478be1ae5b9010ad1d74eac4d06511250bf13f"
35
35
  }