Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autolesshint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autolesshint

Automagically fixes lesshint errors in .less files.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
decreased by-18.68%
Maintainers
1
Weekly downloads
 
Created
Source

autolesshint

npm

autolesshint is a tool to automatically fix Lesshint complaints.

Installation

Run the following command from the command line (add -g to install globally):

npm install autolesshint

CLI usage

Run autolesshint from the command-line by passing one or more files/directories to recursively scan.

autolesshint src/less/ lib/style.less
Available FlagsDescription
-c/--configSpecify the configuration file to use (will be merged with defaults).
-e/--excludeA minimatch glob pattern or a file to exclude from being linted.
-V/--versionShow version.

Supported rules

  • attribute_quotes
  • border_zero
  • comment
  • final_newline
  • trailing_semicolon
  • trailing_whitespace
  • url_quotes

See the Complete rule coverage milestone for upcoming coverage support.

Contributing

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.

Adding a suggester

  • Add a 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.
  • Add test case(s) under test/cases that each have an original.less, expected.less, actual.less, and .lesshintrc.
  • Add the suggester to the list in README.md.
  • Submit a PR referencing the issue corresponding to the lint rule.

Keywords

FAQs

Package last updated on 09 Feb 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc