Skip to content

Releases: salesforce/eslint-config-lwc

v3.2.0

17 Nov 10:22
1fa7877

Choose a tag to compare

New features

  • #79: Add 236 experience/cmsEditorApi wire adapters to the list of known wire adapters.

v3.1.0

16 Nov 15:10
9c2c541

Choose a tag to compare

New features

  • #77: Add support for ESLint v8. Note: Make sure to update your peer dependencies versions to work with ESLint v8.

Bug fixes

  • #78: Avoid duplicate no-dupe-class-members warning with ESLint v8.

v3.0.0

01 Oct 18:16
ea5672c

Choose a tag to compare

Breaking changes

  • #74 : Add the new rule lwc/no-template-children to @salesforce/eslint-config-lwc/recommended configuration. This rule prevents patterns like this.template.firstChild which will not work in native shadow DOM in certain browsers. this.template.querySelector is encouraged as an alternative.

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.