Skip to content

Releases: salesforce/eslint-config-lwc

v2.2.0

02 Sep 10:21
1723a55

Choose a tag to compare

New features

  • #71: Update analyticsWaveApi wire adapters.

v2.1.1

27 Jul 15:47

Choose a tag to compare

New features

  • #69: Update Commerce wire adapters. Adds commerce/cartApi/CartItemsAdapter and removes commerce/productApi/ProductSearchAdapter.

v2.1.0

21 Jul 07:51
9add2f1

Choose a tag to compare

New features

  • #68: Add new Commerce wire adapters to the list of know wire adapters in the base config.

v2.0.0

20 May 07:47
bc4878b

Choose a tag to compare

Breaking changes

  • #61: Introduction of @salesforce/eslint-plugin-lightning to 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 i18n config. 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-invocation to the recommended config.

Improvements

  • #63: Loosen the eslint-plugin-import and eslint-plugin-jest peer depency version.

v1.0.0

15 Apr 18:14

Choose a tag to compare

Breaking changes

  • #58: Convert plugin dependencies to peer dependencies to match the ESLint programming model for plugins and shared configurations. eslint-plugin-lwc as a dependency of eslint-config-lwc only 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-adapters rule to ensure that CartSummaryAdapter is a known wire adapter.
  • #56: Configure the no-unexpected-wire-adapter-usages rule to ensure that usage of the CartSummaryAdapter wire 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

13 Apr 20:48
3b495dd

Choose a tag to compare

Bug fixes

  • Enforces commerce/cartApi:CartSummaryAdapter to be used only with @wire decorator

v0.11.0-232.1

13 Apr 07:35
7d31388

Choose a tag to compare

Bug fixes

  • Use exact version 0.12.2-232.0 instead of ~0.12.2-232.0 because this versioning scheme is not semver-compliant and will install 0.12.2 instead.

v0.11.0-232.0

13 Apr 06:06
7d31388

Choose a tag to compare

Features

  • Update @lwc/eslint-plugin-lwc to v0.12.2-232.0 to include an update to the no-unknown-wire-adapters rule.
  • #53: Add the commerce/cartApi:CartSummaryAdapter to the known wire adapter list.

v0.11.1

31 Mar 15:26

Choose a tag to compare

Features

  • Update @lwc/eslint-plugin-lwc to v1.0.0 to include an update to the no-unknown-wire-adapters rule.

v0.11.0

29 Mar 13:42
77011dd

Choose a tag to compare

Features

  • Add Wave Analytics adapters to the list of known wire adapters (#48).

Bug fixes