You can use JSDoc comments to mark deprecated code:
/**
* @deprecated The method should not be used
*/
export const oldFunc = () => {}
Also, this eslint rule can look through the deprecated methods and warn about their usage.
You can use JSDoc comments to mark deprecated code:
/**
* @deprecated The method should not be used
*/
export const oldFunc = () => {}
Also, this eslint rule can look through the deprecated methods and warn about their usage.