@taiga-ui/eslint-plugin-experience-next 0.504.0 → 0.505.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 +7 -6
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -1509,6 +1509,7 @@ var taigaSpecific = defineConfig([
1509
1509
  {
1510
1510
  files: pattern('**/*.html'),
1511
1511
  ignores: [
1512
+ '**/proprietary/**',
1512
1513
  // Angular ESLint virtual files for inline templates in spec/cy files
1513
1514
  '**/*.spec.ts/**/*.html',
1514
1515
  '**/*.cy.ts/**/*.html',
@@ -248441,21 +248442,21 @@ const rule$K = createRule({
248441
248442
  getExcessParentPathReplacement(moduleSpecifierPath, resolved.resolvedFileName));
248442
248443
  }
248443
248444
  function checkUselessPathSegments(source) {
248444
- if (!shouldCheckUselessPathSegments || !source.value.startsWith('.')) {
248445
+ if (!shouldCheckUselessPathSegments ||
248446
+ !source.value.startsWith('.') ||
248447
+ splitModuleSpecifierQuery(source.value).query) {
248445
248448
  return;
248446
248449
  }
248447
- const parts = splitModuleSpecifierQuery(source.value);
248448
- const proposedPath = getUselessPathSegmentsReplacement(parts.path);
248450
+ const proposedPath = getUselessPathSegmentsReplacement(source.value);
248449
248451
  if (!proposedPath) {
248450
248452
  return;
248451
248453
  }
248452
- const proposedModuleSpecifier = `${proposedPath}${parts.query}`;
248453
248454
  context.report({
248454
248455
  data: {
248455
248456
  moduleSpecifier: source.value,
248456
- proposedPath: proposedModuleSpecifier,
248457
+ proposedPath,
248457
248458
  },
248458
- fix: (fixer) => fixer.replaceText(source, quoteModuleSpecifier(source, proposedModuleSpecifier)),
248459
+ fix: (fixer) => fixer.replaceText(source, quoteModuleSpecifier(source, proposedPath)),
248459
248460
  messageId: 'uselessPathSegments',
248460
248461
  node: source,
248461
248462
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.504.0",
3
+ "version": "0.505.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "repository": {
6
6
  "type": "git",