@taiga-ui/eslint-plugin-experience-next 0.314.0 → 0.316.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.
@@ -7,44 +7,45 @@ declare const _default: ({
7
7
  } | {
8
8
  files: string[];
9
9
  plugins: {
10
- '@html-eslint': typeof html;
10
+ html: typeof html;
11
11
  };
12
+ language: string;
12
13
  languageOptions: {
13
14
  parser: typeof htmlParser;
14
15
  };
15
16
  rules: {
16
- '@html-eslint/indent': string;
17
- '@html-eslint/no-extra-spacing-attrs': string;
18
- '@html-eslint/no-multiple-h1': string;
19
- '@html-eslint/no-restricted-attr-values': (string | {
17
+ 'html/indent': string;
18
+ 'html/no-extra-spacing-attrs': string;
19
+ 'html/no-multiple-h1': string;
20
+ 'html/no-restricted-attr-values': (string | {
20
21
  attrPatterns: string[];
21
22
  attrValuePatterns: string[];
22
23
  message: string;
23
24
  })[];
24
- '@html-eslint/require-closing-tags': string;
25
- '@html-eslint/require-img-alt': (string | {
25
+ 'html/require-closing-tags': string;
26
+ 'html/require-img-alt': (string | {
26
27
  substitute: string[];
27
28
  })[];
28
- '@html-eslint/use-baseline': string;
29
- "@html-eslint/require-lang": "error";
30
- "@html-eslint/require-doctype": "error";
31
- "@html-eslint/require-title": "error";
32
- "@html-eslint/attrs-newline": "error";
33
- "@html-eslint/element-newline": ["error", {
29
+ 'html/use-baseline': string;
30
+ "html/require-lang": "error";
31
+ "html/require-doctype": "error";
32
+ "html/require-title": "error";
33
+ "html/attrs-newline": "error";
34
+ "html/element-newline": ["error", {
34
35
  inline: string[];
35
36
  }];
36
- "@html-eslint/no-duplicate-id": "error";
37
- "@html-eslint/require-li-container": "error";
38
- "@html-eslint/quotes": "error";
39
- "@html-eslint/no-obsolete-tags": "error";
40
- "@html-eslint/no-duplicate-attrs": "error";
41
- "@html-eslint/no-duplicate-in-head": "error";
37
+ "html/no-duplicate-id": "error";
38
+ "html/require-li-container": "error";
39
+ "html/quotes": "error";
40
+ "html/no-obsolete-tags": "error";
41
+ "html/no-duplicate-attrs": "error";
42
+ "html/no-duplicate-in-head": "error";
42
43
  };
43
44
  ignores?: undefined;
44
45
  } | {
45
46
  files: string[];
46
47
  rules: {
47
- '@html-eslint/no-restricted-attr-values': string;
48
+ 'html/no-restricted-attr-values': string;
48
49
  };
49
50
  ignores?: undefined;
50
51
  })[];
package/index.cjs.js CHANGED
@@ -39,20 +39,19 @@ var htmlEslint = [
39
39
  ],
40
40
  },
41
41
  {
42
- ...html.configs['flat/recommended'],
42
+ ...html.configs.recommended,
43
43
  files: ['**/*.html'],
44
- plugins: {
45
- '@html-eslint': html,
46
- },
44
+ plugins: { html },
45
+ language: 'html/html',
47
46
  languageOptions: {
48
47
  parser: htmlParser,
49
48
  },
50
49
  rules: {
51
- ...html.configs['flat/recommended'].rules,
52
- '@html-eslint/indent': 'off', // prettier conflicts
53
- '@html-eslint/no-extra-spacing-attrs': 'off', // prettier conflicts
54
- '@html-eslint/no-multiple-h1': 'off',
55
- '@html-eslint/no-restricted-attr-values': [
50
+ ...html.configs.recommended.rules,
51
+ 'html/indent': 'off', // prettier conflicts
52
+ 'html/no-extra-spacing-attrs': 'off', // prettier conflicts
53
+ 'html/no-multiple-h1': 'off',
54
+ 'html/no-restricted-attr-values': [
56
55
  'error',
57
56
  {
58
57
  attrPatterns: ['iconStart', 'iconEnd', 'icon'],
@@ -60,20 +59,20 @@ var htmlEslint = [
60
59
  message: 'Icons must be configured, for example: \n<button tuiIconButton [iconStart]="options.iconStart" [iconEnd]="options.iconEnd" /> \n<tui-icon [icon]="options.icon" />',
61
60
  },
62
61
  ],
63
- '@html-eslint/require-closing-tags': 'off', // prettier conflicts
64
- '@html-eslint/require-img-alt': [
62
+ 'html/require-closing-tags': 'off', // prettier conflicts
63
+ 'html/require-img-alt': [
65
64
  'error',
66
65
  {
67
66
  substitute: ['[alt]', '[attr.alt]'],
68
67
  },
69
68
  ],
70
- '@html-eslint/use-baseline': 'off',
69
+ 'html/use-baseline': 'off',
71
70
  },
72
71
  },
73
72
  {
74
73
  files: ['**/demo/**/*.html'],
75
74
  rules: {
76
- '@html-eslint/no-restricted-attr-values': 'off',
75
+ 'html/no-restricted-attr-values': 'off',
77
76
  },
78
77
  },
79
78
  ];
@@ -987,6 +986,7 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
987
986
  'unicorn/no-unnecessary-polyfills': 'error',
988
987
  'unicorn/no-useless-spread': 'error',
989
988
  'unicorn/prefer-logical-operator-over-ternary': 'error',
989
+ 'unicorn/prefer-query-selector': 'error',
990
990
  'unicorn/prefer-set-size': 'error',
991
991
  'unicorn/prefer-string-raw': 'error',
992
992
  'unicorn/prefer-string-replace-all': 'error',
@@ -1007,7 +1007,12 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require$1(
1007
1007
  '@angular-eslint/template/button-has-type': [
1008
1008
  'error',
1009
1009
  {
1010
- ignoreWithDirectives: ['tuiAccordion', 'tuiOption', 'tuiTab'],
1010
+ ignoreWithDirectives: [
1011
+ 'tuiAccordion',
1012
+ 'tuiOption',
1013
+ 'tuiStep',
1014
+ 'tuiTab',
1015
+ ],
1011
1016
  },
1012
1017
  ],
1013
1018
  '@angular-eslint/template/elements-content': [
package/index.esm.js CHANGED
@@ -34,20 +34,19 @@ var htmlEslint = [
34
34
  ],
35
35
  },
36
36
  {
37
- ...html.configs['flat/recommended'],
37
+ ...html.configs.recommended,
38
38
  files: ['**/*.html'],
39
- plugins: {
40
- '@html-eslint': html,
41
- },
39
+ plugins: { html },
40
+ language: 'html/html',
42
41
  languageOptions: {
43
42
  parser: htmlParser,
44
43
  },
45
44
  rules: {
46
- ...html.configs['flat/recommended'].rules,
47
- '@html-eslint/indent': 'off', // prettier conflicts
48
- '@html-eslint/no-extra-spacing-attrs': 'off', // prettier conflicts
49
- '@html-eslint/no-multiple-h1': 'off',
50
- '@html-eslint/no-restricted-attr-values': [
45
+ ...html.configs.recommended.rules,
46
+ 'html/indent': 'off', // prettier conflicts
47
+ 'html/no-extra-spacing-attrs': 'off', // prettier conflicts
48
+ 'html/no-multiple-h1': 'off',
49
+ 'html/no-restricted-attr-values': [
51
50
  'error',
52
51
  {
53
52
  attrPatterns: ['iconStart', 'iconEnd', 'icon'],
@@ -55,20 +54,20 @@ var htmlEslint = [
55
54
  message: 'Icons must be configured, for example: \n<button tuiIconButton [iconStart]="options.iconStart" [iconEnd]="options.iconEnd" /> \n<tui-icon [icon]="options.icon" />',
56
55
  },
57
56
  ],
58
- '@html-eslint/require-closing-tags': 'off', // prettier conflicts
59
- '@html-eslint/require-img-alt': [
57
+ 'html/require-closing-tags': 'off', // prettier conflicts
58
+ 'html/require-img-alt': [
60
59
  'error',
61
60
  {
62
61
  substitute: ['[alt]', '[attr.alt]'],
63
62
  },
64
63
  ],
65
- '@html-eslint/use-baseline': 'off',
64
+ 'html/use-baseline': 'off',
66
65
  },
67
66
  },
68
67
  {
69
68
  files: ['**/demo/**/*.html'],
70
69
  rules: {
71
- '@html-eslint/no-restricted-attr-values': 'off',
70
+ 'html/no-restricted-attr-values': 'off',
72
71
  },
73
72
  },
74
73
  ];
@@ -982,6 +981,7 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
982
981
  'unicorn/no-unnecessary-polyfills': 'error',
983
982
  'unicorn/no-useless-spread': 'error',
984
983
  'unicorn/prefer-logical-operator-over-ternary': 'error',
984
+ 'unicorn/prefer-query-selector': 'error',
985
985
  'unicorn/prefer-set-size': 'error',
986
986
  'unicorn/prefer-string-raw': 'error',
987
987
  'unicorn/prefer-string-replace-all': 'error',
@@ -1002,7 +1002,12 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
1002
1002
  '@angular-eslint/template/button-has-type': [
1003
1003
  'error',
1004
1004
  {
1005
- ignoreWithDirectives: ['tuiAccordion', 'tuiOption', 'tuiTab'],
1005
+ ignoreWithDirectives: [
1006
+ 'tuiAccordion',
1007
+ 'tuiOption',
1008
+ 'tuiStep',
1009
+ 'tuiTab',
1010
+ ],
1006
1011
  },
1007
1012
  ],
1008
1013
  '@angular-eslint/template/elements-content': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.314.0",
3
+ "version": "0.316.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./index.cjs.js",
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "peerDependencies": {
12
12
  "@eslint/compat": "^1.3.2",
13
- "@html-eslint/eslint-plugin": "^0.45.0",
14
- "@html-eslint/parser": "^0.45.0",
13
+ "@html-eslint/eslint-plugin": "^0.46.0",
14
+ "@html-eslint/parser": "^0.46.0",
15
15
  "@smarttools/eslint-plugin-rxjs": "^1.0.22",
16
16
  "@stylistic/eslint-plugin": "^5.2.3",
17
17
  "@types/glob": "*",
@@ -28,7 +28,7 @@
28
28
  "eslint-plugin-prettier": "^5.5.4",
29
29
  "eslint-plugin-promise": "^7.2.1",
30
30
  "eslint-plugin-simple-import-sort": "^12.1.1",
31
- "eslint-plugin-sonarjs": "^3.0.4",
31
+ "eslint-plugin-sonarjs": "^3.0.5",
32
32
  "eslint-plugin-unicorn": "^60.0.0",
33
33
  "eslint-plugin-unused-imports": "^4.2.0",
34
34
  "glob": "*",