@taiga-ui/eslint-plugin-experience-next 0.398.0 → 0.400.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.
Files changed (2) hide show
  1. package/index.esm.js +15 -5
  2. package/package.json +9 -8
package/index.esm.js CHANGED
@@ -11,9 +11,10 @@ import angular from 'angular-eslint';
11
11
  import compat from 'eslint-plugin-compat';
12
12
  import progress from 'eslint-plugin-file-progress';
13
13
  import jest from 'eslint-plugin-jest';
14
- import packageJson, { configs } from 'eslint-plugin-package-json';
14
+ import packageJson, { configs as configs$1 } from 'eslint-plugin-package-json';
15
15
  import playwright from 'eslint-plugin-playwright';
16
16
  import prettier from 'eslint-plugin-prettier';
17
+ import regexp, { configs } from 'eslint-plugin-regexp';
17
18
  import simpleImportSort from 'eslint-plugin-simple-import-sort';
18
19
  import sonarjs from 'eslint-plugin-sonarjs';
19
20
  import unicorn from 'eslint-plugin-unicorn';
@@ -244,6 +245,7 @@ var recommended = defineConfig([
244
245
  'decorator-position': require$1('eslint-plugin-decorator-position'),
245
246
  perfectionist: require$1('eslint-plugin-perfectionist'),
246
247
  prettier,
248
+ regexp,
247
249
  'simple-import-sort': simpleImportSort,
248
250
  sonarjs,
249
251
  unicorn,
@@ -255,6 +257,7 @@ var recommended = defineConfig([
255
257
  require$1('eslint-plugin-import').flatConfigs.typescript,
256
258
  require$1('eslint-plugin-promise').configs['flat/recommended'],
257
259
  compat.configs['flat/recommended'],
260
+ configs['flat/recommended'],
258
261
  eslint.configs.recommended,
259
262
  eslint.configs.recommended,
260
263
  tseslint.configs.all,
@@ -726,6 +729,13 @@ var recommended = defineConfig([
726
729
  'promise/no-callback-in-promise': 'off',
727
730
  'promise/no-nesting': 'off',
728
731
  'promise/param-names': 'error',
732
+ 'regexp/no-unused-capturing-group': [
733
+ 'error',
734
+ {
735
+ allowNamed: true,
736
+ fixable: true,
737
+ },
738
+ ],
729
739
  'simple-import-sort/exports': 'error',
730
740
  'simple-import-sort/imports': 'error',
731
741
  'sonarjs/no-identical-functions': 'error',
@@ -1029,7 +1039,7 @@ var recommended = defineConfig([
1029
1039
  {
1030
1040
  files: ['**/package.json'],
1031
1041
  plugins: { 'package-json': packageJson },
1032
- extends: [tseslint.configs.disableTypeChecked, configs.recommended],
1042
+ extends: [tseslint.configs.disableTypeChecked, configs$1.recommended],
1033
1043
  rules: {
1034
1044
  'package-json/require-description': ['error', { ignorePrivate: true }],
1035
1045
  'package-json/require-type': ['off', { ignorePrivate: true }],
@@ -1863,7 +1873,7 @@ function normalizeModuleSpecifier(moduleSpecifier) {
1863
1873
  return moduleSpecifier.replaceAll('\\', '/');
1864
1874
  }
1865
1875
  function stripKnownExtensions(filePathOrSpecifier) {
1866
- return filePathOrSpecifier.replace(/\.(d\.ts|ts|tsx|js|jsx|mjs|cjs)$/, '');
1876
+ return filePathOrSpecifier.replace(/\.(?:d\.ts|ts|tsx|js|jsx|mjs|cjs)$/, '');
1867
1877
  }
1868
1878
 
1869
1879
  const MESSAGE_ID$2 = 'no-href-with-router-link';
@@ -2678,7 +2688,7 @@ const rule$1 = createRule$2({
2678
2688
  const exception = exceptions.find((ex) => ex.from === importedAs);
2679
2689
  const short = exception
2680
2690
  ? exception.to
2681
- : importedAs.replace(/(Component|Directive)$/, '');
2691
+ : importedAs.replace(/(?:Component|Directive)$/, '');
2682
2692
  const fullText = sourceCode.getText();
2683
2693
  const regex = new RegExp(String.raw `\b${importedAs}\b`, 'g');
2684
2694
  const usageCount = (fullText.match(regex) || []).length;
@@ -2738,7 +2748,7 @@ const rule$1 = createRule$2({
2738
2748
  continue;
2739
2749
  }
2740
2750
  const importedClass = getImportedName(spec);
2741
- const matchesPattern = /^Tui[A-Z].*(Component|Directive)$/.test(importedClass) ||
2751
+ const matchesPattern = /^Tui[A-Z].*(?:Component|Directive)$/.test(importedClass) ||
2742
2752
  exceptions.some((exception) => exception.from === importedClass);
2743
2753
  if (matchesPattern) {
2744
2754
  importedFromTaiga[spec.local.name] = {
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.398.0",
3
+ "version": "0.400.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
  "type": "module",
7
7
  "devDependencies": {
8
- "@typescript-eslint/rule-tester": "8.53.1",
8
+ "@typescript-eslint/rule-tester": "8.54.0",
9
9
  "glob": "13.0.0"
10
10
  },
11
11
  "peerDependencies": {
12
12
  "@eslint/compat": "^2.0.1",
13
13
  "@eslint/markdown": "^7.5.1",
14
- "@html-eslint/eslint-plugin": "^0.53.0",
15
- "@html-eslint/parser": "^0.53.0",
14
+ "@html-eslint/eslint-plugin": "^0.54.0",
15
+ "@html-eslint/parser": "^0.54.0",
16
16
  "@smarttools/eslint-plugin-rxjs": "^1.0.22",
17
17
  "@stylistic/eslint-plugin": "^5.7.1",
18
18
  "@types/glob": "*",
19
- "@typescript-eslint/eslint-plugin": "^8.53.1",
19
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
20
20
  "angular-eslint": "^20.7.0",
21
21
  "eslint": "^9.39.2",
22
22
  "eslint-config-prettier": "^10.1.7",
@@ -31,13 +31,14 @@
31
31
  "eslint-plugin-playwright": "^2.5.1",
32
32
  "eslint-plugin-prettier": "^5.5.5",
33
33
  "eslint-plugin-promise": "^7.2.1",
34
+ "eslint-plugin-regexp": "^3.0.0",
34
35
  "eslint-plugin-simple-import-sort": "^12.1.1",
35
- "eslint-plugin-sonarjs": "^3.0.5",
36
+ "eslint-plugin-sonarjs": "^3.0.6",
36
37
  "eslint-plugin-unicorn": "^62.0.0",
37
38
  "eslint-plugin-unused-imports": "^4.3.0",
38
39
  "glob": "*",
39
- "globals": "^17.1.0",
40
- "typescript-eslint": "^8.53.1"
40
+ "globals": "^17.2.0",
41
+ "typescript-eslint": "^8.54.0"
41
42
  },
42
43
  "publishConfig": {
43
44
  "access": "public"