@dialpad/eslint-plugin-dialtone 1.11.1 → 1.11.2

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.
@@ -67,10 +67,16 @@ module.exports = {
67
67
  return {
68
68
  ImportDeclaration(node) {
69
69
  let foundIndex;
70
+ const importPath = node.source.value.toLowerCase();
71
+
72
+ // Skip Dialtone's own component imports to avoid false positives
73
+ if (importPath.includes('@dialpad/dialtone')) {
74
+ return;
75
+ }
70
76
 
71
77
  deprecatedComponents.forEach(item => {
72
78
  const regex = new RegExp(`^.*/${item.fileName}(?:\\.vue)?$`, 'g');
73
- foundIndex = node.source.value.toLowerCase().search(regex);
79
+ foundIndex = importPath.search(regex);
74
80
 
75
81
  if (foundIndex !== -1) {
76
82
  context.report({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialpad/eslint-plugin-dialtone",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "dialtone eslint plugin",
5
5
  "keywords": [
6
6
  "Dialpad",