@taiga-ui/eslint-plugin-experience-next 0.495.0 → 0.497.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 +8 -27
  2. package/package.json +3 -5
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import fs, { readFileSync } from 'node:fs';
1
+ import fs, { globSync, readFileSync } from 'node:fs';
2
2
  import markdown from '@eslint/markdown';
3
3
  import rxjs from '@smarttools/eslint-plugin-rxjs';
4
4
  import stylistic from '@stylistic/eslint-plugin';
@@ -24,7 +24,6 @@ import unusedImports from 'eslint-plugin-unused-imports';
24
24
  import globals from 'globals';
25
25
  import tseslint from 'typescript-eslint';
26
26
  import { createRequire } from 'node:module';
27
- import { globSync } from 'glob';
28
27
  import require$$0$1 from 'eslint';
29
28
  import require$$1 from 'eslint/use-at-your-own-risk';
30
29
  import path from 'node:path';
@@ -1480,10 +1479,10 @@ var recommended = defineConfig([
1480
1479
  ]);
1481
1480
 
1482
1481
  const allPackageJSONs = globSync('**/package.json', {
1483
- ignore: ['**/node_modules/**', '**/dist/**'],
1482
+ exclude: ['**/node_modules/**', '**/dist/**'],
1484
1483
  }).filter((path) => !readJSON(path).private);
1485
1484
  function pattern(type) {
1486
- return allPackageJSONs.map((p) => p.replaceAll(/\\+/g, '/').replace('package.json', type));
1485
+ return allPackageJSONs.map((p) => p.replaceAll(/\\+/g, '/').replace(/package\.json$/, type));
1487
1486
  }
1488
1487
  var taigaSpecific = defineConfig([
1489
1488
  {
@@ -1495,7 +1494,7 @@ var taigaSpecific = defineConfig([
1495
1494
  'error',
1496
1495
  {
1497
1496
  importFilter: allPackageJSONs
1498
- .map((path) => readJSON(path).name)
1497
+ .map((packageJsonPath) => readJSON(packageJsonPath).name)
1499
1498
  .filter(Boolean),
1500
1499
  strict: !!process.env.CI,
1501
1500
  },
@@ -253251,28 +253250,10 @@ function resolveRootEntryDirectory(importPath, fromFile, program) {
253251
253250
  * "schematics/collection.json" → "schematics"
253252
253251
  */
253253
253252
  function findNestedEntryPointRelativePaths(rootEntryDirectory) {
253254
- const ngPackageJsonFiles = globSync('**/ng-package.json', {
253255
- absolute: false,
253256
- cwd: rootEntryDirectory,
253257
- });
253258
- const collectionJsonFiles = globSync('**/collection.json', {
253259
- absolute: false,
253260
- cwd: rootEntryDirectory,
253261
- });
253262
- const directories = [];
253263
- for (const file of ngPackageJsonFiles) {
253264
- const normalized = file.replaceAll('\\', '/').replace(/\/ng-package\.json$/, '');
253265
- if (normalized && normalized !== '.') {
253266
- directories.push(normalized);
253267
- }
253268
- }
253269
- for (const file of collectionJsonFiles) {
253270
- const normalized = file.replaceAll('\\', '/').replace(/\/collection\.json$/, '');
253271
- if (normalized && normalized !== '.') {
253272
- directories.push(normalized);
253273
- }
253274
- }
253275
- return directories;
253253
+ const files = ['**/ng-package.json', '**/collection.json'].flatMap((pattern) => globSync(pattern, { cwd: rootEntryDirectory }));
253254
+ return files
253255
+ .map((file) => path.dirname(file).replaceAll('\\', '/'))
253256
+ .filter((directory) => directory && directory !== '.');
253276
253257
  }
253277
253258
  /**
253278
253259
  * For strict = false:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.495.0",
3
+ "version": "0.497.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,14 +27,13 @@
27
27
  ],
28
28
  "type": "module",
29
29
  "devDependencies": {
30
- "glob": "13.0.6"
30
+ "@typescript-eslint/rule-tester": "^8.59.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@eslint/compat": "^2.0.5",
34
34
  "@eslint/markdown": "^8.0.1",
35
35
  "@smarttools/eslint-plugin-rxjs": "^1.0.22",
36
36
  "@stylistic/eslint-plugin": "^5.10.0",
37
- "@types/glob": "*",
38
37
  "angular-eslint": "^20.7.0",
39
38
  "eslint": "^9.39.4",
40
39
  "eslint-config-prettier": "^10.1.7",
@@ -55,9 +54,8 @@
55
54
  "eslint-plugin-sonarjs": "^4.0.3",
56
55
  "eslint-plugin-unicorn": "^64.0.0",
57
56
  "eslint-plugin-unused-imports": "^4.4.1",
58
- "glob": "*",
59
57
  "globals": "^17.5.0",
60
- "typescript-eslint": "^8.59.0"
58
+ "typescript-eslint": "^8.59.1"
61
59
  },
62
60
  "publishConfig": {
63
61
  "access": "public"