Releases: salesforce/eslint-config-lwc
Releases · salesforce/eslint-config-lwc
v2.2.0
v2.1.1
v2.1.0
v2.0.0
Breaking changes
- #61: Introduction of
@salesforce/eslint-plugin-lightningto the list of peer dependencies. This new plugin contains rules specific to the Salesforce Lightning Experience. - #64: Drop support of eslint v6.
New features
- #40: Introduction a new
i18nconfig. This config promotes the use of @salesforce/localizer as a best practice for I18N in LWC. It can be in conjunction with the existing configurations (eg.base,recommended,extended). - #61: Addition of
@salesforce/lightning/valid-apex-method-invocationto therecommendedconfig.
Improvements
- #63: Loosen the
eslint-plugin-importandeslint-plugin-jestpeer depency version.
v1.0.0
Breaking changes
- #58: Convert plugin dependencies to peer dependencies to match the ESLint programming model for plugins and shared configurations.
eslint-plugin-lwcas a dependency ofeslint-config-lwconly works when they become peers after being hoisted by a package manager. Since hoisting is an implementation detail that should not be relied upon, users must explicitly install plugins depended on by@salesforce/eslint-config-lwc.
Improvements
- #53: Configure the
no-unknown-wire-adaptersrule to ensure thatCartSummaryAdapteris a known wire adapter. - #56: Configure the
no-unexpected-wire-adapter-usagesrule to ensure that usage of theCartSummaryAdapterwire adapter is restricted.
Bug fixes
- #51: Disable the loading of babel configuration files. Doing so will avoid parsing errors when the configuration file uses the legacy decorators plugin.
v0.11.0-232.2
Bug fixes
- Enforces
commerce/cartApi:CartSummaryAdapterto be used only with@wiredecorator
v0.11.0-232.1
Bug fixes
- Use exact version
0.12.2-232.0instead of~0.12.2-232.0because this versioning scheme is not semver-compliant and will install0.12.2instead.
v0.11.0-232.0
Features
- Update
@lwc/eslint-plugin-lwctov0.12.2-232.0to include an update to theno-unknown-wire-adaptersrule. - #53: Add the
commerce/cartApi:CartSummaryAdapterto the known wire adapter list.