exadel-inc / esl

Lightweight and flexible UI component library based on web components technology for creating basic UX modules
https://esl-ui.com
MIT License
57 stars 9 forks source link

[🚀eslint]: add base rule to deprecate import paths #2015

Open ala-n opened 8 months ago

ala-n commented 8 months ago

As an ESL architect, I want to be able to show deprecated alternative paths for some of ESL module entities

E.g. :

import {attr, boolAttr, jsonAttr} `@exadel/esl/module/esl-base-element/core`; // Deprecated
import {attr, boolAttr, jsonAttr} `@exadel/esl/module/esl-mixin-element/core`; // Deprecated
import {attr, boolAttr, jsonAttr} `@exadel/esl/module/esl-utils/decorators`; // Expected full actual path

// Note in current example the paths are not deprecated, but deprecated retrieving some objects from them: 
import {ESLBaseElemnt} `@exadel/esl/module/esl-base-element/core`; // Actual and not deprecated
ala-n commented 2 weeks ago

Partially closed by https://github.com/exadel-inc/esl/pull/2429