@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.
- package/index.esm.js +7 -6
- 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 ||
|
|
248445
|
+
if (!shouldCheckUselessPathSegments ||
|
|
248446
|
+
!source.value.startsWith('.') ||
|
|
248447
|
+
splitModuleSpecifierQuery(source.value).query) {
|
|
248445
248448
|
return;
|
|
248446
248449
|
}
|
|
248447
|
-
const
|
|
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
|
|
248457
|
+
proposedPath,
|
|
248457
248458
|
},
|
|
248458
|
-
fix: (fixer) => fixer.replaceText(source, quoteModuleSpecifier(source,
|
|
248459
|
+
fix: (fixer) => fixer.replaceText(source, quoteModuleSpecifier(source, proposedPath)),
|
|
248459
248460
|
messageId: 'uselessPathSegments',
|
|
248460
248461
|
node: source,
|
|
248461
248462
|
});
|