
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
@hint/hint-button-type
Advanced tools
button-type
)button-type
checks if all buttons have a type
attribute set.
The default type for <button>
is submit
(not type="button"
as one might expect).
This can lead to surprising keyboard behavior within a form.
The best way to avoid unexpected surprises is to always explicitly
set a type on <button>
s.
This hint checks whether the type
attribute of a <button>
is explicitly set.
<button></button>
<button type="submit"></button>
<button type="button"></button>
This package is installed automatically by webhint:
npm install hint --save-dev
To use it, activate it via the .hintrc
configuration file:
{
"connector": {...},
"formatters": [...],
"parsers": [...],
"hints": {
"button-type": "error"
},
...
}
Note: The recommended way of running webhint is as a devDependency
of
your project.
What can the user read to know more about this subject?
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.