Gathering detailed insights and metrics for @ms918/mrm-task-lint-staged
Gathering detailed insights and metrics for @ms918/mrm-task-lint-staged
npm install @ms918/mrm-task-lint-staged
Typescript
Module System
Node Version
NPM Version
59.3
Supply Chain
85.5
Quality
73
Maintenance
100
Vulnerability
99.3
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,109
Last Day
1
Last Week
2
Last Month
24
Last Year
137
MIT License
2 Stars
16 Commits
1 Watchers
10 Branches
1 Contributors
Updated on Mar 08, 2023
Minified
Minified + Gzipped
Latest Version
0.5.2
Package Id
@ms918/mrm-task-lint-staged@0.5.2
Unpacked Size
5.81 kB
Size
2.60 kB
File Count
5
NPM Version
lerna/3.22.1/node@v14.16.0+x64 (linux)
Node Version
14.16.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-60%
2
Compared to previous week
Last Month
100%
24
Compared to previous month
Last Year
-34.1%
137
Compared to previous year
3
@ms918/mrm-task-lint-staged
mrm task,用来配置
lint-staged
,可选 eslint 和 prettier(需要配合@ms918/mrm-task-eslint、@ms918/mrm-task-prettier)
创建的默认package.json
字段如下
1{ 2 "husky": { 3 "hooks": { 4 "pre-commit": "lint-staged" 5 } 6 }, 7 "devDependencies": { 8 "husky": "^4.3.0" 9 }, 10 "lint-staged": { 11 "*.{tsx,ts,jsx,js}": ["eslint --fix", "prettier --write ."], 12 "*.{md,mdx}": ["prettier --write ."] 13 } 14}
默认选择 eslint 和 prettier,创建配置如上。
只选择 eslint,创建配置如下
1{ 2 "husky": { 3 "hooks": { 4 "pre-commit": "lint-staged" 5 } 6 }, 7 "devDependencies": { 8 "husky": "^4.3.0" 9 }, 10 "lint-staged": { 11 "*.{tsx,ts,jsx,js}": ["eslint --fix"] 12 } 13}
只选择 prettier,创建配置如下
1{ 2 "husky": { 3 "hooks": { 4 "pre-commit": "lint-staged" 5 } 6 }, 7 "devDependencies": { 8 "husky": "^4.3.0" 9 }, 10 "lint-staged": { 11 "*.{tsx,ts,jsx,js}": ["prettier --config .prettierrc.yml --write"], 12 "*.{md,mdx}": ["prettier --config .prettierrc.yml --write"] 13 } 14}
1npm install -g @ms918/mrm-task-lint-staged 2mrm @ms918/mrm-task-lint-staged
当执行的时候,会走下面步骤:
@ms918/mrm-task-husky
步骤husky.pre-commit
是否有脚本
husky.pre-commit
为之前脚本 && lint-staged
husky.pre-commit
为lint-staged
yarn
ornpm
安装lint-staged
package.json
的lint-staged
字段为上述所示No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/16 approved changesets -- 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
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
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