
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@htmllinter/basic-standard
Advanced tools
basic standard for htmllinter used for setting the standard the config
basic rules for htmllinter which are used to setting the standard/type using standard property of htmllinter.config.js
latest version 0.0.1
$ npm install @htmllinter/core @htmllinter/basic-standard --save-dev
in your htmllinter.config.js file
module.exports = {
standard: require('@htmllinter/basic-standard'),
};
no-empty-tagThis rule throws error when there is an empty html tag used.
example
<a href="">click here</a>
<p></p>
Here, the p tag is empty. It will throw error like this.
┌────────────────────────────────┬──────────────┐
│ Message │ Rule Name │
├────────────────────────────────┼──────────────┤
│ the tag < p > has no content. │ no-empty-tag │
└────────────────────────────────┴──────────────┘
no-duplicate-idThis rule throws error when there are more than one id of same value being declared.
example
<a id="sameID">adMy First Headings</a>
<h3 id="sameID">My First Heading</h3>
here, the sameID in h3 is mark as duplicate
┌───────────────────────────┬─────────────────┐
│ Message │ Rule Name │
├───────────────────────────┼─────────────────┤
│ duplicate ids sameID @ h3 │ no-duplicate-id │
└───────────────────────────┴─────────────────┘
no-bool-true-explicit-defineThis rule will throw error when attributes as valued as true like this `
example
<h3 enable="true">My First Heading</h3>
output
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────┐
│ Message │ Rule Name │
├─────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┤
│ the attribute "enable" seems to be boolean with value "true",please conside using "<h3 enable>...</h3>" │ no-bool-true-explicit-define │
│ │ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────┘
More rules will be added soon.
Please contribute with correcting the existing rules or by adding a new rule
@htmllinter/basic-standardPlease create an issue with Title
[New Rule][Basic]: <Rule-Name>
We will discuss about the possibility in that issue and you can be the champion of implement it :tada:
FAQs
basic standard for htmllinter used for setting the standard the config
The npm package @htmllinter/basic-standard receives a total of 2 weekly downloads. As such, @htmllinter/basic-standard popularity was classified as not popular.
We found that @htmllinter/basic-standard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.