@lwc/eslint-plugin-lwc weekly downloads statistics
By lwc · npm · ESLint plugins
Official ESLint rules for LWC
@lwc/eslint-plugin-lwc has 182,498 recorded weekly downloads on npm, a decrease of 47.2% over the past 30 days.
It ranks #381 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -55.9%.
PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.
About @lwc/eslint-plugin-lwc
@lwc/eslint-plugin-lwc
Official ESLint rules for Lightning Web Components (LWC).
Installation
Usage
_Starting with v3.0.0, @lwc/eslint-plugin-lwc only supports eslint@v9. Use @lwc/eslint-plugin-lwc@v1.x for older versions of eslint._
Import @lwc/eslint-plugin-lwc and use it in the plugins section of your configuration as shown below. Then configure the desired rules in the rules sections. Some of the syntax used in Lightning Web Components is not yet stage 4 (eg. class fields or decorators), and the out-of-the-box parser from ESLint doesn't support this syntax yet. In order to parse the LWC files properly, set the parser field to @babel/eslint-parser in the languageOptions section of the eslint config.
Example of eslint.config.js:
Usage with TypeScript
To enable working with TypeScript projects, install @babel/preset-typescript as a dependency add "typescript" to languageOptions.parserOptions.babelOptions.parserOpts.plugins in your eslint.config.js.
Example:
For more details about configuration please refer to the dedicated section in the ESLint documentation: https://eslint.org/docs/user-guide/configuring
Configurations
To choose from three configuration settings, install the eslint-config-lwc sharable configuration package.
Processors
| Processor ID | Description |
| lwc/ssr | Lint only JavaScript files of SSR-able components |
Rules
LWC
| Rule ID | Description | Fixable |
| lwc/consistent-component-name | ensure component class name matches file name | 🔧 | | lwc/no-api-reassignments | prevent public property reassignments | | | lwc/no-deprecated | disallow usage of deprecated LWC APIs | | | lwc/newer-version-available | suggest newer versions of module imports when available | ✓ | | lwc/no-document-query | disallow DOM query at the document level | | | lwc/no-attributes-during-construction | disallow setting attributes during construction | | | lwc/no-disallowed-lwc-imports | disallow importing unsupported APIs from the lwc package | | | lwc/no-leading-uppercase-api-name | ensure public property doesn't start with an upper-case character | | | lwc/no-unexpected-wire-adapter-usages | enforce wire adapters to be used with wire decorator | | | lwc/no-unknown-wire-adapters | disallow usage of unknown wire adapters | | | lwc/valid-api | validate api decorator usage | | | lwc/valid-track | validate track decorator usage | | | lwc/valid-wire | validate wire decorator usage | | | lwc/valid-graphql-wire-adapter-callback-parameters | ensure graphql wire adapters are using 'errors' instead of 'error' | | | lwc/no-host-mutation-in-connected-callback | disallow the host element mutation in 'connectedCallback' | | | lwc/consistent-component-name | ensure component class name matches file name | 🔧 | | lwc/no-api-reassignments | prevent public property reassignments | | | lwc/no-deprecated | disallow usage of deprecated LWC APIs | | | lwc/no-document-query | disallow DOM query at the document level | | | lwc/no-attributes-during-construction | disallow setting attributes during construction | | | lwc/no-disallowed-lwc-imports | disallow importing unsupported APIs from the lwc package | | | lwc/no-leading-uppercase-api-name | ensure public property doesn't start with an upper-case character | | | lwc/no-unexpected-wire-adapter-usages | enforce wire adapters to be used with wire decorator | | | lwc/no-unknown-wire-adapters | disallow usage of unknown wire adapters | | | lwc/valid-api | validate api decorator usage | | | lwc/valid-track | validate track decorator usage | | | lwc/valid-wire | validate wire decorator usage | | | lwc/ssr-no-restricted-browser-globals | disallow access to global browser APIs during SSR | | | lwc/ssr-no-unsupported-properties | disallow access of unsupported properties in SSR | | | lwc/ssr-no-node-env | disallow usage of process.env.NODE_ENV in SSR | | | lwc/ssr-no-disallowed-lwc-imports | restrict specific imports from the lwc package in SSR-able components | | | lwc/valid-graphql-wire-adapter-callback-parameters | ensure graphql wire adapters are using 'errors' instead of 'error' | | | lwc/ssr-no-host-mutation-in-connected-callback | disallow the host element mutation in 'connectedCallback' | | | lwc/ssr-no-static-imports-of-user-specific-scoped-modules | disallow static imports of user-specific scoped modules in SSR-able components | | | lwc/ssr-no-form-factor | disallow formFactor in SSR-able components | |
Best practices
| Rule ID | Description | Fixable |
| lwc/no-async-operation | restrict usage of async operations | | | lwc/no-dupe-class-members | disallow duplicate class members | | | lwc/no-inner-html | disallow usage of innerHTML | | | lwc/no-template-children | prevent accessing the immediate children of this.template | | | lwc/no-leaky-event-listeners | prevent event listeners from leaking memory | | | lwc/prefer-custom-event | suggest usage of CustomEvent over Event constructor | | | lwc/ssr-no-unsupported-node-api | disallow unsupported Node API calls in SSR-able components | |
Compat performance
Older browsers like IE11 run LWC in compatibility mode. For more information about browser performance, please refer to Supported Browsers in the Lightning Web Components Developer Guide.
| Rule ID | Description | Fixable |
| lwc/no-async-await | disallow usage of the async-await syntax | | | lwc/no-for-of | disallow usage of the for-of syntax | | | lwc/no-rest-parameter | disallow usage of the rest parameter syntax | |
Deprecated
| Rule ID | Replaced by |
| lwc/no-dupe-class-members | no-dupe-class-members(base eslint rule) |
Description from the npm listing.
- eslint
- eslint-plugin
- lwc
- salesforce
Where @lwc/eslint-plugin-lwc sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (542)Similar npm ESLint plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@lwc/eslint-plugin-lwc. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.