Installations
npm install textlint-plugin-html
Developer
textlint
Developer Guide
Module System
ESM
Min. Node Version
Typescript Support
Yes
Node Version
20.12.0
NPM Version
10.8.2
Statistics
22 Stars
47 Commits
8 Forks
3 Watching
4 Branches
14 Contributors
Updated on 27 Nov 2024
Languages
HTML (89.53%)
TypeScript (10.47%)
Total Downloads
Cumulative downloads
Total Downloads
1,228,763
Last day
12.9%
1,300
Compared to previous day
Last week
-13.6%
6,410
Compared to previous week
Last month
9.8%
27,893
Compared to previous month
Last year
-31.6%
296,456
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
textlint-plugin-html
Add HTML support for textlint.
What is textlint plugin? Please see https://github.com/textlint/textlint/blob/master/docs/plugin.md
Installation
npm install textlint-plugin-html
Requirements:
- textlint v13+
Default supported extensions
.html
.htm
Usage
Manually add text plugin to do following:
{
"plugins": [
"html"
]
}
Lint HTML file with textlint
$ textlint index.html
Options
extensions
:string[]
- Additional file extensions for html
For example, if you want to treat .custom-ext
as html, put following config to .textlintrc
1{ 2 "plugins": { 3 "html": { 4 "extensions": [".custom-ext"] 5 } 6 } 7}
Tests
npm test
Development
If you update snapshot, please run npm run updateSnapshot
.
Add new test case
- add new fixture file to
test/ast-test-case/<test-case-name>/index.html
- npm run updateSnapshot
- check outputs
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/textlint/.github/SECURITY.md:1
- Info: Found linked content: github.com/textlint/.github/SECURITY.md:1
- Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy
- Info: Found text in security policy: github.com/textlint/.github/SECURITY.md:1
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
Reason
Found 6/27 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/textlint/textlint-plugin-html/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/textlint/textlint-plugin-html/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/textlint/textlint-plugin-html/test.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/textlint/textlint-plugin-html/test.yml/master?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 11 are checked with a SAST tool
Score
4.1
/10
Last Scanned on 2024-11-18
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