Gathering detailed insights and metrics for eslint-plugin-lit
Gathering detailed insights and metrics for eslint-plugin-lit
Gathering detailed insights and metrics for eslint-plugin-lit
Gathering detailed insights and metrics for eslint-plugin-lit
npm install eslint-plugin-lit
Typescript
Module System
Min. Node Version
Node Version
NPM Version
94.4
Supply Chain
94.3
Quality
81.4
Maintenance
100
Vulnerability
98.9
License
TypeScript (100%)
Total Downloads
10,356,825
Last Day
3,899
Last Week
106,652
Last Month
412,943
Last Year
4,201,796
MIT License
127 Stars
181 Commits
23 Forks
6 Watchers
1 Branches
12 Contributors
Updated on May 20, 2025
Minified
Minified + Gzipped
Latest Version
2.1.1
Package Id
eslint-plugin-lit@2.1.1
Unpacked Size
140.86 kB
Size
26.34 kB
File Count
90
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 16, 2025
Cumulative downloads
Total Downloads
2
1
21
eslint-plugin-lit
ESLint plugin for Lit.
Assuming you already have ESLint installed, run:
1# npm 2npm install eslint-plugin-lit --save-dev 3 4# yarn 5yarn add eslint-plugin-lit --dev
Then extend the recommended eslint config:
1{ 2 "extends": [ 3 // ... 4 "plugin:lit/recommended" 5 ] 6}
Or if you're using (flat) config files, add to your eslint.config.js
:
1import {configs} from 'eslint-plugin-lit'; 2 3export default [ 4 configs['flat/recommended'], 5 6 // or if you want to specify `files`, or other options 7 { 8 ...configs['flat/recommended'], 9 files: ['test/**/*.js'] 10 } 11];
You can also specify settings that will be shared across all the plugin rules.
1{ 2 settings: { 3 lit: { 4 elementBaseClasses: ['ClassExtendingLitElement'] // Recognize `ClassExtendingLitElement` as a sub-class of LitElement 5 } 6 } 7}
If you want more fine-grained configuration, you can instead add a snippet like this to your ESLint configuration file:
1{ 2 "plugins": [ 3 // ... 4 "lit" 5 ], 6 "rules": { 7 // ... 8 "lit/no-legacy-template-syntax": "error", 9 "lit/no-template-arrow": "warn" 10 } 11}
This plugin exports a recommended
configuration that enforces Lit good practices.
To enable this configuration use the extends
property in your .eslintrc
config file:
1{ 2 "extends": ["eslint:recommended", "plugin:lit/recommended"] 3}
eslint-plugin-wc
We highly recommend you also depend on eslint-plugin-wc as it will provide additional rules for web components in general:
1npm i -D eslint-plugin-wc
Then extend the recommended eslint config:
1{ 2 "extends": ["plugin:wc/recommended", "plugin:lit/recommended"] 3}
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
Found 6/25 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-02
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
21.3%
3,899
Compared to previous day
Last Week
6.2%
106,652
Compared to previous week
Last Month
3.8%
412,943
Compared to previous month
Last Year
45.6%
4,201,796
Compared to previous year