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
86.9
Supply Chain
94.6
Quality
77.7
Maintenance
100
Vulnerability
98.9
License
TypeScript (100%)
Total Downloads
8,438,420
Last Day
9,129
Last Week
65,114
Last Month
292,043
Last Year
3,871,070
120 Stars
175 Commits
22 Forks
7 Watching
1 Branches
11 Contributors
Latest Version
1.15.0
Package Id
eslint-plugin-lit@1.15.0
Unpacked Size
138.00 kB
Size
25.07 kB
File Count
90
NPM Version
10.8.2
Node Version
22.8.0
Publised On
07 Sept 2024
Cumulative downloads
Total Downloads
Last day
-32.5%
9,129
Compared to previous day
Last week
-10.3%
65,114
Compared to previous week
Last month
-4.5%
292,043
Compared to previous month
Last year
77.7%
3,871,070
Compared to previous year
3
1
22
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];
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": [ 3 "plugin:wc/recommended", 4 "plugin:lit/recommended" 5 ] 6}
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
packaging workflow detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
Found 6/23 approved changesets -- score normalized to 2
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
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
license 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 2024-12-23
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 More