eslint-plugin-lwc icon indicating copy to clipboard operation
eslint-plugin-lwc copied to clipboard

Official ESLint rules for LWC

Results 19 eslint-plugin-lwc issues
Sort by recently updated
recently updated
newest added
trafficstars

Adds two new options to allow bare imports and exports for backwards compatibility purposes. See: W-11690641

Evening! I'm slapped with "no-api-reassignment" violation on an lwc variable that yes, is exposed as `@api` but only because I need the values in a flow. In meta.xml file I...

Encountered a javascript exception while trying to save the following LWC component via SFDX. ```js import * as lwc from 'lwc'; export default class extends lwc.LightningElement { condition = true;...

kind/bug

Implement a rule to check for deprecated directives `if:true` and `if:false` The legacy if:true and if:false directives are no longer recommended as Salesforce intend to deprecate and remove these directives...

USER STORY
kind/feature

Various lightning APIs are deprecated/unsupported and their usage would ideally be flagged up by the rule `no-deprecated`. Examples include... ```javascript import { getRecordUi } from 'lightning/uiRecordApi'; ``` https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-record-ui.html#usage ```javascript import...

We prefer to generate our HTML by building up a DOM node tree, and reading the outerHTML property, and thus we can ensure that we are securely / appropriately escaping...

With LWR being live, it would be helpful to have eslint rules which help us avoid LWR issues (either before migrating or after) such as using document.location and async/await. This...

One annoyance around the `@lwc/lwc/no-restricted-browser-globals-during-ssr` is related to the fact that it only considers block-level guards as valid like the following: ```js if (typeof window !== 'undefined') { // Client-side...

SSR lint rules skips blocks that have the following form: ```js if(typeof document !== 'undefined') { } ``` We should change this to whatever we decide when we adopt `imports.meta.env`.