Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
autolesshint
Advanced tools
autolesshint
is a tool to automatically fix Lesshint >=v4.0.0 complaints.
Run the following command from the command line (add -g
to install globally):
npm install autolesshint
Run autolesshint
from the command-line by passing one or more files/directories to recursively scan.
autolesshint src/less/ lib/style.less
Available Flags | Description |
---|---|
-c /--config | Specify the configuration file to use (will be merged with defaults). |
-e /--exclude | A minimatch glob pattern or a file to exclude from being linted. |
-V /--version | Show version. |
attribute_quotes
border_zero
comment
empty_rule
final_newline
hex_length
hex_notation
newline_after_block
single_line_per_selector
space_before_brace
space_between_parens
string_quotes
trailing_semicolon
trailing_whitespace
url_quotes
zero_unit
See the Complete rule coverage milestone for upcoming coverage support.
These rules contain logic that require user input and can't be automatically fixed:
depth_level
duplicate_property
hex_validation
id_selector
import_path
important_rule
max_char_per_line
property_units
qualifying_element
selector_naming
url_format
autolesshint
uses Gulp to automate building, which requires Node.js.
To build from scratch, install NodeJS and run the following commands:
npm install -g gulp
npm install
gulp
automutate manages the runtime of taking in lint complaints from lesshint
.
These are mapped to Suggester
classes in src/suggesters
by name.
automutate-tests manages development-time tests verifying actual file mutations.
Suggester
class with a linter's name. my_rule
would be mapped to src/suggesters/myRuleSuggester.ts
that would have to export a MyRuleSuggester
class that implements the ISuggester
interface.test/cases
that each have an original.less
, expected.less
, actual.less
, and .lesshintrc
.README.md
.FAQs
Automagically fixes lesshint errors in .less files.
The npm package autolesshint receives a total of 73 weekly downloads. As such, autolesshint popularity was classified as not popular.
We found that autolesshint 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.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.