salesforce / eslint-plugin-lwc

Official ESLint rules for LWC
MIT License
98 stars 32 forks source link

Extend no-deprecated rule to flag up more APIs #137

Open geoffswift opened 1 year ago

geoffswift commented 1 year ago

Various lightning APIs are deprecated/unsupported and their usage would ideally be flagged up by the rule no-deprecated. Examples include...

import { getRecordUi } from 'lightning/uiRecordApi';

https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-record-ui.html#usage

import { getRecordNotifyChange } from 'lightning/uiRecordApi';

https://developer.salesforce.com/docs/platform/lwc/guide/reference-get-record-notify.html

import { getListUi } from "lightning/uiListApi";

https://developer.salesforce.com/docs/platform/lwc/guide/reference-get-list-ui.html