salesforce / eslint-config-lwc

Opinionated ESLint configurations for LWC projects
MIT License
112 stars 35 forks source link

feat: add support for pattern matching in rule no-unexpected-wire-adapter-usages #98

Closed seckardt closed 2 years ago

seckardt commented 2 years ago

Upgrade to @lwc/eslint-plugin-lwc v1.3.0 to benefit from the pattern matching support that got added recently. Adjust the base.js configuration to whitelist the experience and commerce API related wire adapters in the rule @lwc/lwc/no-unknown-wire-adapters and respectively blacklist the same adapters in the rule @lwc/lwc/no-unexpected-wire-adapter-usages.