lwc/no-unknown-wire-adapters rule error message is not user friendly
jodarove opened this issue · 0 comments
jodarove commented
When there's some invalid code for lwc/no-unknown-wire-adapters the message is not very user friendly.
Example:
/*eslint lwc/no-unexpected-wire-adapters: ["error", {"adapters": [{ "module": "lightning/*", "identifier": "*" }]}]*/
import { wire } from 'lwc';
import CustomWireAdapter from 'c/wireAdapters';
// ^^^^^^^^^^^^^^^^^ "default" from "c/wireAdapters" is not a known adapter.
class Foo {
@wire(CustomWireAdapter) foo; // invalid "default" from "c/wireAdapters" is not a known adapter
}
The message "CustomWireAdapter" from "c/wireAdapters" is not a known adapter.
would be more user friendly